# CVE-2025-40060: coresight: trbe: Return NULL pointer for allocation failures

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-10-28T11:48:32.775Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< cef047e0a55cb07906fcaae99170f19a9c0bb6c2; \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< fe53a726d5edf864e80b490780cc135fc1adece9; \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< 9768536f82600a05ce901e31ccfabd92c027ff71; \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< 296da78494633e1ab5e2e74173a9c8683b04aa6b; \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< f505a165f1c7cd37b4cb6952042a5984693a4067; \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< 8a55c161f7f9c1aa1c70611b39830d51c83ef36d
- Anyone running Linux 5.13

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

- Linux: \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< cef047e0a55cb07906fcaae99170f19a9c0bb6c2; \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< fe53a726d5edf864e80b490780cc135fc1adece9; \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< 9768536f82600a05ce901e31ccfabd92c027ff71; \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< 296da78494633e1ab5e2e74173a9c8683b04aa6b; \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< f505a165f1c7cd37b4cb6952042a5984693a4067; \>= 3fbf7f011f2426dac8c982f1d2ef469a7959a524, \< 8a55c161f7f9c1aa1c70611b39830d51c83ef36d (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

- Upgrade Linux to 8a55c161f7f9c1aa1c70611b39830d51c83ef36d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- other: <https://git.kernel.org/stable/c/cef047e0a55cb07906fcaae99170f19a9c0bb6c2>
- other: <https://git.kernel.org/stable/c/fe53a726d5edf864e80b490780cc135fc1adece9>
- other: <https://git.kernel.org/stable/c/9768536f82600a05ce901e31ccfabd92c027ff71>
- other: <https://git.kernel.org/stable/c/296da78494633e1ab5e2e74173a9c8683b04aa6b>
- other: <https://git.kernel.org/stable/c/f505a165f1c7cd37b4cb6952042a5984693a4067>
- other: <https://git.kernel.org/stable/c/8a55c161f7f9c1aa1c70611b39830d51c83ef36d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40060>

HTML: <https://flawdb.com/CVE-2025-40060> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40060>
