CVE-2026-45959CWE-476CWE-787

CVE-2026-45959

High · published May 27, 2026

CVSS v3.1
7.8
EPSS
0%
Percentile
2.2
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

crypto: ccp - Fix a crash due to incorrect cleanup usage of kfree

Annotating a local pointer variable, which will be assigned with the

kmalloc-family functions, with the `__cleanup(kfree)` attribute will

make the address of the local variable, rather than the address returned

by kmalloc, passed to kfree directly and lead to a crash due to invalid

deallocation of stack address. According to other places in the repo,

the correct usage should be `__free(kfree)`. The code coincidentally

compiled because the parameter type `void *` of kfree is compatible with

the desired type `struct { ... } **`.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00127 · 2.2th percentile
Weaknesses
CWE-476 · NULL Pointer Dereference; CWE-787 · Out-of-bounds Write
Published
2026-05-27T18:17Z
Affected products (2)
ProductVersionsFixed in
linux/linux_kernel≥ 6.17, < 6.18.146.18.14
linux/linux_kernel≥ 6.19, < 6.19.46.19.4
References (3)
EPSS history
Timeline
  • 27 MAY 12:18Z
    crypto: ccp - Fix a crash due to incorrect cleanup usage of kfree
    cvelistv5