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

- Severity: not scored yet
- 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.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-10-28T11:48:32.186Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 4277f035d227e829133df284be7e35b7236a5b0f before 8c4e7e646d5d9050b374baf5c6bb3a00fb79e206; from 4277f035d227e829133df284be7e35b7236a5b0f before 9688b66d0a5e0eecf44f6286b8d9f7a161264035; from 4277f035d227e829133df284be7e35b7236a5b0f before 70714eb7243eaf333d23501d4c7bdd9daf011c01; 6.8 (not affected: before 6.8; from 6.12.53 up to 6.12.*; from 6.17.3 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/8c4e7e646d5d9050b374baf5c6bb3a00fb79e206>
- <https://git.kernel.org/stable/c/9688b66d0a5e0eecf44f6286b8d9f7a161264035>
- <https://git.kernel.org/stable/c/70714eb7243eaf333d23501d4c7bdd9daf011c01>

## Sources

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

---

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