{"api_version":"1","generated_at":"2026-12-03T05:42:37+00:00","cve":"CVE-2026-142847","urls":{"html":"https://cve.report/CVE-2026-142847","api":"https://cve.report/api/cve/CVE-2026-142847.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142847","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142847"},"summary":{"title":"mm/page_isolation: fix UBSAN shift-out-of-bounds warning","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/page_isolation: fix UBSAN shift-out-of-bounds warning\n\nPatch series \"mm/page_isolation: fix UBSAN shift-out-of-bounds in\nisolate_single_pageblock\", v3.\n\nPatch 1 fixes a UBSAN shift-out-of-bounds warning in the PageBuddy branch\nof isolate_single_pageblock() triggered by concurrent buddy allocation.\n\nPatch 2 addresses the same class of issue in the PageCompound branch,\nwhere racy compound_order() and compound_head() reads could lead to\nout-of-range shifts or incorrect page skipping.\n\n\nThis patch (of 2):\n\nA contig-range allocation racing with buddy allocation on the adjacent\npageblock can trigger:\n\n UBSAN: shift-out-of-bounds in mm/page_isolation.c:393:15\n shift exponent -749042176 is negative\n Call trace:\n  isolate_single_pageblock\n  start_isolate_page_range\n  alloc_contig_frozen_range_noprof\n  alloc_contig_range_noprof\n\nisolate_single_pageblock() first calls set_migratetype_isolate() with\nzone->lock held, which marks the pageblock MIGRATE_ISOLATE and moves any\nfree page straddling the boundary out of the way.  Once the lock is\ndropped, it scans the MAX_ORDER_NR_PAGES-aligned window [start_pfn,\nboundary_pfn) locklessly, only to skip the free pages already handled\nabove and to detect in-use pages straddling the boundary.  Since this\nscan only reads page state to decide how far to skip and returns -EBUSY\non a straddling in-use page, it does not take the lock.\n\nThe window also covers the adjacent pageblock, whose free pages stay on\nthe normal movable/CMA freelist and can be allocated concurrently.  So\nafter the scan observes PageBuddy(page), another CPU can allocate the\npage, leaving a stale value in page->private that makes \"1 << order\" shift\nout of range.\n\nUse buddy_order_unsafe() with READ_ONCE to read the order, and validate\nit is within MAX_PAGE_ORDER before shifting to prevent UBSAN warnings.\n\nSince pageblock_isolate_and_move_free_pages() already handles free pages\nstraddling boundary_pfn under zone->lock, bail out with -EBUSY instead\nof VM_WARN_ON_ONCE() when a PageBuddy page appears to cross the boundary\nduring the lockless scan.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:21","updated_at":"2026-12-03 04:18:21"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/a793ea58f4a0f4797dabc8d57d92a143e02a9267","name":"https://git.kernel.org/stable/c/a793ea58f4a0f4797dabc8d57d92a143e02a9267","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ff51185900dd9accc8842a3f1bf85530ce501496","name":"https://git.kernel.org/stable/c/ff51185900dd9accc8842a3f1bf85530ce501496","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/13d15873655030010b615b0e96675effcf621d4a","name":"https://git.kernel.org/stable/c/13d15873655030010b615b0e96675effcf621d4a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/eba0e6297edd60a85bc96ff5cfb734d066af62dd","name":"https://git.kernel.org/stable/c/eba0e6297edd60a85bc96ff5cfb734d066af62dd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/85b18d50afca50166976362e822cde31d5f187e4","name":"https://git.kernel.org/stable/c/85b18d50afca50166976362e822cde31d5f187e4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/252b493a49b0848c763aae0184155a95d52a6bec","name":"https://git.kernel.org/stable/c/252b493a49b0848c763aae0184155a95d52a6bec","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142847","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142847","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b2c9e2fbba32539626522b6aed30d1dde7b7e971 13d15873655030010b615b0e96675effcf621d4a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b2c9e2fbba32539626522b6aed30d1dde7b7e971 85b18d50afca50166976362e822cde31d5f187e4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b2c9e2fbba32539626522b6aed30d1dde7b7e971 252b493a49b0848c763aae0184155a95d52a6bec git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b2c9e2fbba32539626522b6aed30d1dde7b7e971 a793ea58f4a0f4797dabc8d57d92a143e02a9267 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b2c9e2fbba32539626522b6aed30d1dde7b7e971 ff51185900dd9accc8842a3f1bf85530ce501496 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b2c9e2fbba32539626522b6aed30d1dde7b7e971 eba0e6297edd60a85bc96ff5cfb734d066af62dd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.19","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.19 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["mm/page_isolation.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"13d15873655030010b615b0e96675effcf621d4a","status":"affected","version":"b2c9e2fbba32539626522b6aed30d1dde7b7e971","versionType":"git"},{"lessThan":"85b18d50afca50166976362e822cde31d5f187e4","status":"affected","version":"b2c9e2fbba32539626522b6aed30d1dde7b7e971","versionType":"git"},{"lessThan":"252b493a49b0848c763aae0184155a95d52a6bec","status":"affected","version":"b2c9e2fbba32539626522b6aed30d1dde7b7e971","versionType":"git"},{"lessThan":"a793ea58f4a0f4797dabc8d57d92a143e02a9267","status":"affected","version":"b2c9e2fbba32539626522b6aed30d1dde7b7e971","versionType":"git"},{"lessThan":"ff51185900dd9accc8842a3f1bf85530ce501496","status":"affected","version":"b2c9e2fbba32539626522b6aed30d1dde7b7e971","versionType":"git"},{"lessThan":"eba0e6297edd60a85bc96ff5cfb734d066af62dd","status":"affected","version":"b2c9e2fbba32539626522b6aed30d1dde7b7e971","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["mm/page_isolation.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.19"},{"lessThan":"5.19","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"5.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"5.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"5.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.19","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/page_isolation: fix UBSAN shift-out-of-bounds warning\n\nPatch series \"mm/page_isolation: fix UBSAN shift-out-of-bounds in\nisolate_single_pageblock\", v3.\n\nPatch 1 fixes a UBSAN shift-out-of-bounds warning in the PageBuddy branch\nof isolate_single_pageblock() triggered by concurrent buddy allocation.\n\nPatch 2 addresses the same class of issue in the PageCompound branch,\nwhere racy compound_order() and compound_head() reads could lead to\nout-of-range shifts or incorrect page skipping.\n\n\nThis patch (of 2):\n\nA contig-range allocation racing with buddy allocation on the adjacent\npageblock can trigger:\n\n UBSAN: shift-out-of-bounds in mm/page_isolation.c:393:15\n shift exponent -749042176 is negative\n Call trace:\n  isolate_single_pageblock\n  start_isolate_page_range\n  alloc_contig_frozen_range_noprof\n  alloc_contig_range_noprof\n\nisolate_single_pageblock() first calls set_migratetype_isolate() with\nzone->lock held, which marks the pageblock MIGRATE_ISOLATE and moves any\nfree page straddling the boundary out of the way.  Once the lock is\ndropped, it scans the MAX_ORDER_NR_PAGES-aligned window [start_pfn,\nboundary_pfn) locklessly, only to skip the free pages already handled\nabove and to detect in-use pages straddling the boundary.  Since this\nscan only reads page state to decide how far to skip and returns -EBUSY\non a straddling in-use page, it does not take the lock.\n\nThe window also covers the adjacent pageblock, whose free pages stay on\nthe normal movable/CMA freelist and can be allocated concurrently.  So\nafter the scan observes PageBuddy(page), another CPU can allocate the\npage, leaving a stale value in page->private that makes \"1 << order\" shift\nout of range.\n\nUse buddy_order_unsafe() with READ_ONCE to read the order, and validate\nit is within MAX_PAGE_ORDER before shifting to prevent UBSAN warnings.\n\nSince pageblock_isolate_and_move_free_pages() already handles free pages\nstraddling boundary_pfn under zone->lock, bail out with -EBUSY instead\nof VM_WARN_ON_ONCE() when a PageBuddy page appears to cross the boundary\nduring the lockless scan."}],"providerMetadata":{"dateUpdated":"2026-12-03T03:20:55.873Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/13d15873655030010b615b0e96675effcf621d4a"},{"url":"https://git.kernel.org/stable/c/85b18d50afca50166976362e822cde31d5f187e4"},{"url":"https://git.kernel.org/stable/c/252b493a49b0848c763aae0184155a95d52a6bec"},{"url":"https://git.kernel.org/stable/c/a793ea58f4a0f4797dabc8d57d92a143e02a9267"},{"url":"https://git.kernel.org/stable/c/ff51185900dd9accc8842a3f1bf85530ce501496"},{"url":"https://git.kernel.org/stable/c/eba0e6297edd60a85bc96ff5cfb734d066af62dd"}],"title":"mm/page_isolation: fix UBSAN shift-out-of-bounds warning","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142847","datePublished":"2026-12-03T03:20:55.873Z","dateReserved":"2026-12-03T03:10:28.333Z","dateUpdated":"2026-12-03T03:20:55.873Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:21","lastModifiedDate":"2026-12-03 04:18:21","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142847","Ordinal":"1","Title":"mm/page_isolation: fix UBSAN shift-out-of-bounds warning","CVE":"CVE-2026-142847","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142847","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/page_isolation: fix UBSAN shift-out-of-bounds warning\n\nPatch series \"mm/page_isolation: fix UBSAN shift-out-of-bounds in\nisolate_single_pageblock\", v3.\n\nPatch 1 fixes a UBSAN shift-out-of-bounds warning in the PageBuddy branch\nof isolate_single_pageblock() triggered by concurrent buddy allocation.\n\nPatch 2 addresses the same class of issue in the PageCompound branch,\nwhere racy compound_order() and compound_head() reads could lead to\nout-of-range shifts or incorrect page skipping.\n\n\nThis patch (of 2):\n\nA contig-range allocation racing with buddy allocation on the adjacent\npageblock can trigger:\n\n UBSAN: shift-out-of-bounds in mm/page_isolation.c:393:15\n shift exponent -749042176 is negative\n Call trace:\n  isolate_single_pageblock\n  start_isolate_page_range\n  alloc_contig_frozen_range_noprof\n  alloc_contig_range_noprof\n\nisolate_single_pageblock() first calls set_migratetype_isolate() with\nzone->lock held, which marks the pageblock MIGRATE_ISOLATE and moves any\nfree page straddling the boundary out of the way.  Once the lock is\ndropped, it scans the MAX_ORDER_NR_PAGES-aligned window [start_pfn,\nboundary_pfn) locklessly, only to skip the free pages already handled\nabove and to detect in-use pages straddling the boundary.  Since this\nscan only reads page state to decide how far to skip and returns -EBUSY\non a straddling in-use page, it does not take the lock.\n\nThe window also covers the adjacent pageblock, whose free pages stay on\nthe normal movable/CMA freelist and can be allocated concurrently.  So\nafter the scan observes PageBuddy(page), another CPU can allocate the\npage, leaving a stale value in page->private that makes \"1 << order\" shift\nout of range.\n\nUse buddy_order_unsafe() with READ_ONCE to read the order, and validate\nit is within MAX_PAGE_ORDER before shifting to prevent UBSAN warnings.\n\nSince pageblock_isolate_and_move_free_pages() already handles free pages\nstraddling boundary_pfn under zone->lock, bail out with -EBUSY instead\nof VM_WARN_ON_ONCE() when a PageBuddy page appears to cross the boundary\nduring the lockless scan.","Type":"Description","Title":"mm/page_isolation: fix UBSAN shift-out-of-bounds warning"}]}}}