{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-142847",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.333Z",
        "datePublished": "2026-12-03T03:20:55.873Z",
        "dateUpdated": "2026-12-03T03:20:55.873Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-03T03:20:55.873Z"
            },
            "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."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "mm/page_isolation.c"
                    ],
                    "versions": [
                        {
                            "version": "b2c9e2fbba32539626522b6aed30d1dde7b7e971",
                            "lessThan": "13d15873655030010b615b0e96675effcf621d4a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b2c9e2fbba32539626522b6aed30d1dde7b7e971",
                            "lessThan": "85b18d50afca50166976362e822cde31d5f187e4",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b2c9e2fbba32539626522b6aed30d1dde7b7e971",
                            "lessThan": "252b493a49b0848c763aae0184155a95d52a6bec",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b2c9e2fbba32539626522b6aed30d1dde7b7e971",
                            "lessThan": "a793ea58f4a0f4797dabc8d57d92a143e02a9267",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b2c9e2fbba32539626522b6aed30d1dde7b7e971",
                            "lessThan": "ff51185900dd9accc8842a3f1bf85530ce501496",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b2c9e2fbba32539626522b6aed30d1dde7b7e971",
                            "lessThan": "eba0e6297edd60a85bc96ff5cfb734d066af62dd",
                            "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/page_isolation.c"
                    ],
                    "versions": [
                        {
                            "version": "5.19",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.19",
                            "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.63",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "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.19",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.19",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.19",
                                    "versionEndExcluding": "6.12.118"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.19",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.19",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.19",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "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"
            }
        }
    }
}