Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99506

published high CVSS 3.1 · 7.8

mm/hugetlb: fix use-after-free of a new anon folio

Published
19 Nov 2026, 14:43:57 UTC
Updated
23 Nov 2026, 08:03:37 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux3a47c54f09c4c89128d8f67d49296b1c25b317d0 to < 50d813d4fb702a502a34eb5ddd3f94eb2eee96c4 · 3a47c54f09c4c89128d8f67d49296b1c25b317d0 to < 727dfb28c6a2334f08cdaef82540137c9b094ab7 · 3a47c54f09c4c89128d8f67d49296b1c25b317d0 to < 1108d9a51c91bb459fa62506fd0176dc9e0927c5 · 3a47c54f09c4c89128d8f67d49296b1c25b317d0 to < 51b21515bdac0a60efac142dbfa44481e4206f28 · 3a47c54f09c4c89128d8f67d49296b1c25b317d0 to < 824cc56bf43c714319992bad3558803cac6e77c0 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.1 (affected) · 0 to < 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 Not Affected Not required 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 / vendorReleasePackage / productPublisher statusFixed buildSource
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 of a new anon folio For a fault in a private mapping with nothing in the page cache, hugetlb_no_page() allocates a folio, locks it and maps it. The folio has one reference, which belongs to the page table entry from then on. After dropping the page table lock the function still sets the migratable flag of the folio and unlocks it. Whoever zaps the entry in between frees the folio. The fault holds the fault mutex and the lock of the vma. MADV_DONTNEED and the first unmap of a hole punch, hugetlb_vmdelete_list(), do not take the fault mutex, and a private vma only has a lock if it owns a reservation map: not with MAP_NORESERVE, and not in the child after fork(). Then the flag is set in, and folio_unlock() is called on, a folio that is free or has a new owner. A surplus page goes back to the page allocator while it is locked: BUG: Bad page state in process init pfn:108e00 flags: 0x200000000000059(locked|uptodate|dirty|head|node=0|zone=2) page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set A page of the pool can be given to the next user, of any file, who locks it and loses the lock to the late folio_unlock(): kernel BUG at mm/filemap.c:1532! hugetlb_no_page+0x111b/0x23e0 hugetlb_fault+0x3a9/0x14a0 An unprivileged process is enough: threads that write to a MAP_PRIVATE | MAP_NORESERVE hugetlb mapping, threads that call MADV_DONTNEED on it, and one that takes the freed pages for another file. Until commit 3a47c54f09c4 ("hugetlbfs: revert use i_mmap_rwsem for more pmd sharing synchronization") the fault held i_mmap_rwsem for reading, which everybody who zaps takes for writing. The lock that commit bf4916922c60 ("hugetlbfs: extend hugetlb_vma_lock to private VMAs") gave to private vmas closed the window again, but only for those with a reservation map. Be done with the folio before the page table lock is dropped, as hugetlb_wp() is with its copy. The function already unlocks page cache folios under that lock. Original fix generated by an LLM and sent in private by Josef. [[email protected]: simplify+move comment]

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

3

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 - hugetlb_no_page() is called from hugetlb_fault() when handle_mm_fault() sees a none huge pte. A local process reaches it by faulting its own MAP_PRIVATE hugetlb VMA; the folio is allocated in-kernel, not parsed from a remote protocol message. AC:L - The attacker faults and calls madvise(MADV_DONTNEED) on the same VMA. Dontneed reaches __unmap_hugepage_range() through madvise_dontneed_single_vma() and zap_vma_range_batched() and does not take hugetlb_fault_mutex_table. MAP_NORESERVE makes hugetlb_reserve_pages() return before set_vma_resv_map(), so __vma_private_lock() is false and the vma rwsem serializes neither side. PR:L - ksys_mmap_pgoff(MAP_ANONYMOUS|MAP_HUGETLB) calls hugetlb_file_setup() with HUGETLB_ANONHUGE_INODE. CAP_IPC_LOCK is required only when creat_flags is HUGETLB_SHMFS_INODE, so an unprivileged process can mmap MAP_PRIVATE|MAP_NORESERVE and fault it. UI:N - The attacking process mmaps the hugetlb VMA, faults it, and issues MADV_DONTNEED itself. No other user has to mount media or open a file. S:U - folio_set_hugetlb_migratable() and folio_unlock() corrupt a hugetlb struct page in the host kernel. That is kernel memory corruption in the same security authority, not a guest-to-host or IOMMU crossing. C:H - On the surplus path free_huge_folio() calls free_frozen_pages(), and set_buddy_order() stores the order in page->private. hugetlb_no_page() then set_bit(HPG_migratable), bit 1 of that word, and folio_unlock() xors PG_locked. A corrupted buddy order makes the next allocation overlap adjacent pages, and dequeue_hugetlb_folio() can hand the same struct page to another file. I:H - folio_unlock() in hugetlb_no_page() clears PG_locked on a folio the next owner already holds via folio_lock() or __folio_set_locked() in hugetlb_add_to_page_cache(). set_bit(HPG_migratable) also flips bit 1 of page->private, the buddy order written by set_buddy_order() on the surplus free path. A:H - folio_unlock() in hugetlb_no_page() takes VM_BUG_ON_FOLIO(!folio_test_locked) when PG_locked is already clear, the BUG the fix records from hugetlb_no_page in filemap.c. If the xor instead sets PG_locked on the new owner's folio, the next folio_lock() sleeps forever, and a surplus free hits bad_page() on PAGE_FLAGS_CHECK_AT_FREE while the folio is still locked.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 3a47c54f09c4c89128d8f67d49296b1c25b317d0 to < 50d813d4fb702a502a34eb5ddd3f94eb2eee96c4 (affected · git)3a47c54f09c4c89128d8f67d49296b1c25b317d0 to < 727dfb28c6a2334f08cdaef82540137c9b094ab7 (affected · git)3a47c54f09c4c89128d8f67d49296b1c25b317d0 to < 1108d9a51c91bb459fa62506fd0176dc9e0927c5 (affected · git)3a47c54f09c4c89128d8f67d49296b1c25b317d0 to < 51b21515bdac0a60efac142dbfa44481e4206f28 (affected · git)3a47c54f09c4c89128d8f67d49296b1c25b317d0 to < 824cc56bf43c714319992bad3558803cac6e77c0 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.1 (affected)0 to < 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

0

No weakness assertions.

References

5

Provider assertions

1

Linux · cna

mm/hugetlb: fix use-after-free of a new anon folio

Provenance

Schema
5.2
Searchable
yes
Content hash
6183274bb6dede5feb3ca108747d6a4240668ff33026beab4268a13be73a4d31
Ingested
23 Nov 2026, 14:35:29 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected