Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLocal unprivileged process on target
-
DeliveryInvoke MADV_COLLAPSE on a memfd
-
ExploitTrigger collapse_file() refcount/dirty rollback path
-
ExecutionRetain stale TLB entry to freed folio
-
ImpactRead/write reallocated kernel memory
Vulnerability Assessment
| Exploitation Conditions | Requires the ability to run local code on the affected host and to call madvise(MADV_COLLAPSE) against a memfd (or other file-backed mapping) to exercise khugepaged's collapse_file() path - no elevated privileges are needed, matching the commit's 'unprivileged MADV_COLLAPSE' reproduction. The affected khugepaged/transparent-hugepage file-collapse code path must be present (vulnerable kernels prior to the fixed stable releases 6.12.118, 6.18.64, 7.3.5 and 7.4-rc2). Limiting factors: exploitation is local only (AV:L - no network reach), depends on winning the timing window in which a concurrent collapse frees and reallocates the folio while a stale TLB translation persists, and is therefore most relevant on systems that run untrusted local or containerized workloads. |
| Impact | Signals are internally consistent and point to a serious but not emergency-grade local flaw. The CVSS vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 7.8 HIGH) describes a local, low-complexity, low-privilege use-after-free with full confidentiality, integrity and availability impact - a classic local privilege-escalation / kernel-memory-corruption profile rather than a remotely reachable one. The exploitation signals temper this: EPSS is 0.17% (6th percentile), the CVE is NOT on CISA KEV, and no public exploit or PoC reference is present in the input, so there is no public exploit identified at time of analysis. The vuln.today decision label is 'this_week', which is consistent with a patched, locally-exploitable kernel bug that merits prompt but not emergency patching. One cross-source tension to flag: the Tags label this 'Information Disclosure', but the CVSS impact set (C:H/I:H/A:H) and the described mechanism (a CPU retaining a user translation to a freed, reallocated folio) imply read AND write access to reallocated kernel memory - i.e. the tag understates impact; treat this as full memory corruption, not mere disclosure. Also note the description calls the trigger 'unprivileged MADV_COLLAPSE', which is consistent with PR:L (any local user running code), not PR:N. Net: a real priority for multi-tenant, container, and shared-host environments where untrusted local code runs, but low urgency for single-tenant systems with no untrusted local users. |
| Exploit ScenarioDerived | A local unprivileged user maps a memfd and repeatedly invokes MADV_COLLAPSE to drive khugepaged's collapse_file() into its reference-count or dirty-folio failure path, which unlocks and drops the folio before the TLB batch is flushed; a concurrent collapse then replaces and frees that folio while a CPU still holds a stale user translation to it. Because the vector is AV:L/AC:L/PR:L, this needs only local code execution and no special privileges, and the kernel commit message states it was reproduced with unprivileged MADV_COLLAPSE on a memfd. No public exploit identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 22, 2026
Use-after-free of a page-cache folio in the Linux kernel's khugepaged file-collapse path leaves a stale user TLB translation pointing at freed memory, giving local unprivileged code a route to memory corruption and information disclosure on affected kernels. The ordering flaw was introduced in Linux 5.18 and is fixed in the stable releases 6.12.118, 6.18.64 and 7.3.5 and in 7.4-rc2; it is reachable by any local task able to call madvise(MADV_COLLAPSE) on a memfd or other file-backed mapping, which is how the kernel developers reproduced it. No CISA KEV entry or public exploit is identified at time of analysis and EPSS is low at 0.17% (6th percentile), so exposure is concentrated on multi-tenant hosts that run untrusted local or containerized workloads. This is a serious but not emergency-grade local flaw; patching fits a this-week cadence.
RemediationAI
Apply the upstream stable fix by updating to Linux 6.12.118, 6.18.64, 7.3.5 or 7.4-rc2 (or later); these carry the change that flushes deferred unmaps at out_unlock while the folio lock and lookup reference are still held. The individual backports are d9d621ad49a969587d32c98aee1d83e679b9d361, cf1902ab0203f8767a3582143049d1bea5422096, 8c4adb787f77318df3b478f928f271e26d557208 and 854e5ff8b3ce2a776586cabebaeae645c992345b at git.kernel.org/stable, with the NVD entry at https://nvd.nist.gov/vuln/detail/CVE-2026-99707 for tracking. Patch availability is confirmed by the vendor, but the supplied sources document no separate workaround and present the flush reordering itself as the complete fix, so distribution kernels that have not yet rebased onto these stable releases should be treated as exposed. As a stop-gap that reduces but does not eliminate exposure, operators can restrict the ability of untrusted local users and containers to reach the file-collapse path, since the reported reproduction relies on unprivileged madvise(MADV_COLLAPSE) against a memfd; the trade-off is that this constrains legitimate workloads depending on collapse of file-backed and shmem mappings, and it leaves the underlying ordering bug in place wherever that path remains reachable.
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
khugepaged is the kernel's transparent huge page daemon, and collapse_file() is its file- and shmem-backed collapse routine: it isolates a page-cache folio, unmaps the user PTEs with TTU_BATCH_FLUSH (which defers TLB shootdowns into a per-task batch), installs a huge page and drops the old folio. The defect is an ordering error on the failure paths - when the reference-count or dirty-folio check fails, the code puts back the isolated folio, unlocks it and drops the lookup reference before reaching the common try_to_unmap_flush(), so the batched invalidations for the PTEs it already removed are never issued while the folio is still pinned. The page-cache reference does not keep the folio stable once the lock is released, so a concurrent collapse can replace and free it; that second collapse cannot flush the first task's per-task TLB batch, and retract_page_tables() skips short or unaligned VMAs, so nothing else retracts the mapping. A CPU can consequently retain a user translation to a freed folio, producing use-after-free style corruption and disclosure. No CWE identifier is supplied, but the class is a page-cache use-after-free caused by incorrect TLB-flush ordering. The fix moves the flush to out_unlock while the folio lock and lookup reference are still held, and keeps the common flush covering the accumulated pagelist on both success and rollback so batching on successful collapses is preserved. Supplied CPE data is only the generic cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*, so version pinning must come from the EUVD ranges and upstream commit list.
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 unprivileged MADV_COLLAPSE trigger gives AV:L/PR:L/UI:N; a stale TLB to a freed, reallocated folio allows reading and writing kernel memory, so C:H/I:H/A:H.
Primary rating from Vendor (Linux).
CVSS VectorVendor: Linux
Lifecycle Timeline
4DescriptionCVE.org
In the Linux kernel, the following vulnerability has been resolved:
mm/khugepaged: flush deferred unmaps before dropping a failed folio
collapse_file() can fail its reference-count or dirty-folio check after unmapping with TTU_BATCH_FLUSH. Both paths put back the isolated folio, then unlock it and drop the lookup reference before reaching the common try_to_unmap_flush().
The page-cache reference does not keep the folio stable once the lock is released. Another collapse can replace and free it. With its PTEs already gone, that collapse cannot flush the first task's per-task TLB batch, and retract_page_tables() skips short or unaligned VMAs. A CPU can therefore retain a user translation to the freed folio. This has been reproduced with unprivileged MADV_COLLAPSE on a memfd.
Flush at out_unlock while the lookup reference and folio lock are still held. The common flush continues to cover the accumulated pagelist on both success and rollback, preserving batching on successful collapses.
Executive ViewAI
CVE-2026-99707 is a high-severity local privilege escalation and information disclosure flaw in the Linux kernel's khugepaged file-collapse path, affecting kernels from 5.18 onward. It is reachable by unprivileged local code and poses the greatest risk to multi-tenant hosts running untrusted workloads or containers, where a compromised tenant could exploit the kernel to corrupt memory or leak sensitive data across boundaries.
Apply vendor patch.
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-131000
GHSA-gjc7-g4f8-4hmp
NVD
CVE.org
EPSS
VulDB
Exploit-DB