# CVE-2026-45959: crypto: ccp - Fix a crash due to incorrect cleanup usage of kfree

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-27T12:18:16.039Z
- Modified: 2026-10-19T20:18:22.440Z
- Weaknesses: CWE-476, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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 { ... } **`.

(As written by CVE List.)

## Affected

- Linux Linux: from a71475582ada92ba021852bf3c2b40ab3718549b before 9a3ace9b010ffd8c422c97844ae152f7c53d6b18; from a71475582ada92ba021852bf3c2b40ab3718549b before 90f9090e3e744a8fe3bb6fa0e61f577347728b0b; from a71475582ada92ba021852bf3c2b40ab3718549b before d5abcc33ee76bc26d58b39dc1a097e43a99dd438; 6.17 (not affected: before 6.17; from 6.18.14 up to 6.18.*; from 6.19.4 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.17 before 6.18.14; from 6.19 before 6.19.4

## References

- <https://git.kernel.org/stable/c/9a3ace9b010ffd8c422c97844ae152f7c53d6b18> (patch)
- <https://git.kernel.org/stable/c/90f9090e3e744a8fe3bb6fa0e61f577347728b0b> (patch)
- <https://git.kernel.org/stable/c/d5abcc33ee76bc26d58b39dc1a097e43a99dd438> (patch)

## Sources

- CVE List: [CVE-2026-45959](https://www.cve.org/CVERecord?id=CVE-2026-45959), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-45959](https://nvd.nist.gov/vuln/detail/CVE-2026-45959), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-45959 · Whole record: https://cve.day/CVE-2026-45959.json · Rebuilt by cve.day 2026-11-25T22:59:22.521Z
