CVE-2025-40059 coresight: Fix incorrect handling for return value of devm_kzalloc

Not scored Published Updated

A null pointer dereference in the Linux kernel Coresight driver can cause a system crash, requiring local access to exploit.

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

What is CVE-2025-40059?

CVE-2025-40059 is a vulnerability in Linux, published on 28 Oct 2025. 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:

coresight: Fix incorrect handling for return value of devm_kzalloc

The return value of devm_kzalloc could be an null pointer, use "!desc.pdata" to fix incorrect handling return value of devm_kzalloc.

Which versions are affected by CVE-2025-40059?

How do I fix CVE-2025-40059?

Apply the vendor's patch.

Is CVE-2025-40059 being exploited?

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

Sources

Also known as BELL-CVE-2025-40059, DEBIAN-CVE-2025-40059, GHSA-p5wm-p7x9-9mrc, ROOT-OS-DEBIAN-13-CVE-2025-40059, ROOT-OS-UBUNTU-2404-CVE-2025-40059, UBUNTU-CVE-2025-40059.

Is CVE-2025-40059 in your software?

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

Check your SBOMs for free