CVE-2025-38424
perf: Fix sample vs do_exit()
Check your servers for CVE-2025-38424
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-38424 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:
perf: Fix sample vs do_exit()
Baisheng Gao reported an ARM64 crash, which Mark decoded as being a synchronous external abort -- most likely due to trying to access MMIO in bad ways.
The crash further shows perf trying to do a user stack sample while in exit_mmap()'s tlb_finish_mmu() -- i.e. while tearing down the address space it is trying to access.
It turns out that we stop perf after we tear down the userspace mm; a receipie for disaster, since perf likes to access userspace for various reasons.
Flip this order by moving up where we stop perf in do_exit().
Additionally, harden PERF_SAMPLE_CALLCHAIN and PERF_SAMPLE_STACK_USER to abort when the current task does not have an mm (exit_mm() makes sure to set current->mm = NULL; before commencing with the actual teardown). Such that CPU wide events don't trip on this same problem.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
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.7% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 15 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, before 7b8f3c72175c6a63a95cf2e219f8b78e2baad34e affected from c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, before 507c9a595bad3abd107c6a8857d7fd125d89f386 affected from c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, before a9f6aab7910a0ef2895797f15c947f6d1053160f affected from c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, before 975ffddfa2e19823c719459d2364fcaa17673964 affected from c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, before 2ee6044a693735396bb47eeaba1ac3ae26c1c99b affected from c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, before 456019adaa2f5366b89c868dea9b483179bece54 affected from c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, before 7311970d07c4606362081250da95f2c7901fc0db affected from c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, before 4f6fc782128355931527cefe3eb45338abd8ab39
Other versions: unaffected
|
| Linux |
affected 3.7 unaffected before 3.7 unaffected from 5.4.295 up to and including 5.4.* unaffected from 5.10.239 up to and including 5.10.* unaffected from 5.15.186 up to and including 5.15.* unaffected from 6.1.142 up to and including 6.1.* unaffected from 6.6.95 up to and including 6.6.* unaffected from 6.12.35 up to and including 6.12.* unaffected from 6.15.4 up to and including 6.15.* unaffected 6.16 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-38424 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38424
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-38424
trivy image --scanners vuln IMAGE | grep CVE-2025-38424
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/7b8f3c72175c6a63a95cf2e219f8b78e2baad34e git.kernel.org
- https://git.kernel.org/stable/c/507c9a595bad3abd107c6a8857d7fd125d89f386 git.kernel.org
- https://git.kernel.org/stable/c/a9f6aab7910a0ef2895797f15c947f6d1053160f git.kernel.org
- https://git.kernel.org/stable/c/975ffddfa2e19823c719459d2364fcaa17673964 git.kernel.org
- https://git.kernel.org/stable/c/2ee6044a693735396bb47eeaba1ac3ae26c1c99b git.kernel.org
- https://git.kernel.org/stable/c/456019adaa2f5366b89c868dea9b483179bece54 git.kernel.org
- https://git.kernel.org/stable/c/7311970d07c4606362081250da95f2c7901fc0db git.kernel.org
- https://git.kernel.org/stable/c/4f6fc782128355931527cefe3eb45338abd8ab39 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html lists.debian.org
Source: the record CVE-2025-38424 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse