# CVE-2025-38424: perf: Fix sample vs do\_exit()

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **Published:** 2025-07-25T14:16:44.846Z
- **Modified:** 2026-10-15T22:18:40.607Z

## Who should check

- Anyone running Linux \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 7b8f3c72175c6a63a95cf2e219f8b78e2baad34e; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 507c9a595bad3abd107c6a8857d7fd125d89f386; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< a9f6aab7910a0ef2895797f15c947f6d1053160f; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 975ffddfa2e19823c719459d2364fcaa17673964; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 2ee6044a693735396bb47eeaba1ac3ae26c1c99b; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 456019adaa2f5366b89c868dea9b483179bece54; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 7311970d07c4606362081250da95f2c7901fc0db; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 4f6fc782128355931527cefe3eb45338abd8ab39
- Anyone running Linux 3.7

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

## Affected and fixed versions

- Linux: \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 7b8f3c72175c6a63a95cf2e219f8b78e2baad34e; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 507c9a595bad3abd107c6a8857d7fd125d89f386; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< a9f6aab7910a0ef2895797f15c947f6d1053160f; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 975ffddfa2e19823c719459d2364fcaa17673964; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 2ee6044a693735396bb47eeaba1ac3ae26c1c99b; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 456019adaa2f5366b89c868dea9b483179bece54; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 7311970d07c4606362081250da95f2c7901fc0db; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 4f6fc782128355931527cefe3eb45338abd8ab39 (cvelist)
- Linux: 3.7 (cvelist)

## Mitigation

- Upgrade Linux to 4f6fc782128355931527cefe3eb45338abd8ab39 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-38424. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38424.md
Affected: Linux >= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, < 7b8f3c72175c6a63a95cf2e219f8b78e2baad34e; >= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, < 507c9a595bad3abd107c6a8857d7fd125d89f386; >= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, < a9f6aab7910a0ef2895797f15c947f6d1053160f; >= c5ebcedb566ef17bda7b026…
Fixed in: Linux 7b8f3c72175c6a63a95cf2e219f8b78e2baad34e, Linux 507c9a595bad3abd107c6a8857d7fd125d89f386, Linux 975ffddfa2e19823c719459d2364fcaa17673964, Linux 2ee6044a693735396bb47eeaba1ac3ae26c1c99b, Linux 456019adaa2f5366b89c868dea9b483179bece54, Linux 7311970d07c4606362081250da95f2c7901fc0db, Linux 4f6fc…

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-38424 being exploited?

There is no confirmed exploitation: CVE-2025-38424 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38424?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38424?

Linux \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 7b8f3c72175c6a63a95cf2e219f8b78e2baad34e; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 507c9a595bad3abd107c6a8857d7fd125d89f386; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< a9f6aab7910a0ef2895797f15c947f6d1053160f; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 975ffddfa2e19823c719459d2364fcaa17673964; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 2ee6044a693735396bb47eeaba1ac3ae26c1c99b; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 456019adaa2f5366b89c868dea9b483179bece54; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 7311970d07c4606362081250da95f2c7901fc0db; \>= c5ebcedb566ef17bda7b02686e0d658a7bb42ee7, \< 4f6fc782128355931527cefe3eb45338abd8ab39; Linux 3.7.

### Is there a fix for CVE-2025-38424?

Yes. Fixed in Linux 7b8f3c72175c6a63a95cf2e219f8b78e2baad34e, Linux 507c9a595bad3abd107c6a8857d7fd125d89f386, Linux 975ffddfa2e19823c719459d2364fcaa17673964, Linux 2ee6044a693735396bb47eeaba1ac3ae26c1c99b, Linux 456019adaa2f5366b89c868dea9b483179bece54, Linux 7311970d07c4606362081250da95f2c7901fc0db, Linux 4f6fc782128355931527cefe3eb45338abd8ab39. Upgrade Linux to 4f6fc782128355931527cefe3eb45338abd8ab39 or later.

### How do I check if I'm affected by CVE-2025-38424?

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

- patch: <https://git.kernel.org/stable/c/7b8f3c72175c6a63a95cf2e219f8b78e2baad34e>
- patch: <https://git.kernel.org/stable/c/507c9a595bad3abd107c6a8857d7fd125d89f386>
- patch: <https://git.kernel.org/stable/c/a9f6aab7910a0ef2895797f15c947f6d1053160f>
- patch: <https://git.kernel.org/stable/c/975ffddfa2e19823c719459d2364fcaa17673964>
- patch: <https://git.kernel.org/stable/c/2ee6044a693735396bb47eeaba1ac3ae26c1c99b>
- patch: <https://git.kernel.org/stable/c/456019adaa2f5366b89c868dea9b483179bece54>
- patch: <https://git.kernel.org/stable/c/7311970d07c4606362081250da95f2c7901fc0db>
- patch: <https://git.kernel.org/stable/c/4f6fc782128355931527cefe3eb45338abd8ab39>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

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

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