Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-38554

published high CVSS 3.1 · 7.8

mm: fix a UAF when vma->mm is freed after vma->vm_refcnt got dropped

Published
19 Aug 2025, 17:02:33 UTC
Updated
05 Aug 2026, 12:02:52 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux3104138517fc66aad21f4a2487bb572e9fc2e3ec to < 6e88fe54721dee17d3496bc998f0c7d243896348 · 3104138517fc66aad21f4a2487bb572e9fc2e3ec to < 1bcd236a2536a451e385f8d6d2bb589689ec812f · 3104138517fc66aad21f4a2487bb572e9fc2e3ec to < 9bbffee67ffd16360179327b57f3b1245579ef08 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.15 (affected) · 0 to < 6.15 (unaffected · semver) · 6.15.10 through 6.15.* (unaffected · semver) · 6.16.1 through 6.16.* (unaffected · semver) · 6.17 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
SUSE / openSUSE SLE-16 cluster-md-kmp-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 cluster-md-kmp-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 cluster-md-kmp-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21179-1
SUSE / openSUSE SLE-16 cluster-md-kmp-defaults390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE SLE-16 cluster-md-kmp-defaults390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21179-1
SUSE / openSUSE SLE-16 cluster-md-kmp-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 cluster-md-kmp-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 cluster-md-kmp-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21179-1
SUSE / openSUSE SLE-16 dlm-kmp-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 dlm-kmp-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 dlm-kmp-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21179-1
SUSE / openSUSE SLE-16 dlm-kmp-defaults390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 dlm-kmp-defaults390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21179-1
SUSE / openSUSE SLE-16 dlm-kmp-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 dlm-kmp-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 dlm-kmp-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21179-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21179-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaults390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaults390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21179-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21179-1
SUSE / openSUSE SLE-16 kernelaarch64 Advisory build 64kb-6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernelaarch64 Advisory build 64kb-devel-6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernelaarch64 Advisory build 64kb-extra-6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-64kbaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-64kb-develaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-64kb-extraaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-defaultaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-defaultaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-defaults390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-defaults390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-baseaarch64 Advisory build 6.12.0-160000.6.1.160000.2.4 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-baseppc64le Advisory build 6.12.0-160000.6.1.160000.2.4 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-basex86_64 Advisory build 6.12.0-160000.6.1.160000.2.4 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-develaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-develaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-develppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-develppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-devels390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-devels390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-develx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-develx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-extraaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-extraaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-extrappc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-extrappc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-extras390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-extras390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-extrax86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-extrax86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-livepatchppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-livepatchppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-livepatchs390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-livepatchs390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-livepatchx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-livepatchx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-vdsox86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-vdsox86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-develnoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-develnoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-docsnoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-docsnoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-docs-htmlnoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-docs-htmlnoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-kvmsmallaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-kvmsmallaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-kvmsmallppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-kvmsmallppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-kvmsmallx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-kvmsmallx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-develaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-develaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-develppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-develppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-develx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-develx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-vdsox86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-vdsox86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-livepatch-6_12_0-160000_5-defaultppc64le Advisory build 5-160000.4.3 SUSE-SU-2026:20149-1
SUSE / openSUSE SLE-16 kernel-livepatch-6_12_0-160000_5-defaults390x Advisory build 5-160000.4.3 SUSE-SU-2026:20149-1
SUSE / openSUSE SLE-16 kernel-livepatch-6_12_0-160000_5-defaultx86_64 Advisory build 5-160000.4.3 SUSE-SU-2026:20149-1
SUSE / openSUSE SLE-16 kernel-macrosnoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-macrosnoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-obs-qaaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-obs-qaaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-obs-qappc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-obs-qappc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-obs-qas390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-obs-qas390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-obs-qax86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-obs-qax86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-sourcenoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-sourcenoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: mm: fix a UAF when vma->mm is freed after vma->vm_refcnt got dropped By inducing delays in the right places, Jann Horn created a reproducer for a hard to hit UAF issue that became possible after VMAs were allowed to be recycled by adding SLAB_TYPESAFE_BY_RCU to their cache. Race description is borrowed from Jann's discovery report: lock_vma_under_rcu() looks up a VMA locklessly with mas_walk() under rcu_read_lock(). At that point, the VMA may be concurrently freed, and it can be recycled by another process. vma_start_read() then increments the vma->vm_refcnt (if it is in an acceptable range), and if this succeeds, vma_start_read() can return a recycled VMA. In this scenario where the VMA has been recycled, lock_vma_under_rcu() will then detect the mismatching ->vm_mm pointer and drop the VMA through vma_end_read(), which calls vma_refcount_put(). vma_refcount_put() drops the refcount and then calls rcuwait_wake_up() using a copy of vma->vm_mm. This is wrong: It implicitly assumes that the caller is keeping the VMA's mm alive, but in this scenario the caller has no relation to the VMA's mm, so the rcuwait_wake_up() can cause UAF. The diagram depicting the race: T1 T2 T3 == == == lock_vma_under_rcu mas_walk <VMA gets removed from mm> mmap <the same VMA is reallocated> vma_start_read __refcount_inc_not_zero_limited_acquire munmap __vma_enter_locked refcount_add_not_zero vma_end_read vma_refcount_put __refcount_dec_and_test rcuwait_wait_event <finish operation> rcuwait_wake_up [UAF] Note that rcuwait_wait_event() in T3 does not block because refcount was already dropped by T1. At this point T3 can exit and free the mm causing UAF in T1. To avoid this we move vma->vm_mm verification into vma_start_read() and grab vma->vm_mm to stabilize it before vma_refcount_put() operation. [[email protected]: v3]

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

5

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerable path is entered from the architecture user page-fault handler (`lock_vma_under_rcu()`), `madvise()`/`userfaultfd`/`process_vm` paths, and `/proc/pid/maps` traversal — all require local code execution. No remote peer can drive the mmap/munmap/exit sequence needed for the race. AC:L - The attacker controls every side of the race — the page-faulting thread, the thread unmapping the VMA, and the second process that recycles the VMA slab object and then exits to free its mm — and can spray VMA allocations and retry the loop indefinitely across CPUs. Although the window is narrow, no condition lies outside the attacker's influence. PR:L - Any unprivileged local process can reach the code simply by taking a page fault or reading `/proc/pid/maps`; no capability, namespace privilege, or configuration gate exists on the path. UI:N - The attacker drives the entire sequence with its own threads and child processes; no victim action is required. S:U - The use-after-free corrupts kernel memory within the same security authority; there is no VM, IOMMU, or sandbox boundary crossed. C:H - The freed `mm_struct` is read after being returned to `mm_cachep` and potentially reallocated, and the resulting UAF on a core mm object combined with the `wake_up_process()` primitive gives the attacker a path to arbitrary kernel memory disclosure. I:H - `rcuwait_wake_up()` loads a `task_struct *` out of freed, attacker-groomable memory and passes it to `wake_up_process()`, which writes into that object and dispatches through `p->sched_class->enqueue_task()` — an attacker-controlled indirect call yielding arbitrary write and control-flow hijack. A:H - Even without successful grooming, dereferencing a freed `mm_struct` and waking a bogus task pointer corrupts scheduler state and causes a kernel oops or panic, and the race can be retried in a loop.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 3104138517fc66aad21f4a2487bb572e9fc2e3ec to < 6e88fe54721dee17d3496bc998f0c7d243896348 (affected · git)3104138517fc66aad21f4a2487bb572e9fc2e3ec to < 1bcd236a2536a451e385f8d6d2bb589689ec812f (affected · git)3104138517fc66aad21f4a2487bb572e9fc2e3ec to < 9bbffee67ffd16360179327b57f3b1245579ef08 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.15 (affected)0 to < 6.15 (unaffected · semver)6.15.10 through 6.15.* (unaffected · semver)6.16.1 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

1

Linux · cna

mm: fix a UAF when vma->mm is freed after vma->vm_refcnt got dropped

Provenance

Schema
5.2
Searchable
yes
Content hash
d87cd6588ad43e1102e11d02d216453c3a9f0d622adfa4391d04d2b982dd3b98
Ingested
23 Sep 2026, 08:46:47 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected