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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-476, CWE-787
- **Published:** 2026-05-27T12:18:16.039Z
- **Modified:** 2026-10-19T20:18:22.440Z

## Who should check

- Anyone running Linux \>= a71475582ada92ba021852bf3c2b40ab3718549b, \< 9a3ace9b010ffd8c422c97844ae152f7c53d6b18; \>= a71475582ada92ba021852bf3c2b40ab3718549b, \< 90f9090e3e744a8fe3bb6fa0e61f577347728b0b; \>= a71475582ada92ba021852bf3c2b40ab3718549b, \< d5abcc33ee76bc26d58b39dc1a097e43a99dd438
- Anyone running Linux 6.17

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

## Affected and fixed versions

- Linux: \>= a71475582ada92ba021852bf3c2b40ab3718549b, \< 9a3ace9b010ffd8c422c97844ae152f7c53d6b18; \>= a71475582ada92ba021852bf3c2b40ab3718549b, \< 90f9090e3e744a8fe3bb6fa0e61f577347728b0b; \>= a71475582ada92ba021852bf3c2b40ab3718549b, \< d5abcc33ee76bc26d58b39dc1a097e43a99dd438 (cvelist)
- Linux: 6.17 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-45959. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-45959.md
Affected: Linux >= a71475582ada92ba021852bf3c2b40ab3718549b, < 9a3ace9b010ffd8c422c97844ae152f7c53d6b18; >= a71475582ada92ba021852bf3c2b40ab3718549b, < 90f9090e3e744a8fe3bb6fa0e61f577347728b0b; >= a71475582ada92ba021852bf3c2b40ab3718549b, < d5abcc33ee76bc26d58b39dc1a097e43a99dd438; Linux 6.17
Fixed in: Linux 9a3ace9b010ffd8c422c97844ae152f7c53d6b18, Linux 90f9090e3e744a8fe3bb6fa0e61f577347728b0b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-45959 being exploited?

There is no confirmed exploitation: CVE-2026-45959 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-45959?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-45959?

Linux \>= a71475582ada92ba021852bf3c2b40ab3718549b, \< 9a3ace9b010ffd8c422c97844ae152f7c53d6b18; \>= a71475582ada92ba021852bf3c2b40ab3718549b, \< 90f9090e3e744a8fe3bb6fa0e61f577347728b0b; \>= a71475582ada92ba021852bf3c2b40ab3718549b, \< d5abcc33ee76bc26d58b39dc1a097e43a99dd438; Linux 6.17.

### Is there a fix for CVE-2026-45959?

Yes. Fixed in Linux 9a3ace9b010ffd8c422c97844ae152f7c53d6b18, Linux 90f9090e3e744a8fe3bb6fa0e61f577347728b0b. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-45959?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-45959>

HTML: <https://flawdb.com/CVE-2026-45959> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-45959>
