CVE-2026-99507
published high CVSS 3.1 · 7.8mm/hugetlb: fix use-after-free in hugetlb_mfill_atomic_pte()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux1c9e8def43a3452e7af658b340f5f4f4ecde5c38 to < 3e0da2f9f19e28d6bc1afc5090a089c125db5d73 · 1c9e8def43a3452e7af658b340f5f4f4ecde5c38 to < b4669d77bf9cab09a96dcacda4b20ffe727bc9f6 · 1c9e8def43a3452e7af658b340f5f4f4ecde5c38 to < dc9426dfa7fdaf9b00f5c5342f95e708b3567b31 · 1c9e8def43a3452e7af658b340f5f4f4ecde5c38 to < fd16432642b3e206a73e95ccd043dc686844fc0f · 1c9e8def43a3452e7af658b340f5f4f4ecde5c38 to < cda6c4819b4a45dbeac92652eaaffb156b3f11b1 · 1c9e8def43a3452e7af658b340f5f4f4ecde5c38 to < 8b87fd23be5a816ad572e23eb4e1e2bea027db6c · 1c9e8def43a3452e7af658b340f5f4f4ecde5c38 to < 83798e46a01c3139273cddcc634e96dfee980c42 · 1c9e8def43a3452e7af658b340f5f4f4ecde5c38 to < d8a9cd7fd2fb01211430c933932da58839b8ca65 · e37f1f9158e0c4a054993c07652f51e51dcd00ee · aba029c8e7a84f259d7366b513bc262e2d70cbd8 · b010e03dd5306eef6ba983f17017bfecbf4150f3 · 3.18.137 to < 3.19 · 4.4.177 to < 4.5 · 4.9.163 to < 4.10 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.11 (affected) · 0 to < 4.11 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.61 through 6.18.* (unaffected · semver) · 7.3.2 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3538 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bookworm | linux-6.12 | Advisory build | 6.12.117-1~deb12u1 | DLA-4927-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| Amazon Linux | AL2023 | kernel6.18aarch64 | Listed in advisory | Not stated | ALAS2023-2026-3538 |
Show 17 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| Amazon Linux | AL2023 | kernel6.18src | Listed in advisory | Not stated | ALAS2023-2026-3538 |
| Amazon Linux | AL2023 | kernel6.18x86_64 | Listed in advisory | Not stated | ALAS2023-2026-3538 |
Description
In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb: fix use-after-free in hugetlb_mfill_atomic_pte() Let's fix another instance where we use a folio after dropping the PTL, where someone else could e.g., MADV_DONTNEED it once we drop the PTL, making us trigger a use-after-free on the folio.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: 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. AC: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(). PR: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. UI: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. S: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. C: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. I: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(). A: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.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 1c9e8def43a3452e7af658b340f5f4f4ecde5c38 to < 3e0da2f9f19e28d6bc1afc5090a089c125db5d73 (affected · git)1c9e8def43a3452e7af658b340f5f4f4ecde5c38 to < b4669d77bf9cab09a96dcacda4b20ffe727bc9f6 (affected · git)1c9e8def43a3452e7af658b340f5f4f4ecde5c38 to < dc9426dfa7fdaf9b00f5c5342f95e708b3567b31 (affected · git)1c9e8def43a3452e7af658b340f5f4f4ecde5c38 to < fd16432642b3e206a73e95ccd043dc686844fc0f (affected · git)1c9e8def43a3452e7af658b340f5f4f4ecde5c38 to < cda6c4819b4a45dbeac92652eaaffb156b3f11b1 (affected · git)1c9e8def43a3452e7af658b340f5f4f4ecde5c38 to < 8b87fd23be5a816ad572e23eb4e1e2bea027db6c (affected · git)1c9e8def43a3452e7af658b340f5f4f4ecde5c38 to < 83798e46a01c3139273cddcc634e96dfee980c42 (affected · git)1c9e8def43a3452e7af658b340f5f4f4ecde5c38 to < d8a9cd7fd2fb01211430c933932da58839b8ca65 (affected · git)e37f1f9158e0c4a054993c07652f51e51dcd00ee (affected · git)aba029c8e7a84f259d7366b513bc262e2d70cbd8 (affected · git)b010e03dd5306eef6ba983f17017bfecbf4150f3 (affected · git)3.18.137 to < 3.19 (affected · semver)4.4.177 to < 4.5 (affected · semver)4.9.163 to < 4.10 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 4.11 (affected)0 to < 4.11 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.61 through 6.18.* (unaffected · semver)7.3.2 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/3e0da2f9f19e28d6bc1afc5090a089c125db5d73
- https://git.kernel.org/stable/c/83798e46a01c3139273cddcc634e96dfee980c42
- https://git.kernel.org/stable/c/8b87fd23be5a816ad572e23eb4e1e2bea027db6c
- https://git.kernel.org/stable/c/b4669d77bf9cab09a96dcacda4b20ffe727bc9f6
- https://git.kernel.org/stable/c/cda6c4819b4a45dbeac92652eaaffb156b3f11b1
- https://git.kernel.org/stable/c/d8a9cd7fd2fb01211430c933932da58839b8ca65
- https://git.kernel.org/stable/c/dc9426dfa7fdaf9b00f5c5342f95e708b3567b31
- https://git.kernel.org/stable/c/fd16432642b3e206a73e95ccd043dc686844fc0f
Provider assertions
1Linux · cna
mm/hugetlb: fix use-after-free in hugetlb_mfill_atomic_pte()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- dc3695d864d8422e6a9f563e3a464ad24950a1a1b677918d096f3d8914bf4126
- Ingested
- 23 Nov 2026, 14:35:29 UTC
- Source record
- Official CVE record