perf: Fix sample vs do_exit()
Summary
| CVE | CVE-2025-38424 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2025-07-25 15:15:27 UTC |
| Updated | 2026-07-30 06:23:13 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 5.5 MEDIUM from [email protected]
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Problem Types: NVD-CWE-noinfo
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 5.5 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| 3.1 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | Secondary | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Linux | Linux Kernel | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected c5ebcedb566ef17bda7b02686e0d658a7bb42ee7 7b8f3c72175c6a63a95cf2e219f8b78e2baad34e git | Not specified |
| CNA | Linux | Linux | affected c5ebcedb566ef17bda7b02686e0d658a7bb42ee7 507c9a595bad3abd107c6a8857d7fd125d89f386 git | Not specified |
| CNA | Linux | Linux | affected c5ebcedb566ef17bda7b02686e0d658a7bb42ee7 a9f6aab7910a0ef2895797f15c947f6d1053160f git | Not specified |
| CNA | Linux | Linux | affected c5ebcedb566ef17bda7b02686e0d658a7bb42ee7 975ffddfa2e19823c719459d2364fcaa17673964 git | Not specified |
| CNA | Linux | Linux | affected c5ebcedb566ef17bda7b02686e0d658a7bb42ee7 2ee6044a693735396bb47eeaba1ac3ae26c1c99b git | Not specified |
| CNA | Linux | Linux | affected c5ebcedb566ef17bda7b02686e0d658a7bb42ee7 456019adaa2f5366b89c868dea9b483179bece54 git | Not specified |
| CNA | Linux | Linux | affected c5ebcedb566ef17bda7b02686e0d658a7bb42ee7 7311970d07c4606362081250da95f2c7901fc0db git | Not specified |
| CNA | Linux | Linux | affected c5ebcedb566ef17bda7b02686e0d658a7bb42ee7 4f6fc782128355931527cefe3eb45338abd8ab39 git | Not specified |
| CNA | Linux | Linux | affected 3.7 | Not specified |
| CNA | Linux | Linux | unaffected 3.7 semver | Not specified |
| CNA | Linux | Linux | unaffected 5.4.295 5.4.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.10.239 5.10.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15.186 5.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.1.142 6.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.95 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.35 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.15.4 6.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.16 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| lists.debian.org/debian-lts-announce/2025/10/msg00008.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | Mailing List, Third Party Advisory |
| git.kernel.org/stable/c/7311970d07c4606362081250da95f2c7901fc0db | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/456019adaa2f5366b89c868dea9b483179bece54 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/4f6fc782128355931527cefe3eb45338abd8ab39 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/a9f6aab7910a0ef2895797f15c947f6d1053160f | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/975ffddfa2e19823c719459d2364fcaa17673964 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/507c9a595bad3abd107c6a8857d7fd125d89f386 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/2ee6044a693735396bb47eeaba1ac3ae26c1c99b | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| lists.debian.org/debian-lts-announce/2025/10/msg00007.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | Mailing List, Third Party Advisory |
| git.kernel.org/stable/c/7b8f3c72175c6a63a95cf2e219f8b78e2baad34e | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.