{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-142879","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.334Z","datePublished":"2026-12-03T03:23:35.948Z","dateUpdated":"2026-12-03T03:23:35.948Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-03T03:23:35.948Z"},"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":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/migrate.c"],"versions":[{"version":"e39bb6be9f2b39a6dbaeff484361de76021b175d","lessThan":"4a843e3d55d194fb1e49fb85b579028e80392cec","status":"affected","versionType":"git"},{"version":"e39bb6be9f2b39a6dbaeff484361de76021b175d","lessThan":"7643b5e6aabda50f5b3475b4917af157b4fe83d2","status":"affected","versionType":"git"},{"version":"e39bb6be9f2b39a6dbaeff484361de76021b175d","lessThan":"f9a41150ec9720ea1b140f5fd0d8a3466560baae","status":"affected","versionType":"git"},{"version":"e39bb6be9f2b39a6dbaeff484361de76021b175d","lessThan":"0dfdc739e124badfaeefa63dddde51ea7b6db214","status":"affected","versionType":"git"},{"version":"e39bb6be9f2b39a6dbaeff484361de76021b175d","lessThan":"632853f04454fd1f424996070f636856796a8efb","status":"affected","versionType":"git"},{"version":"e39bb6be9f2b39a6dbaeff484361de76021b175d","lessThan":"fe623a81ad9eddf10059b4e44bca0440d9120613","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/migrate.c"],"versions":[{"version":"5.18","status":"affected"},{"version":"0","lessThan":"5.18","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.5","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"7.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"7.4-rc2"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/4a843e3d55d194fb1e49fb85b579028e80392cec"},{"url":"https://git.kernel.org/stable/c/7643b5e6aabda50f5b3475b4917af157b4fe83d2"},{"url":"https://git.kernel.org/stable/c/f9a41150ec9720ea1b140f5fd0d8a3466560baae"},{"url":"https://git.kernel.org/stable/c/0dfdc739e124badfaeefa63dddde51ea7b6db214"},{"url":"https://git.kernel.org/stable/c/632853f04454fd1f424996070f636856796a8efb"},{"url":"https://git.kernel.org/stable/c/fe623a81ad9eddf10059b4e44bca0440d9120613"}],"title":"mm/migrate: snapshot the source nid before the misplaced migration","x_generator":{"engine":"bippy-1.2.0"}}}}