StraitOfVuln
Latest / CVE-2026-142879

CVE-2026-142879

Not yet scoredReceived
CVE.org ↗NVD ↗

Description

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.

Details

CVE ID
CVE-2026-142879
Published / updated
03 Dec 2026, 04:18 UTC · last modified 03 Dec 2026, 04:18 UTC
Severity
Not yet scored by NVD
CVSS score
—
Affected vendor
Linux
Affected products
Linux
Affected versions
Linux: e39bb6be9f2b39a6dbaeff484361de76021b175d to before 4a843e3d55d194fb1e49fb85b579028e80392cec, e39bb6be9f2b39a6dbaeff484361de76021b175d to before 7643b5e6aabda50f5b3475b4917af157b4fe83d2, e39bb6be9f2b39a6dbaeff484361de76021b175d to before f9a41150ec9720ea1b140f5fd0d8a3466560baae, e39bb6be9f2b39a6dbaeff484361de76021b175d to before 0dfdc739e124badfaeefa63dddde51ea7b6db214, e39bb6be9f2b39a6dbaeff484361de76021b175d to before 632853f04454fd1f424996070f636856796a8efb, e39bb6be9f2b39a6dbaeff484361de76021b175d to before fe623a81ad9eddf10059b4e44bca0440d9120613
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
Linux 4a843e3d55d194fb1e49fb85b579028e80392cec, Linux 7643b5e6aabda50f5b3475b4917af157b4fe83d2, Linux f9a41150ec9720ea1b140f5fd0d8a3466560baae, Linux 0dfdc739e124badfaeefa63dddde51ea7b6db214, Linux 632853f04454fd1f424996070f636856796a8efb, Linux fe623a81ad9eddf10059b4e44bca0440d9120613
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.34% probability of exploitation in the next 30 days · 29% percentile (03 Dec 2026)
Weakness
—
Remediation
See the vendor advisory below.
Source (CNA)
416baaa9-dc9f-4396-8d5f-8c081fb06d67