VDB

CVE-2026-80893

CVE-2026-80893 PUBLISHED

mm/hugetlb: fix swap entry corruption when clearing uffd-wp at fork()

Reported by linux · Published September 4, 2026

In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb: fix swap entry corruption when clearing uffd-wp at fork() copy_hugetlb_page_range() clears the uffd-wp bit of migration and hwpoison entries with huge_pte_clear_uffd_wp(), which operates on the present-PTE bit position. Swap entries keep the uffd-wp state elsewhere -- the migration branch reads and sets it with pte_swp_uffd_wp() and pte_swp_mkuffd_wp() -- and the present-PTE position falls into the swap payload. On x86-64 it lands in the inverted swap offset, where a naturally-aligned hugetlb PFN always has the affected bit set, so the clear advances the encoded PFN by two pages. No userfaultfd needs to be involved: the clear is guarded only by the child VMA not being uffd-wp registered, so a plain fork() with an in-flight hugetlb migration entry (or a poisoned hugetlb page) corrupts the entry copied into the child. Instrumenting the clear and forking after MADV_HWPOISON on a 2MB anon hugetlb page shows: offset before=120e00 offset after =120e02 The fallout is mostly latent: rmap walks match migration entries by folio range and remove_migration_pte() rebuilds the PTE from the folio, so a within-folio PFN skew heals once migration completes. But any path that re-encodes the corrupted offset -- e.g. hugetlb_change_protection() rewriting a writable migration entry via make_readable_migration_entry(swp_offset(entry)) -- propagates it. Migration entries legitimately carry uffd-wp, so clear it with pte_swp_clear_uffd_wp(), matching copy_nonpresent_pte() and move_huge_pte(). A hwpoison entry, on the other hand, never carries the uffd-wp bit: it is installed fresh by make_hwpoison_entry() (try_to_unmap_one() does not preserve uffd-wp on the hwpoison path) and hugetlb_change_protection() leaves hwpoison entries untouched. There was nothing to clear there, only the corruption, so drop the clear entirely.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
bpftool6.12Amazon Linux1:6.12.103-127.188.amzn2023
python3-perf6.18Amazon Linux1:6.18.44-99.149.amzn2023
bpftoolAmazon Linux1:6.1.186-228.374.amzn2023
perfAmazon Linux1:6.1.186-228.374.amzn2023
kernel6.18-tools-develAmazon Linux1:6.18.44-99.149.amzn2023
kernel-modules-extra-commonAmazon Linux1:6.1.186-228.374.amzn2023
perf6.18Amazon Linux1:6.18.44-99.149.amzn2023
kernel6.12-tools-develAmazon Linux1:6.12.103-127.188.amzn2023
kernel-develAmazon Linux1:6.1.186-228.374.amzn2023
kernel-livepatch-6.12.103-127.188Amazon Linux1:1.0-0.amzn2023
bpftool6.18Amazon Linux1:6.18.44-99.149.amzn2023
kernel6.12-headersAmazon Linux1:6.12.103-127.188.amzn2023

Affected products

VendorProductVersions
LinuxLinuxbc70fbf269fdff410b0b6d75c3770b9f59117b90, bc70fbf269fdff410b0b6d75c3770b9f59117b90, bc70fbf269fdff410b0b6d75c3770b9f59117b90
LinuxLinux5.19, 0, 6.1.183
amazon:2023bpftool6.120
amazon:2023python3-perf6.180
amazon:2023bpftool0
amazon:2023perf0
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel-modules-extra-common0
amazon:2023perf6.180
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel-devel0
amazon:2023kernel-livepatch-6.12.103-127.1880
amazon:2023bpftool6.180
amazon:2023kernel6.12-headers0
linuxlinux_kernel5.19, 5.19, 5.19
amazon:2023kernel6.12-devel0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel-modules-extra0
amazon:2023kernel6.120

…and 18 more

Timeline

  • Sep 4, 2026 CVE Published
  • Sep 5, 2026 EPSS Score (12 in total, the first dated here)
  • Nov 6, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-80893
vulnetix vdb fixes CVE-2026-80893

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-80893/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›