CVE-2025-40060
coresight: trbe: Return NULL pointer for allocation failures
Mitigation
- Upgrade Linux to 8a55c161f7f9c1aa1c70611b39830d51c83ef36d or later.
Who should check
- Anyone running Linux >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < cef047e0a55cb07906fcaae99170f19a9c0bb6c2; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < fe53a726d5edf864e80b490780cc135fc1adece9; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < 9768536f82600a05ce901e31ccfabd92c027ff71; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < 296da78494633e1ab5e2e74173a9c8683b04aa6b; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < f505a165f1c7cd37b4cb6952042a5984693a4067; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < 8a55c161f7f9c1aa1c70611b39830d51c83ef36d
- Anyone running Linux 5.13
Vulnerability facts
- Affected
- Linux >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < cef047e0a55cb07906fcaae99170f19a9c0bb6c2; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < fe53a726d5edf864e80b490780cc135fc1adece9; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < 9768536f82600a05ce901e31ccfabd92c027ff71; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < 296da78494633e1ab5e2e74173a9c8683b04aa6b; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < f505a165f1c7cd37b4cb6952042a5984693a4067; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < 8a55c161f7f9c1aa1c70611b39830d51c83ef36d; Linux 5.13
- Fixed in
- Linux 9768536f82600a05ce901e31ccfabd92c027ff71, Linux 296da78494633e1ab5e2e74173a9c8683b04aa6b, Linux 8a55c161f7f9c1aa1c70611b39830d51c83ef36d
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: coresight: trbe: Return NULL pointer for allocation failures When the TRBE driver fails to allocate a buffer, it currently returns the error code "-ENOMEM". However, the caller etm_setup_aux() only checks for a NULL pointer, so it misses the error. As a result, the driver continues and eventually causes a kernel panic. Fix this by returning a NULL pointer from arm_trbe_alloc_buffer() on allocation failures. This allows that the callers can properly handle the failure.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < cef047e0a55cb07906fcaae99170f19a9c0bb6c2; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < fe53a726d5edf864e80b490780cc135fc1adece9; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < 9768536f82600a05ce901e31ccfabd92c027ff71; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < 296da78494633e1ab5e2e74173a9c8683b04aa6b; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < f505a165f1c7cd37b4cb6952042a5984693a4067; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < 8a55c161f7f9c1aa1c70611b39830d51c83ef36d | — | cvelist |
| Linux | 5.13 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-40060. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-40060.md Affected: Linux >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < cef047e0a55cb07906fcaae99170f19a9c0bb6c2; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < fe53a726d5edf864e80b490780cc135fc1adece9; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < 9768536f82600a05ce901e31ccfabd92c027ff71; >= 3fbf7f011f2426dac8c982f… Fixed in: Linux 9768536f82600a05ce901e31ccfabd92c027ff71, Linux 296da78494633e1ab5e2e74173a9c8683b04aa6b, Linux 8a55c161f7f9c1aa1c70611b39830d51c83ef36d Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Other
- https://git.kernel.org/stable/c/cef047e0a55cb07906fcaae99170f19a9c0bb6c2
- https://git.kernel.org/stable/c/fe53a726d5edf864e80b490780cc135fc1adece9
- https://git.kernel.org/stable/c/9768536f82600a05ce901e31ccfabd92c027ff71
- https://git.kernel.org/stable/c/296da78494633e1ab5e2e74173a9c8683b04aa6b
- https://git.kernel.org/stable/c/f505a165f1c7cd37b4cb6952042a5984693a4067
- https://git.kernel.org/stable/c/8a55c161f7f9c1aa1c70611b39830d51c83ef36d
FAQ
Is CVE-2025-40060 being exploited?
There is no confirmed exploitation: CVE-2025-40060 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-40060?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2025-40060?
Linux >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < cef047e0a55cb07906fcaae99170f19a9c0bb6c2; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < fe53a726d5edf864e80b490780cc135fc1adece9; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < 9768536f82600a05ce901e31ccfabd92c027ff71; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < 296da78494633e1ab5e2e74173a9c8683b04aa6b; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < f505a165f1c7cd37b4cb6952042a5984693a4067; >= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, < 8a55c161f7f9c1aa1c70611b39830d51c83ef36d; Linux 5.13.
Is there a fix for CVE-2025-40060?
Yes. Fixed in Linux 9768536f82600a05ce901e31ccfabd92c027ff71, Linux 296da78494633e1ab5e2e74173a9c8683b04aa6b, Linux 8a55c161f7f9c1aa1c70611b39830d51c83ef36d. Upgrade Linux to 8a55c161f7f9c1aa1c70611b39830d51c83ef36d or later.
How do I check if I'm affected by CVE-2025-40060?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.