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-2026-99650

published high CVSS 3.1 · 7.8

mm/ksm: fix use of a freed anon_vma at swap-in

Published
20 Nov 2026, 05:50:03 UTC
Updated
23 Nov 2026, 08:05:31 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxba6f0ff3981e6263ab81ac512f04cca55b85ec81 to < 74a05dab72662bd27ade63f6f44a2ea714815de7 · ba6f0ff3981e6263ab81ac512f04cca55b85ec81 to < 27e31a508e4f21f2e1bbb54f8994b235fd3ee2ea · ba6f0ff3981e6263ab81ac512f04cca55b85ec81 to < 21cc8f704b6aed33175ae22a4c467c5e8e2bdd9e · ba6f0ff3981e6263ab81ac512f04cca55b85ec81 to < d25821a954382d13a5dd770ee5215729e8d274d7 · ba6f0ff3981e6263ab81ac512f04cca55b85ec81 to < daa1e227f972f64a8468aa0101170fadb93ab552 · ba6f0ff3981e6263ab81ac512f04cca55b85ec81 to < 97ce258daffd374f5403641ca892f95e31769dbb · ba6f0ff3981e6263ab81ac512f04cca55b85ec81 to < 85260730efefc48111603fa865d224bae1f5447a · ba6f0ff3981e6263ab81ac512f04cca55b85ec81 to < 4c2dec1dce368ad9e9b1814307cb5ef3832fa07e · Other versions: unaffected Affected Not stated Linux
Linux — Linux2.6.36 (affected) · 0 to < 2.6.36 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.5 through 7.3.* (unaffected · semver) · 7.4-rc2 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Pending Fix; Not Affected Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
SUSE / openSUSE openSUSE-Tumbleweed kernel-develaarch64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develppc64le Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devels390x Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develx86_64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
Show 12 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosaarch64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosppc64le Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macross390x Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosx86_64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceaarch64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceppc64le Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sources390x Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourcex86_64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillaaarch64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillappc64le Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillas390x Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillax86_64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1

Description

In the Linux kernel, the following vulnerability has been resolved: mm/ksm: fix use of a freed anon_vma at swap-in A folio read from a swap slot previously shared by KSM can remain in the swap cache after the process that first mapped it exits. Its anon_vma can then be freed, so ksm_might_need_to_copy() must not dereference it to compare roots. Doing so can result in some false-positives, resulting in the reverse mapping missing the new folio mapping, preventing migration and reclaim. SLAB_TYPESAFE_BY_RCU allows individual anon_vma objects to be reused immediately after freeing. A stale pointer can then refer to another anon_vma whose root matches, even though the target VMA is not linked to that anon_vma. Move the anonymous rmap compatibility checks into folio_anon_rmap_compatible(). Keep the page-index check and compare the folio's anon_vma pointer against the VMA's own anon_vma and root first. If neither matches, bite the bullet and walk the VMA's anon_vma_chain. The VMA keeps these anon_vmas alive, and finding a match guarantees that reverse mapping can find the new mapping. Lorenzo Stoakes says in a private discussion: "This isn't quite equivalent to the existing check. Every anon_vma in an anon_vma_chain shares the same root, but if you split a VMA then fork both of them like this: VMA A / \ <split> VMA B VMA C \ / root <- anon_vma 1 ----^ ^---- <fork> / parent \ anon_vma 2 anon_vma 3 | | VMA D VMA E VMA's D and E both get their own new anon_vma's such that: VMA D: anon_vma 2 -> anon_vma 1 -> root VMA E: anon_vma 3 -> anon_vma 1 -> root And if you found a folio referencing anon_vma 2, the existing check: anon_vma->root == vma->anon-vma->root Would be true for VMA's B, C, D & E. However after your change it'd be true for VMA D only, as it's the only one with anon_vma 2 in its anon_vma_chain. Whether or not that could actually happen in practice... 🙂 I don't know. [...] after your change it'd be true for VMA D only, as it's the only one with anon_vma 2 in its anon_vma_chain. [...] I would [...] say that you are making the test stricter but more correct. " If this affects performance when KSM was never even involved, we could just track whether KSM ever merged anything and just skip these checks. There isn't really a lot we can do otherwise: for mapped folios we might be able to use folio_get_anon_vma(), but for unmapped folios there really is no easy way to see if the anon_vma is still valid. Document the (confusing) lifetime requirements of folio_anon_vma().

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

1

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 - A local user access of a swapped anonymous PTE enters do_user_addr_fault(), handle_mm_fault(), handle_pte_fault(), and do_swap_page(), which calls ksm_might_need_to_copy() on the swap-cache folio. The freed anon_vma is the pointer already stored in that folio's mapping by folio_add_new_anon_rmap(). AC:L - The same user calls ksm_madvise(MADV_MERGEABLE) on two MAP_FIXED ranges so ksmd's cmp_and_merge_page() shares them, forces reclaim so try_to_unmap() publishes one swap slot through folio_dup_swap(), faults process A so folio_add_new_anon_rmap() installs A's anon_vma, exits A so anon_vma_free() drops it, then faults process B at the same linear index. PR:L - ksm_madvise() sets VM_MERGEABLE and calls __ksm_enter() with no capable() check, and the swap-in is do_user_addr_fault() on the caller's own PTE. Any local uid can run both processes once ksmd is already merging. UI:N - The attacker mmaps its own anonymous ranges, calls madvise(MADV_MERGEABLE), exits process A, and faults process B. Those are its own syscalls. S:U - folio_lock_anon_vma_read() consumes the stale anon_vma inside the host kernel that handled the fault, from try_to_unmap() of that host folio. The resulting corruption remains in that kernel security authority. C:H - If the freed slot's anon_vma->root matches, do_swap_page() skips the copy and folio_add_anon_rmap_ptes() maps the folio while folio->mapping still names that anon_vma. try_to_unmap() then reaches folio_lock_anon_vma_read(), which loads root, and rmap_walk_anon() reads the reused object's interval tree. I:H - folio_lock_anon_vma_read() down_read_trylock()s root->rwsem and, on the slow path, atomic_inc_not_zero()s the freed anon_vma->refcount. Both run from try_to_unmap() after ksm_might_need_to_copy() left the stale mapping in place, so a recycled slot is written. A:H - down_read_trylock() of a recycled root->rwsem in folio_lock_anon_vma_read(), called by try_to_unmap(), oopses reclaim or migration. A matching root also skips the copy, so the new PTE is absent from that anon_vma interval tree and try_to_unmap() cannot unmap the folio.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux ba6f0ff3981e6263ab81ac512f04cca55b85ec81 to < 74a05dab72662bd27ade63f6f44a2ea714815de7 (affected · git)ba6f0ff3981e6263ab81ac512f04cca55b85ec81 to < 27e31a508e4f21f2e1bbb54f8994b235fd3ee2ea (affected · git)ba6f0ff3981e6263ab81ac512f04cca55b85ec81 to < 21cc8f704b6aed33175ae22a4c467c5e8e2bdd9e (affected · git)ba6f0ff3981e6263ab81ac512f04cca55b85ec81 to < d25821a954382d13a5dd770ee5215729e8d274d7 (affected · git)ba6f0ff3981e6263ab81ac512f04cca55b85ec81 to < daa1e227f972f64a8468aa0101170fadb93ab552 (affected · git)ba6f0ff3981e6263ab81ac512f04cca55b85ec81 to < 97ce258daffd374f5403641ca892f95e31769dbb (affected · git)ba6f0ff3981e6263ab81ac512f04cca55b85ec81 to < 85260730efefc48111603fa865d224bae1f5447a (affected · git)ba6f0ff3981e6263ab81ac512f04cca55b85ec81 to < 4c2dec1dce368ad9e9b1814307cb5ef3832fa07e (affected · git)Default: unaffected Linux · cna
Linux Linux 2.6.36 (affected)0 to < 2.6.36 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.5 through 7.3.* (unaffected · semver)7.4-rc2 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

mm/ksm: fix use of a freed anon_vma at swap-in

Provenance

Schema
5.2
Searchable
yes
Content hash
d109235b053fa97cc53c4ca9548c9bb6e261bbdb1f3505c4b88165a127cacd34
Ingested
23 Nov 2026, 14:37:13 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