{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-38424","id":"CVE-2025-38424","title":"perf: Fix sample vs do_exit()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf: Fix sample vs do_exit()\n\nBaisheng Gao reported an ARM64 crash, which Mark decoded as being a\nsynchronous external abort -- most likely due to trying to access\nMMIO in bad ways.\n\nThe crash further shows perf trying to do a user stack sample while in\nexit_mmap()'s tlb_finish_mmu() -- i.e. while tearing down the address\nspace ","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf: Fix sample vs do_exit()\n\nBaisheng Gao reported an ARM64 crash, which Mark decoded as being a\nsynchronous external abort -- most likely due to trying to access\nMMIO in bad ways.\n\nThe crash further shows perf trying to do a user stack sample while in\nexit_mmap()'s tlb_finish_mmu() -- i.e. while tearing down the address\nspace it is trying to access.\n\nIt turns out that we stop perf after we tear down the userspace mm; a\nreceipie for disaster, since perf likes to access userspace for\nvarious reasons.\n\nFlip this order by moving up where we stop perf in do_exit().\n\nAdditionally, harden PERF_SAMPLE_CALLCHAIN and PERF_SAMPLE_STACK_USER\nto abort when the current task does not have an mm (exit_mm() makes\nsure to set current->mm = NULL; before commencing with the actual\nteardown). Such that CPU wide events don't trip on this same problem.","published":"2025-07-25T14:16:44.846Z","updated":"2026-10-28T02:30:50.378732289Z","reserved":"2025-04-16T04:51:24.014Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c5ebcedb566ef17bda7b02686e0d658a7bb42ee7","lessThan":"7b8f3c72175c6a63a95cf2e219f8b78e2baad34e","status":"affected","versionType":"git"},{"version":"c5ebcedb566ef17bda7b02686e0d658a7bb42ee7","lessThan":"507c9a595bad3abd107c6a8857d7fd125d89f386","status":"affected","versionType":"git"},{"version":"c5ebcedb566ef17bda7b02686e0d658a7bb42ee7","lessThan":"a9f6aab7910a0ef2895797f15c947f6d1053160f","status":"affected","versionType":"git"},{"version":"c5ebcedb566ef17bda7b02686e0d658a7bb42ee7","lessThan":"975ffddfa2e19823c719459d2364fcaa17673964","status":"affected","versionType":"git"},{"version":"c5ebcedb566ef17bda7b02686e0d658a7bb42ee7","lessThan":"2ee6044a693735396bb47eeaba1ac3ae26c1c99b","status":"affected","versionType":"git"},{"version":"c5ebcedb566ef17bda7b02686e0d658a7bb42ee7","lessThan":"456019adaa2f5366b89c868dea9b483179bece54","status":"affected","versionType":"git"},{"version":"c5ebcedb566ef17bda7b02686e0d658a7bb42ee7","lessThan":"7311970d07c4606362081250da95f2c7901fc0db","status":"affected","versionType":"git"},{"version":"c5ebcedb566ef17bda7b02686e0d658a7bb42ee7","lessThan":"4f6fc782128355931527cefe3eb45338abd8ab39","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.7","status":"affected"},{"version":"0","lessThan":"3.7","status":"unaffected","versionType":"semver"},{"version":"5.4.295","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.239","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.186","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.142","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.95","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.35","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.15.4","lessThanOrEqual":"6.15.*","status":"unaffected","versionType":"semver"},{"version":"6.16","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/7b8f3c72175c6a63a95cf2e219f8b78e2baad34e","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/507c9a595bad3abd107c6a8857d7fd125d89f386","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/a9f6aab7910a0ef2895797f15c947f6d1053160f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/975ffddfa2e19823c719459d2364fcaa17673964","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2ee6044a693735396bb47eeaba1ac3ae26c1c99b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/456019adaa2f5366b89c868dea9b483179bece54","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/7311970d07c4606362081250da95f2c7901fc0db","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4f6fc782128355931527cefe3eb45338abd8ab39","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38424.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38424","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00217,"epssPercentile":0.12358,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-38424","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38424","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-38424","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-38424","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}