CVE-2026-45959·Kernel vulnerability
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 { ... } **`.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.19.4
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.13% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-45959 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.13%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.19
Until: 6.19.4
Fixed in: 6.19.4
How to fix this CVE
Update your Linux kernel to version 6.19.4 or later to resolve a memory management defect in the CCP crypto subsystem that can trigger kernel crashes during cleanup operations. The vulnerability stems from incorrect use of the __cleanup attribute with kfree, which attempts to deallocate stack memory instead of heap memory. Ensure all systems running kernel versions 6.19 through 6.19.3 are patched immediately, particularly those utilizing CCP hardware acceleration for cryptographic operations.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with: uname -r. Verify if it falls within the vulnerable range (6.19.0 to 6.19.3).
- Step 2: Confirm CCP crypto support is loaded: lsmod | grep ccp. If the module is not listed, your system is not exposed to exploitation.
- Step 3: Review kernel logs for crash signatures: dmesg | grep -i 'invalid.*free\|BUG: unable to handle page fault\|general protection fault' within the timeframe of CCP operations.
- Step 4: After patching, reboot the system and verify the new kernel version: uname -r. Confirm it is 6.19.4 or higher.
FAQ
What is CVE-2026-45959?
This vulnerability is a kernel memory management bug in the CCP (Cryptographic Coprocessor) driver where the __cleanup annotation incorrectly passes a stack address to kfree instead of the heap-allocated pointer, resulting in invalid memory deallocation and potential kernel panic. The defect was introduced due to incorrect macro usage that bypassed normal type checking.
Is CVE-2026-45959 being actively exploited?
No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities catalog and no public exploits are available. However, the high CVSS score (7.8) and denial-of-service potential warrant immediate patching.
What versions of Kernel are affected by CVE-2026-45959?
Linux kernel versions 6.19.0 through 6.19.3 are vulnerable. The issue is resolved in kernel 6.19.4 and all subsequent releases.
How do I check if my server is vulnerable to CVE-2026-45959?
Run: uname -r to check your kernel version. If it outputs a version between 6.19.0 and 6.19.3, and lsmod | grep ccp shows the CCP module is loaded, your server is vulnerable.
Does Defensia detect CVE-2026-45959?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2026-45959 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-45959. Free for 1 server.
Get started free