Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local low-privilege execution
-
DeliveryMark pages MADV_MERGEABLE for KSM merging
-
ExploitForce swap-out then exit mapping process
-
ExecutionSwap-in dereferences freed/reused anon_vma
-
ImpactCorrupt reverse mapping, block reclaim and migration
Vulnerability Assessment
| Exploitation Conditions | Exploitation requires local code execution and all of the following to coincide: KSM must be active and have merged the target anonymous pages (e.g. pages marked MADV_MERGEABLE with KSM enabled - not the default on most systems); the folio must have been read from a swap slot previously shared by KSM and remain in the swap cache; the process that first mapped it must exit so its anon_vma is freed; and SLAB_TYPESAFE_BY_RCU must reuse that freed anon_vma object such that a stale pointer's root still matches during the ksm_might_need_to_copy() comparison at swap-in. Limiting factors: AV:L means no remote reachability; PR:L means an authenticated local foothold is needed; KSM being opt-in and not default-enabled narrows the exposed population; and the dependence on object-reuse timing (not an attacker-controlled primitive per the sources) makes deterministic triggering uncertain. |
| Impact | Signals point to a genuine but non-urgent local kernel hardening fix rather than an actively-attacked flaw. The CVSS base score of 7.8 (HIGH) is driven entirely by the three H impact metrics, but the vector is local (AV:L) and requires an authenticated foothold (PR:L), so there is no remote exposure. Corroborating signals argue against elevated priority: EPSS is only 0.16% (5th percentile), the CVE is NOT in CISA KEV, and no proof-of-concept or exploit reference is supplied - so exploitation status is 'no public exploit identified at time of analysis.' The vuln.today decision label is 'this_week,' consistent with routine stable-kernel patch cadence, not 'act_now'/'emergency.' Two points of tension should be flagged: (1) the NVD CVSS assigns C:H/I:H/A:H, yet the described real-world consequence is reverse-mapping corruption that prevents page migration and reclaim - a correctness/availability problem underpinned by a use-after-free of a freed anon_vma - so the confidentiality/integrity 'High' ratings read as worst-case UAF potential rather than a demonstrated info leak or code-exec path. (2) The trigger depends on KSM having actually merged pages plus SLAB_TYPESAFE_BY_RCU object reuse, which is an opportunistic reuse-timing condition, not a reliably-controllable primitive. Net: patch on normal kernel-update schedule; this is not a drop-everything issue. |
| Exploit ScenarioDerived | A local, low-privileged user enables KSM merging on anonymous pages, forces the shared folio out to swap, then exits the process that first mapped it so its anon_vma is freed and (via SLAB_TYPESAFE_BY_RCU) potentially reused. On swap-in, ksm_might_need_to_copy() dereferences the stale anon_vma to compare roots, producing a false-positive match that leaves the new folio mapping unreachable by reverse mapping. No public PoC is available, and the SLAB reuse timing makes reliable triggering difficult. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 22, 2026
Use-after-free read in the Linux kernel's KSM swap-in path can cause reverse-mapping compatibility checks to consult a freed anon_vma, producing false positives that leave a new folio mapping out of the reverse map and impede migration and reclaim. The assessed vector is local, high-complexity, low-privilege (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H), and exploitation requires KSM to have merged the pages, a KSM-shared swap-slot folio to remain in swap cache, the original mapping process to exit, and SLAB_TYPESAFE_BY_RCU object reuse during the comparison; KSM is opt-in and not default on most systems. No public exploit identified at time of analysis, EPSS is 0.16% (5th percentile), and vendor fixes are available.
RemediationAI
Vendor-released patch: Linux 7.3.5 and 7.4-rc2, corresponding to stable commits 85260730efefc48111603fa865d224bae1f5447a and 4c2dec1dce368ad9e9b1814307cb5ef3832fa07e; apply the kernel update from https://git.kernel.org/stable/c/85260730efefc48111603fa865d224bae1f5447a and https://git.kernel.org/stable/c/4c2dec1dce368ad9e9b1814307cb5ef3832fa07e. Where KSM is not required, keeping KSM disabled or not marking workloads MADV_MERGEABLE reduces exposure because the flaw requires KSM to have merged the affected anonymous pages, at the cost of losing KSM memory deduplication; this is a compensating measure, not a replacement for the vendor patch.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Linux KSM deduplicates anonymous pages and relies on anon_vma/anon_vma_chain structures for anonymous reverse mapping. The bug is in the swap-in path: ksm_might_need_to_copy() compared roots using an anon_vma pointer that can outlive the exiting process that first mapped a folio, and SLAB_TYPESAFE_BY_RCU allows the freed anon_vma object to be reused immediately; a stale pointer can then match another anon_vma's root even though the target VMA is not linked to it. The fix moves the anonymous rmap compatibility checks into folio_anon_rmap_compatible(), keeps the page-index check, compares the folio's anon_vma pointer against the VMA's own anon_vma and root first, and otherwise walks the VMA's anon_vma_chain, which keeps those anon_vmas alive and makes a match sufficient for reverse mapping to find the new mapping. No CWE is assigned in the supplied data; this is a use-after-free/stale-pointer lifetime issue, and the fix documents the lifetime requirements of folio_anon_vma(). The CPE cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:* is a wildcard for the Linux kernel and does not distinguish KSM-enabled builds. The supplied tag Information Disclosure matches the low confidentiality component of the assessed vector, while the core described effect is reverse-mapping inconsistency.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Local low-priv trigger (AV:L/PR:L); AC:H because it depends on KSM being active plus opportunistic SLAB_TYPESAFE_BY_RCU reuse; impact is chiefly reclaim/migration failure (A:H) with only incidental UAF-based C/I exposure (L).
Primary rating from Vendor (Linux).
CVSS VectorVendor: Linux
Lifecycle Timeline
4DescriptionCVE.org
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().
Executive ViewAI
A high-severity flaw in the Linux kernel's KSM swap-in path could allow a local low-privileged user to cause memory corruption, potentially leading to system instability or limited data exposure. While exploitation requires KSM to be explicitly enabled and is highly complex, successful attacks could disrupt availability and integrity on affected hosts, warranting attention from security leadership.
Apply vendor patch. If immediate patching is not possible, disable KSM on affected systems (echo 0 > /sys/kernel/mm/ksm/run) and limit local user access to sensitive systems.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-130943
GHSA-jrv6-2gpm-h6x6
NVD
CVE.org
EPSS
VulDB
Exploit-DB