CVE-2025-40059

Source
https://cve.org/CVERecord?id=CVE-2025-40059
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40059.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40059
Downstream
Related
Published
2025-10-28T11:48:32.186Z
Modified
2026-03-20T12:43:09.910871Z
Summary
coresight: Fix incorrect handling for return value of devm_kzalloc
Details

In the Linux kernel, the following vulnerability has been resolved:

coresight: Fix incorrect handling for return value of devm_kzalloc

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

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40059.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4277f035d227e829133df284be7e35b7236a5b0f
Fixed
8c4e7e646d5d9050b374baf5c6bb3a00fb79e206
Fixed
9688b66d0a5e0eecf44f6286b8d9f7a161264035
Fixed
70714eb7243eaf333d23501d4c7bdd9daf011c01

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40059.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.8.0
Fixed
6.12.53
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40059.json"