CVE-2025-40060
coresight: trbe: Return NULL pointer for allocation failures
Check your servers for CVE-2025-40060
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40060 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 3fbf7f011f2426dac8c982f1d2ef469a7959a524, before cef047e0a55cb07906fcaae99170f19a9c0bb6c2 affected from 3fbf7f011f2426dac8c982f1d2ef469a7959a524, before fe53a726d5edf864e80b490780cc135fc1adece9 affected from 3fbf7f011f2426dac8c982f1d2ef469a7959a524, before 9768536f82600a05ce901e31ccfabd92c027ff71 affected from 3fbf7f011f2426dac8c982f1d2ef469a7959a524, before 296da78494633e1ab5e2e74173a9c8683b04aa6b affected from 3fbf7f011f2426dac8c982f1d2ef469a7959a524, before f505a165f1c7cd37b4cb6952042a5984693a4067 affected from 3fbf7f011f2426dac8c982f1d2ef469a7959a524, before 8a55c161f7f9c1aa1c70611b39830d51c83ef36d
Other versions: unaffected
|
| Linux |
affected 5.13 unaffected before 5.13 unaffected from 5.15.195 up to and including 5.15.* unaffected from 6.1.156 up to and including 6.1.* unaffected from 6.6.112 up to and including 6.6.* unaffected from 6.12.53 up to and including 6.12.* unaffected from 6.17.3 up to and including 6.17.* unaffected 6.18 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40060 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40060
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-40060
trivy image --scanners vuln IMAGE | grep CVE-2025-40060
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/cef047e0a55cb07906fcaae99170f19a9c0bb6c2 git.kernel.org
- https://git.kernel.org/stable/c/fe53a726d5edf864e80b490780cc135fc1adece9 git.kernel.org
- https://git.kernel.org/stable/c/9768536f82600a05ce901e31ccfabd92c027ff71 git.kernel.org
- https://git.kernel.org/stable/c/296da78494633e1ab5e2e74173a9c8683b04aa6b git.kernel.org
- https://git.kernel.org/stable/c/f505a165f1c7cd37b4cb6952042a5984693a4067 git.kernel.org
- https://git.kernel.org/stable/c/8a55c161f7f9c1aa1c70611b39830d51c83ef36d git.kernel.org
Source: the record CVE-2025-40060 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse