CVE-2026-142879

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.

Package Linux Kernel
Published 2026-12-03
Last modified 2026-12-03
Patch available
Yes

Affected versions

Linux kernel versions 5.18 and later are affected. Fixed in 6.1.193, 6.6.163, 6.12.118, 6.18.64, 7.3.5, 7.4-rc2 and their respective stable series.

Affected from
≥ 5.18
Fixed in
✓ 6.1.193 6.1.x ✓ 6.6.163 6.6.x ✓ 6.12.118 6.12.x ✓ 6.18.64 6.18.x ✓ 7.3.5 7.3.x ✓ 7.4-rc2

Frequently asked questions

  • What is CVE-2026-142879?

    CVE-2026-142879 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 5.18 onward and has been patched in 6.1.193, 6.6.163, 6.12.118 and others. CVE-2026-142879 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

  • Is there a patch available for CVE-2026-142879?

    Yes. CVE-2026-142879 has been patched. Fixed versions include 6.1.193, 6.6.163, 6.12.118 and others. If you are running Linux kernel 5.18 or later up to the fix versions, apply the relevant patch for your kernel branch.

  • Is CVE-2026-142879 actively exploited?

    No. CVE-2026-142879 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.