GHSA-R4WF-JC4V-3MM2
Vulnerability from github – Published: 2026-12-03 06:30 – Updated: 2026-12-03 06:30In the Linux kernel, the following vulnerability has been resolved:
mm/migrate: snapshot the source nid before the misplaced migration
A successful migration frees the source folio before the promotion counter update, so the folio_nid() read there operates on a freed folio — which may already have been reallocated. It happens to work today, as Zi explained:
: Strictly speaking, it can be seen as a benign UAF. It works, because : 1. folio->flags happens to be the same as page->flags, : 2. folio/page nid is stored in the ->flags and never changed. : : In memdesc world, after a folio is freed, I assume folio->flags would be : zeroed since struct folio is freed and calling folio_nid() on a freed : folio would give a bogus result (yeah, it can be mitigated by not : zeroing node field and each node has its own struct folio pool, but that : makes folio_nid() implementation dependent).
and Matthew explained further:
: once struct folio is separately allocated, it's a UAF. It could be : recycled to a different NID or maybe the slab containing the folio could : be freed (assuming we're not holding the RCU read lock at this point in : migration, and I don't see why we would be).
A separate concern is memory hot-removal. With memory-tiering mode enabled, successful migration can release the source before the promotion-accounting folio_nid() read. If the task is preempted there, an otherwise-free source block can be offlined and removed first. On the x86 path, removal can unmap the source's vmemmap, so the later read can fault. The snapshot avoids that read.
{
"affected": [],
"aliases": [
"CVE-2026-142879"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-12-03T04:18:26Z",
"severity": null
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/migrate: snapshot the source nid before the misplaced migration\n\nA successful migration frees the source folio before the promotion\ncounter update, so the folio_nid() read there operates on a freed\nfolio \u2014 which may already have been reallocated. It happens to work\ntoday, as Zi explained:\n\n : Strictly speaking, it can be seen as a benign UAF. It works, because\n : 1. folio-\u003eflags happens to be the same as page-\u003eflags,\n : 2. folio/page nid is stored in the -\u003eflags and never changed.\n :\n : In memdesc world, after a folio is freed, I assume folio-\u003eflags would be\n : zeroed since struct folio is freed and calling folio_nid() on a freed\n : folio would give a bogus result (yeah, it can be mitigated by not\n : zeroing node field and each node has its own struct folio pool, but that\n : makes folio_nid() implementation dependent).\n\nand Matthew explained further:\n\n : once struct folio is separately allocated, it\u0027s a UAF. It could be\n : recycled to a different NID or maybe the slab containing the folio could\n : be freed (assuming we\u0027re not holding the RCU read lock at this point in\n : migration, and I don\u0027t see why we would be).\n\nA separate concern is memory hot-removal. With memory-tiering mode\nenabled, successful migration can release the source before the\npromotion-accounting folio_nid() read. If the task is preempted there,\nan otherwise-free source block can be offlined and removed first. On\nthe x86 path, removal can unmap the source\u0027s vmemmap, so the later read\ncan fault. The snapshot avoids that read.",
"id": "GHSA-r4wf-jc4v-3mm2",
"modified": "2026-12-03T06:30:37Z",
"published": "2026-12-03T06:30:37Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142879"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/0dfdc739e124badfaeefa63dddde51ea7b6db214"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/4a843e3d55d194fb1e49fb85b579028e80392cec"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/632853f04454fd1f424996070f636856796a8efb"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/7643b5e6aabda50f5b3475b4917af157b4fe83d2"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/f9a41150ec9720ea1b140f5fd0d8a3466560baae"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/fe623a81ad9eddf10059b4e44bca0440d9120613"
}
],
"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.