{"id":"CVE-2026-143167","state":"PUBLISHED","title":"mm/page_alloc: clear ->private of deferred free pages","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/page_alloc: clear ->private of deferred free pages\n\nfree_pages_nolock() and free_frozen_pages_nolock() put the page on\nzone->trylock_free_pages if they get neither the pcp lock nor zone->lock.\nadd_page_to_zone_llist() keeps the order of the page in page->private.\nThe next free_one_page() which does get zone->lock passes these pages to\nsplit_large_buddy() with ->private still set.\n\n__free_one_page() writes ->private of the head of the resulting free page\nonly. If the deferred page is merged with its lower buddy, it becomes a\ntail of that free page and keeps the order in ->private.\n\nAll other free pages which are not the head of a buddy have a ->private\nof zero, and since commit 819bfbd47e49 (\"mm/page_alloc: remove\nset_page_private() in prep_compound_tail()\") the allocator relies on it.\nWhen the stale page is allocated again as a tail of a larger page:\n\n - prep_compound_tail() hits VM_WARN_ON_ONCE(tail->private);\n - with the page checks enabled, __free_pages_prepare() reports\n   \"BUG: Bad page state\", \"nonzero private\", and leaks the whole page;\n - without them the value is seen by whoever uses that page next, e.g. as\n   folio->private of a folio which is split off a large folio.\n\nOnly pages of an order above zero are affected. Those can be freed\nthrough _nolock() by the stack depot (order 2) and by SLUB (a new slab\nwhich cannot be added to the partial list by kmalloc_nolock()).\n\nClear ->private when the page is taken off the list.","publishedAt":"2026-12-03T09:20:04.318Z","updatedAt":"2026-12-03T09:20:04.318Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8c57b687e8331eb80e302a2c528b18b966a9ac7a","status":"affected","lessThan":"39feec0f1dd6132652755debecf3087be212aa87","versionType":"git"},{"version":"8c57b687e8331eb80e302a2c528b18b966a9ac7a","status":"affected","lessThan":"04f8feced6059c267c35cce715921beb4cc07021","versionType":"git"},{"version":"8c57b687e8331eb80e302a2c528b18b966a9ac7a","status":"affected","lessThan":"aae6b83fe47ed8bff9195efbe1d191ec52e5436e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/page_alloc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.15","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/page_alloc.c"]}],"references":["https://git.kernel.org/stable/c/39feec0f1dd6132652755debecf3087be212aa87","https://git.kernel.org/stable/c/04f8feced6059c267c35cce715921beb4cc07021","https://git.kernel.org/stable/c/aae6b83fe47ed8bff9195efbe1d191ec52e5436e"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143167.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143167","state":"PUBLISHED","datePublished":"2026-12-03T09:20:04.318Z","dateUpdated":"2026-12-03T09:20:04.318Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.356Z"},"containers":{"cna":{"title":"mm/page_alloc: clear ->private of deferred free pages","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/page_alloc: clear ->private of deferred free pages\n\nfree_pages_nolock() and free_frozen_pages_nolock() put the page on\nzone->trylock_free_pages if they get neither the pcp lock nor zone->lock.\nadd_page_to_zone_llist() keeps the order of the page in page->private.\nThe next free_one_page() which does get zone->lock passes these pages to\nsplit_large_buddy() with ->private still set.\n\n__free_one_page() writes ->private of the head of the resulting free page\nonly. If the deferred page is merged with its lower buddy, it becomes a\ntail of that free page and keeps the order in ->private.\n\nAll other free pages which are not the head of a buddy have a ->private\nof zero, and since commit 819bfbd47e49 (\"mm/page_alloc: remove\nset_page_private() in prep_compound_tail()\") the allocator relies on it.\nWhen the stale page is allocated again as a tail of a larger page:\n\n - prep_compound_tail() hits VM_WARN_ON_ONCE(tail->private);\n - with the page checks enabled, __free_pages_prepare() reports\n   \"BUG: Bad page state\", \"nonzero private\", and leaks the whole page;\n - without them the value is seen by whoever uses that page next, e.g. as\n   folio->private of a folio which is split off a large folio.\n\nOnly pages of an order above zero are affected. Those can be freed\nthrough _nolock() by the stack depot (order 2) and by SLUB (a new slab\nwhich cannot be added to the partial list by kmalloc_nolock()).\n\nClear ->private when the page is taken off the list."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8c57b687e8331eb80e302a2c528b18b966a9ac7a","status":"affected","lessThan":"39feec0f1dd6132652755debecf3087be212aa87","versionType":"git"},{"version":"8c57b687e8331eb80e302a2c528b18b966a9ac7a","status":"affected","lessThan":"04f8feced6059c267c35cce715921beb4cc07021","versionType":"git"},{"version":"8c57b687e8331eb80e302a2c528b18b966a9ac7a","status":"affected","lessThan":"aae6b83fe47ed8bff9195efbe1d191ec52e5436e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/page_alloc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.15","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/page_alloc.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/39feec0f1dd6132652755debecf3087be212aa87"},{"url":"https://git.kernel.org/stable/c/04f8feced6059c267c35cce715921beb4cc07021"},{"url":"https://git.kernel.org/stable/c/aae6b83fe47ed8bff9195efbe1d191ec52e5436e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:20:04.318Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}