CVE-2026-142879
mm/migrate: snapshot the source nid before the misplaced migration
AI summary AI generated
An attacker with local access could trigger a use-after-free in the Linux kernel memory migration code by reading the node ID of a freed folio during promotion accounting.
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < 4a843e3d55d194fb1e49fb85b579028e80392cec; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < 7643b5e6aabda50f5b3475b4917af157b4fe83d2; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < f9a41150ec9720ea1b140f5fd0d8a3466560baae; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < 0dfdc739e124badfaeefa63dddde51ea7b6db214; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < 632853f04454fd1f424996070f636856796a8efb; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < fe623a81ad9eddf10059b4e44bca0440d9120613
- Anyone running Linux 5.18
Vulnerability facts
- Affected
- Linux >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < 4a843e3d55d194fb1e49fb85b579028e80392cec; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < 7643b5e6aabda50f5b3475b4917af157b4fe83d2; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < f9a41150ec9720ea1b140f5fd0d8a3466560baae; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < 0dfdc739e124badfaeefa63dddde51ea7b6db214; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < 632853f04454fd1f424996070f636856796a8efb; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < fe623a81ad9eddf10059b4e44bca0440d9120613; Linux 5.18
- Fixed in
- Linux 4a843e3d55d194fb1e49fb85b579028e80392cec, Linux 7643b5e6aabda50f5b3475b4917af157b4fe83d2, Linux 0dfdc739e124badfaeefa63dddde51ea7b6db214, Linux 632853f04454fd1f424996070f636856796a8efb
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < 4a843e3d55d194fb1e49fb85b579028e80392cec; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < 7643b5e6aabda50f5b3475b4917af157b4fe83d2; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < f9a41150ec9720ea1b140f5fd0d8a3466560baae; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < 0dfdc739e124badfaeefa63dddde51ea7b6db214; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < 632853f04454fd1f424996070f636856796a8efb; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < fe623a81ad9eddf10059b4e44bca0440d9120613 | — | cvelist |
| Linux | 5.18 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-142879. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-142879.md Affected: Linux >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < 4a843e3d55d194fb1e49fb85b579028e80392cec; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < 7643b5e6aabda50f5b3475b4917af157b4fe83d2; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < f9a41150ec9720ea1b140f5fd0d8a3466560baae; >= e39bb6be9f2b39a6dbaeff4… Fixed in: Linux 4a843e3d55d194fb1e49fb85b579028e80392cec, Linux 7643b5e6aabda50f5b3475b4917af157b4fe83d2, Linux 0dfdc739e124badfaeefa63dddde51ea7b6db214, Linux 632853f04454fd1f424996070f636856796a8efb Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
Other
- https://git.kernel.org/stable/c/4a843e3d55d194fb1e49fb85b579028e80392cec
- https://git.kernel.org/stable/c/7643b5e6aabda50f5b3475b4917af157b4fe83d2
- https://git.kernel.org/stable/c/f9a41150ec9720ea1b140f5fd0d8a3466560baae
- https://git.kernel.org/stable/c/0dfdc739e124badfaeefa63dddde51ea7b6db214
- https://git.kernel.org/stable/c/632853f04454fd1f424996070f636856796a8efb
- https://git.kernel.org/stable/c/fe623a81ad9eddf10059b4e44bca0440d9120613
FAQ
Is CVE-2026-142879 being exploited?
There is no confirmed exploitation: CVE-2026-142879 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-142879?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2026-142879?
Linux >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < 4a843e3d55d194fb1e49fb85b579028e80392cec; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < 7643b5e6aabda50f5b3475b4917af157b4fe83d2; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < f9a41150ec9720ea1b140f5fd0d8a3466560baae; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < 0dfdc739e124badfaeefa63dddde51ea7b6db214; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < 632853f04454fd1f424996070f636856796a8efb; >= e39bb6be9f2b39a6dbaeff484361de76021b175d, < fe623a81ad9eddf10059b4e44bca0440d9120613; Linux 5.18.
Is there a fix for CVE-2026-142879?
Yes. Fixed in Linux 4a843e3d55d194fb1e49fb85b579028e80392cec, Linux 7643b5e6aabda50f5b3475b4917af157b4fe83d2, Linux 0dfdc739e124badfaeefa63dddde51ea7b6db214, Linux 632853f04454fd1f424996070f636856796a8efb. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2026-142879?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| UNSCORED | CVE-2026-142948 i2c: designware: queue only one read command for block reads | Linux kernel | ||
| UNSCORED | CVE-2026-142947 cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails | Linux kernel | ||
| UNSCORED | CVE-2026-142946 ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device() | Linux kernel | ||
| UNSCORED | CVE-2026-142945 ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device() | Linux kernel | ||
| UNSCORED | CVE-2026-142944 ASoC: amd: acp-es8336: Use an owned codec device reference | Linux kernel |