{"id":"CVE-2026-142879","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T04:18:26.230","lastModified":"2026-12-03T04:18:26.230","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"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 — 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->flags happens to be the same as page->flags,\n  : 2. folio/page nid is stored in the ->flags and never changed.\n  :\n  : In memdesc world, after a folio is freed, I assume folio->flags 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's a UAF.  It could be\n  : recycled to a different NID or maybe the slab containing the folio could\n  : be freed (assuming we're not holding the RCU read lock at this point in\n  : migration, and I don't 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's vmemmap, so the later read\ncan fault.  The snapshot avoids that read."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["mm/migrate.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"e39bb6be9f2b39a6dbaeff484361de76021b175d","lessThan":"4a843e3d55d194fb1e49fb85b579028e80392cec","versionType":"git","status":"affected"},{"version":"e39bb6be9f2b39a6dbaeff484361de76021b175d","lessThan":"7643b5e6aabda50f5b3475b4917af157b4fe83d2","versionType":"git","status":"affected"},{"version":"e39bb6be9f2b39a6dbaeff484361de76021b175d","lessThan":"f9a41150ec9720ea1b140f5fd0d8a3466560baae","versionType":"git","status":"affected"},{"version":"e39bb6be9f2b39a6dbaeff484361de76021b175d","lessThan":"0dfdc739e124badfaeefa63dddde51ea7b6db214","versionType":"git","status":"affected"},{"version":"e39bb6be9f2b39a6dbaeff484361de76021b175d","lessThan":"632853f04454fd1f424996070f636856796a8efb","versionType":"git","status":"affected"},{"version":"e39bb6be9f2b39a6dbaeff484361de76021b175d","lessThan":"fe623a81ad9eddf10059b4e44bca0440d9120613","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["mm/migrate.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"5.18","status":"affected"},{"version":"0","lessThan":"5.18","versionType":"semver","status":"unaffected"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.5","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc2","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/0dfdc739e124badfaeefa63dddde51ea7b6db214","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/4a843e3d55d194fb1e49fb85b579028e80392cec","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/632853f04454fd1f424996070f636856796a8efb","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/7643b5e6aabda50f5b3475b4917af157b4fe83d2","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/f9a41150ec9720ea1b140f5fd0d8a3466560baae","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/fe623a81ad9eddf10059b4e44bca0440d9120613","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}