GHSA-C2QP-V6RW-8693
Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32In the Linux kernel, the following vulnerability has been resolved:
mm/madvise: atomically clear the young bit on THP MADV_COLD
As-is, madvise_cold_or_pageout_pte_range() discards the hardware young bit by invalidating the PMD, doing pmd_mkold() and subsequently writing to the pmd again. However, it does so in a racy manner, looking at a possibly-stale snapshot. It's entirely possible that a write elsewhere set the hardware D bit, which this logic now loses.
Fix it by using pmdp_test_and_clear_young(). This is an atomic modification of the PMD entry, and thus safe against any possible racing writes. As a (nice) side-effect, this elides one non-required TLB flush in pmdp_invalidate().
This bug can interact with the swapping system in complicated ways, leading to data loss. For instance, if a folio is marked lazyfree, but was later read from, and then MADV_COLD'd while racing a write to that same THP, dropping the dirty bit may lead to data loss as reclaim/MADV_PAGEOUT drops the "clean" anon folio:
T0 T1
MADV_FREE(thp) | folio marked lazyfree | read(thp) | PMD marked young by hardware | | MADV_COLD(thp) write(thp) | if (pmd_young(pmd)) { PMD marked dirty by hardware | set(pmdp, pmd_mkold(pmd)); MADV_PAGEOUT/reclaim | dirty bit may or may not be | set | reclaim/pageout may drop | the folio |
{
"affected": [],
"aliases": [
"CVE-2026-99918"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-30T14:20:27Z",
"severity": null
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/madvise: atomically clear the young bit on THP MADV_COLD\n\nAs-is, madvise_cold_or_pageout_pte_range() discards the hardware young bit\nby invalidating the PMD, doing pmd_mkold() and subsequently writing to the\npmd again. However, it does so in a racy manner, looking at a\npossibly-stale snapshot. It\u0027s entirely possible that a write elsewhere\nset the hardware D bit, which this logic now loses.\n\nFix it by using pmdp_test_and_clear_young(). This is an atomic\nmodification of the PMD entry, and thus safe against any possible racing\nwrites. As a (nice) side-effect, this elides one non-required TLB flush\nin pmdp_invalidate().\n\nThis bug can interact with the swapping system in complicated ways,\nleading to data loss. For instance, if a folio is marked lazyfree, but\nwas later read from, and then MADV_COLD\u0027d while racing a write to that\nsame THP, dropping the dirty bit may lead to data loss as\nreclaim/MADV_PAGEOUT drops the \"clean\" anon folio:\n\nT0 T1\n================================================================\nMADV_FREE(thp)\t\t\t|\n folio marked lazyfree\t\t|\nread(thp)\t\t\t|\n PMD marked young by hardware\t|\n\t\t\t\t| MADV_COLD(thp)\nwrite(thp)\t\t\t| if (pmd_young(pmd)) {\n PMD marked dirty by hardware\t| set(pmdp, pmd_mkold(pmd));\nMADV_PAGEOUT/reclaim\t\t|\n dirty bit may or may not be |\n set\t\t\t\t|\n reclaim/pageout may drop |\n the folio\t\t\t|",
"id": "GHSA-c2qp-v6rw-8693",
"modified": "2026-11-30T15:32:49Z",
"published": "2026-11-30T15:32:49Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99918"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/17ee2edd085250973eb00cbd98c8b2e0f1a64eda"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/246c8cc33438a71c28f9b86baa492d9a0a130316"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/5a4d557c02049f75c260dd5492c6e1961e49e77e"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/866940b1ccbf8061528986484eac73e44f8a1c52"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/9eeed293486a5389bc07232613ed57e875c5bdd8"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/be48a2b1253655b4f4fdde4c950ff5c87f2ec51a"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/be6be6707c2953dc4ee979e7e4605fe436d87429"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/fe34430e1f0c5788160508da2265d904c6afab83"
}
],
"schema_version": "1.4.0",
"severity": []
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.