Skip to content
Heist/ feed
Unrated

migrate: correct lock ordering for hugetlb file folios

Type: advisorySource: Official CVE List1 source record

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.

Announced Group revision 1
Original source ↗

CVE-2026-23097

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-23097

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "336bf30eb76580b579dc711ded5d599d905c0217",
        "lessThan": "e7396d23f9d5739f56cf9ab430c3a169f5508394",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "336bf30eb76580b579dc711ded5d599d905c0217",
        "lessThan": "ad97b9a55246eb940a26ac977f80892a395cabf9",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "336bf30eb76580b579dc711ded5d599d905c0217",
        "lessThan": "5edb9854f8df5428b40990a1c7d60507da5bd330",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "336bf30eb76580b579dc711ded5d599d905c0217",
        "lessThan": "526394af4e8ade89cacd1a9ce2b97712712fcc34",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "336bf30eb76580b579dc711ded5d599d905c0217",
        "lessThan": "b75070823b89009f5123fd0e05a8e0c3d39937c1",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "336bf30eb76580b579dc711ded5d599d905c0217",
        "lessThan": "1b68efce6dd483d22f50d0d3800c4cfda14b1305",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "336bf30eb76580b579dc711ded5d599d905c0217",
        "lessThan": "b7880cb166ab62c2409046b2347261abf701530e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "ef792d6ce0db6a56e56743b1de1716a982c3b851",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5.9.9",
        "lessThan": "5.10",
        "versionType": "semver"
      }
    ],
    "programFiles": [
      "mm/migrate.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.10"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.10",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.10.249",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.199",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.162",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.122",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.68",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.8",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "6.19",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "mm/migrate.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-23097

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#39750 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement