CVE-2026-142879 mm/migrate: snapshot the source nid before the misplaced migration
linux linux: no CVSS score yet. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.
On this page
In 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.
- EPSS
- 0.3% estimated probability of exploitation activity in the next 30 days; 29th percentile. Scored 2026-12-03. A forecast for this CVE across the internet, not for your own systems.
- Published
- Assigned by
- Linux (CNA)
- NVD analysis
- Awaiting analysis
- Record from
- the NVD, synced
Fix and patched versions
- Linux Linux: fixed in 6.1.193
- Linux Linux: fixed in 6.6.163
- Linux Linux: fixed in 6.12.118
- Linux Linux: fixed in 6.18.64
- Linux Linux: fixed in 7.3.5
- Linux Linux: fixed in 7.4-rc2
- Debian: fixed package versions per release
Ask an AI about this CVE
Show the prompt
Explain CVE-2026-142879 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-142879?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-142879?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-142879 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
Versions
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Linux | 5.18 and later |
Fixed in
| Product | Release line | Fixed in |
|---|---|---|
| Linux | 6.1 | 6.1.193 |
| Linux | 6.6 | 6.6.163 |
| Linux | 6.12 | 6.12.118 |
| Linux | 6.18 | 6.18.64 |
| Linux | 7.3 | 7.3.5 |
| Linux | later releases | 7.4-rc2 |
Linux distributions
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | linux | no fix listed | DEBIAN-CVE-2026-142879 |
| Debian | 13 | linux | 6.12.118-1 | DEBIAN-CVE-2026-142879 |
| Debian | 14 | linux | 7.3.5-1 | DEBIAN-CVE-2026-142879 |
From the distributions' data via OSV.dev: the Debian Security Tracker. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian.
References
- https://git.kernel.org/stable/c/0dfdc739e124badfaeefa63dddde51ea7b6db214
- https://git.kernel.org/stable/c/4a843e3d55d194fb1e49fb85b579028e80392cec
- https://git.kernel.org/stable/c/632853f04454fd1f424996070f636856796a8efb
- https://git.kernel.org/stable/c/7643b5e6aabda50f5b3475b4917af157b4fe83d2
- https://git.kernel.org/stable/c/f9a41150ec9720ea1b140f5fd0d8a3466560baae
- https://git.kernel.org/stable/c/fe623a81ad9eddf10059b4e44bca0440d9120613