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

High 7.8 Published Updated

A Linux kernel bug in the CCP crypto driver causes a crash due to incorrect memory cleanup, leading to denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-45959?

CVE-2026-45959 is a high-severity vulnerability in Linux kernel, published on 27 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-476, CWE-787

Which versions are affected by CVE-2026-45959?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2026-45959?

Apply the vendor's patch.

Is CVE-2026-45959 being exploited?

There is no known exploitation of CVE-2026-45959 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2026-45959, DEBIAN-CVE-2026-45959, GHSA-6j4x-6364-q9p3, UBUNTU-CVE-2026-45959.

Is CVE-2026-45959 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free