{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-99507",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.419Z",
        "datePublished": "2026-11-19T14:44:01.071Z",
        "dateUpdated": "2026-11-23T08:03:38.600Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-23T08:03:38.600Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/hugetlb: fix use-after-free in hugetlb_mfill_atomic_pte()\n\nLet's fix another instance where we use a folio after dropping the PTL,\nwhere someone else could e.g., MADV_DONTNEED it once we drop the PTL,\nmaking us trigger a use-after-free on the folio."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - UFFDIO_COPY reaches hugetlb_mfill_atomic_pte() via userfaultfd_copy(), mfill_atomic_copy(), and mfill_atomic_hugetlb(); the folio used after spin_unlock(ptl) is the private huge page that ioctl installed, not a field taken from a received packet.\nAC:L - The caller races UFFDIO_COPY with MADV_DONTNEED on a MAP_PRIVATE|MAP_NORESERVE hugetlb VMA, or in the child after fork(), where __vma_private_lock() is false. hugetlb_vma_lock_read() is then a no-op, so hugetlb_unmap_range() can folio_put the PTE's only reference before folio_set_hugetlb_migratable().\nPR:L - userfaultfd_syscall_allowed() accepts UFFD_USER_MODE_ONLY with no CAP_SYS_PTRACE, and ksys_mmap_pgoff() creates an anonymous MAP_HUGETLB file in hugetlb_file_setup() without can_do_hugetlb_shm(); UFFDIO_REGISTER only checks VM_MAYWRITE on that VMA.\nUI:N - The attacker mmaps the hugetlb range, registers userfaultfd, and races UFFDIO_COPY with MADV_DONTNEED in its own threads. No other task has to mount, open, or fault the mapping.\nS:U - folio_set_hugetlb_migratable() corrupts the folio free_huge_folio() already released from the caller's PTE. The result stays in that host's kernel address space, with no guest-to-host or IOMMU boundary crossed.\nC:H - MADV_DONTNEED's folio_put() in free_pages_and_swap_cache() calls free_huge_folio() on the PTE's only reference. A surplus page is then passed to free_frozen_pages(), whose set_buddy_order() stores the order in page->private, and the late set_bit(HPG_migratable) corrupts that reused struct page.\nI:H - folio_set_hugetlb_migratable() is set_bit(HPG_migratable, &folio->private) after the page-table reference is gone. On the hugepage freelist the next dequeue inherits the flag; if surplus_huge_pages_node[nid] is set, the same bit flips the buddy order written by set_buddy_order().\nA:H - hugetlb_unmap_range() drops the last reference and free_huge_folio() recycles the folio while hugetlb_mfill_atomic_pte() still writes it. Flipping the buddy order or a freelist folio's migratable flag faults the page allocator or a later fault on the reused page."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "mm/hugetlb.c"
                    ],
                    "versions": [
                        {
                            "version": "1c9e8def43a3452e7af658b340f5f4f4ecde5c38",
                            "lessThan": "3e0da2f9f19e28d6bc1afc5090a089c125db5d73",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1c9e8def43a3452e7af658b340f5f4f4ecde5c38",
                            "lessThan": "b4669d77bf9cab09a96dcacda4b20ffe727bc9f6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1c9e8def43a3452e7af658b340f5f4f4ecde5c38",
                            "lessThan": "dc9426dfa7fdaf9b00f5c5342f95e708b3567b31",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1c9e8def43a3452e7af658b340f5f4f4ecde5c38",
                            "lessThan": "fd16432642b3e206a73e95ccd043dc686844fc0f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1c9e8def43a3452e7af658b340f5f4f4ecde5c38",
                            "lessThan": "cda6c4819b4a45dbeac92652eaaffb156b3f11b1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1c9e8def43a3452e7af658b340f5f4f4ecde5c38",
                            "lessThan": "8b87fd23be5a816ad572e23eb4e1e2bea027db6c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1c9e8def43a3452e7af658b340f5f4f4ecde5c38",
                            "lessThan": "83798e46a01c3139273cddcc634e96dfee980c42",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1c9e8def43a3452e7af658b340f5f4f4ecde5c38",
                            "lessThan": "d8a9cd7fd2fb01211430c933932da58839b8ca65",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e37f1f9158e0c4a054993c07652f51e51dcd00ee",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "aba029c8e7a84f259d7366b513bc262e2d70cbd8",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b010e03dd5306eef6ba983f17017bfecbf4150f3",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3.18.137",
                            "lessThan": "3.19",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.4.177",
                            "lessThan": "4.5",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.9.163",
                            "lessThan": "4.10",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "mm/hugetlb.c"
                    ],
                    "versions": [
                        {
                            "version": "4.11",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.11",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.275",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "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.117",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.61",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.2",
                            "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": "4.11",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.11",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.11",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.11",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.11",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.11",
                                    "versionEndExcluding": "6.18.61"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.11",
                                    "versionEndExcluding": "7.3.2"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.11",
                                    "versionEndExcluding": "7.4-rc1"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.18.137"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.4.177"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.9.163"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/3e0da2f9f19e28d6bc1afc5090a089c125db5d73"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b4669d77bf9cab09a96dcacda4b20ffe727bc9f6"
                },
                {
                    "url": "https://git.kernel.org/stable/c/dc9426dfa7fdaf9b00f5c5342f95e708b3567b31"
                },
                {
                    "url": "https://git.kernel.org/stable/c/fd16432642b3e206a73e95ccd043dc686844fc0f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/cda6c4819b4a45dbeac92652eaaffb156b3f11b1"
                },
                {
                    "url": "https://git.kernel.org/stable/c/8b87fd23be5a816ad572e23eb4e1e2bea027db6c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/83798e46a01c3139273cddcc634e96dfee980c42"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d8a9cd7fd2fb01211430c933932da58839b8ca65"
                }
            ],
            "title": "mm/hugetlb: fix use-after-free in hugetlb_mfill_atomic_pte()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}