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.
Overview
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().
- Published
- 11/20/2026
- Last modified
- 11/23/2026
- CVE assigner
- Linux
- NVD analysis
- Received
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
Linux Linux | ≥ ba6f0ff3981e6263ab81ac512f04cca55b85ec81, < 74a05dab72662bd27ade63f6f44a2ea714815de7 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | ≥ ba6f0ff3981e6263ab81ac512f04cca55b85ec81, < 27e31a508e4f21f2e1bbb54f8994b235fd3ee2ea | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | ≥ ba6f0ff3981e6263ab81ac512f04cca55b85ec81, < 21cc8f704b6aed33175ae22a4c467c5e8e2bdd9e | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | ≥ ba6f0ff3981e6263ab81ac512f04cca55b85ec81, < d25821a954382d13a5dd770ee5215729e8d274d7 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | ≥ ba6f0ff3981e6263ab81ac512f04cca55b85ec81, < daa1e227f972f64a8468aa0101170fadb93ab552 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | ≥ ba6f0ff3981e6263ab81ac512f04cca55b85ec81, < 97ce258daffd374f5403641ca892f95e31769dbb | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | ≥ ba6f0ff3981e6263ab81ac512f04cca55b85ec81, < 85260730efefc48111603fa865d224bae1f5447a | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | ≥ ba6f0ff3981e6263ab81ac512f04cca55b85ec81, < 4c2dec1dce368ad9e9b1814307cb5ef3832fa07e | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Linux Linux | 2.6.36 | Verify advisory Verify the advisory platform, edition, update channel, and any version exceptions. | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Vendor advisory links
Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
7.8 · High CVSS 3.1
Scored by Linux
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
7.8 · High CVSS 3.1
Scored by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.