What’s Vulnerable › Vulnerabilities
CVE-2025-40059: coresight: Fix incorrect handling for return value of devm_kzalloc
- Severity: unknown
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-10-28 · updated 2026-10-19
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.
Affected products
- Linux kernel: 6.8 — fixed in 6.18
How to fix
Upgrade to a fixed version: Linux kernel 6.18. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/70714eb7243eaf333d23501d4c7bdd9daf011c01
- https://git.kernel.org/stable/c/8c4e7e646d5d9050b374baf5c6bb3a00fb79e206
- https://git.kernel.org/stable/c/9688b66d0a5e0eecf44f6286b8d9f7a161264035
Get alerted when CVE-2025-40059 or the next vulnerability affects your stack