VDB

CVE-2026-23097

CVE-2026-23097 PUBLISHED

migrate: correct lock ordering for hugetlb file folios

Reported by linux · Published February 4, 2026

In the Linux kernel, the following vulnerability has been resolved: migrate: correct lock ordering for hugetlb file folios Syzbot has found a deadlock (analyzed by Lance Yang): 1) Task (5749): Holds folio_lock, then tries to acquire i_mmap_rwsem(read lock). 2) Task (5754): Holds i_mmap_rwsem(write lock), then tries to acquire folio_lock. migrate_pages() -> migrate_hugetlbs() -> unmap_and_move_huge_page() <- Takes folio_lock! -> remove_migration_ptes() -> __rmap_walk_file() -> i_mmap_lock_read() <- Waits for i_mmap_rwsem(read lock)! hugetlbfs_fallocate() -> hugetlbfs_punch_hole() <- Takes i_mmap_rwsem(write lock)! -> hugetlbfs_zero_partial_page() -> filemap_lock_hugetlb_folio() -> filemap_lock_folio() -> __filemap_get_folio <- Waits for folio_lock! The migration path is the one taking locks in the wrong order according to the documentation at the top of mm/rmap.c. So expand the scope of the existing i_mmap_lock to cover the calls to remove_migration_ptes() too. This is (mostly) how it used to be after commit c0d0381ade79. That was removed by 336bf30eb765 for both file & anon hugetlb pages when it should only have been removed for anon hugetlb pages.

Fixed versions

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

PackageEcosystemFixed in
kernelerrata.rockylinux.org0:5.14.0-611.36.1.el9_7.src, 0:5.14.0-611.36.1.el9_7.ppc64le, 0:5.14.0-611.36.1.el9_7.aarch64
kernel-debug-coreerrata.rockylinux.org0:5.14.0-611.36.1.el9_7.x86_64
kernel-rt-debug-moduleserrata.rockylinux.org0:5.14.0-611.36.1.el9_7.aarch64, 0:4.18.0-553.109.1.rt7.450.el8_10.x86_64
kernel-64k-moduleserrata.rockylinux.org0:5.14.0-611.36.1.el9_7.aarch64
kernel-zfcpdump-moduleserrata.rockylinux.org0:5.14.0-611.36.1.el9_7.s390x
kernel-coreerrata.rockylinux.org0:4.18.0-553.109.1.el8_10.x86_64
kernel6.12-libbpf-develAmazon Linux1:6.12.68-92.122.amzn2023
kernel-64k-coreerrata.rockylinux.org0:5.14.0-611.36.1.el9_7.aarch64
kernel-moduleserrata.rockylinux.org0:5.14.0-611.36.1.el9_7.ppc64le, 0:5.14.0-611.36.1.el9_7.aarch64, 0:4.18.0-553.109.1.el8_10.x86_64
rverrata.rockylinux.org0:5.14.0-611.36.1.el9_7.x86_64
libperferrata.rockylinux.org0:5.14.0-611.36.1.el9_7.x86_64, 0:5.14.0-611.36.1.el9_7.ppc64le
kernel-debugerrata.rockylinux.org0:4.18.0-553.109.1.el8_10.aarch64

20 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
LinuxLinux336bf30eb76580b579dc711ded5d599d905c0217, 336bf30eb76580b579dc711ded5d599d905c0217, 336bf30eb76580b579dc711ded5d599d905c0217
LinuxLinux5.10, 0, 5.10.249
LinuxLinux6.19, 5.10, 0
linuxlinux_kernel5.10, 5.10, 5.10

Timeline

  • Feb 4, 2026 CVE Published
  • Feb 5, 2026 EPSS Score (30 in total, the first dated here)
  • Feb 12, 2026 Security Advisory (130 in total, the first dated here)
  • Mar 6, 2026 PoC Published (12 in total, the first dated here)
  • Mar 22, 2026 Coalition ESS Score (2 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (131 in total, the first dated here)
  • Sep 21, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-23097
vulnetix vdb fixes CVE-2026-23097

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-23097/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 ›