FKIE_CVE-2026-99928

Vulnerability from fkie_nvd - Published: 2026-11-30 14:20 - Updated: 2026-11-30 14:20
Severity
Summary
In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb: don't clear the resv_map of a VMA whose lock is held Since commit bf4916922c60 ("hugetlbfs: extend hugetlb_vma_lock to private VMAs") the lock of a private hugetlb VMA that owns a reservation is the rw_sema of its resv_map. The hugetlb_vma_*lock*() helpers find it through vma->vm_private_data, anew for every lock and every unlock. At the end of mremap() the old VMA has to let go of the resv_map, which now belongs to the new VMA: clear_vma_resv_huge_pages() stores NULL into vm_private_data. mremap() holds mmap_lock for writing and has write locked the VMA, which keeps away everybody who comes through the mm. It does not keep away those who find the VMA through the file. For hole punch and truncation hugetlb_vmdelete_list() does hugetlb_vma_trylock_write(vma); locks resv_map->rw_sema unmap_hugepage_range(vma, ...); vm_private_data = NULL hugetlb_vma_unlock_write(vma); no resv_map: does nothing and the rw_sema stays write locked for ever: WARNING: lock held when returning to user space! mremap_punch/116 is leaving the kernel with locks still held! locks held by mremap_punch/116: 1, last CPU#1: #0: (&resv_map->rw_sema){+.+.}-{4:4}, at: hugetlb_vmdelete_list+0x46/0x160 The next fault in the new VMA sleeps in hugetlb_vma_lock_read(), uninterruptibly, and it holds its entry of hugetlb_fault_mutex_table[]. That table is global, so a fault of any other process on a page that hashes to the same entry sleeps uninterruptibly as well. All those who take the lock of a private VMA without taking the mmap/vma lock are affected: rmap walks. So hold i_mmap_rwsem around the clearing of the resv_map. No change of behaviour, other than that mremap() of a hugetlb VMA takes i_mmap_rwsem once more. Original fix generated by an LLM and sent in private by Josef. [david: avoid local variable, move and refine comment, description cleanups+simplifications]
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "mm/hugetlb.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "923d00980cfca21a021183a8f9a6773add75e097",
              "status": "affected",
              "version": "bf4916922c60f43efaa329744b3eef539aa6a2b2",
              "versionType": "git"
            },
            {
              "lessThan": "1b6f6cf3a78dffe7588155884edd9f3ea06ac8ea",
              "status": "affected",
              "version": "bf4916922c60f43efaa329744b3eef539aa6a2b2",
              "versionType": "git"
            },
            {
              "lessThan": "090e028cd37ac0fe8510867f3b5c28996fcd318b",
              "status": "affected",
              "version": "bf4916922c60f43efaa329744b3eef539aa6a2b2",
              "versionType": "git"
            },
            {
              "lessThan": "d42032c0fe3ca007986c1229128775af0340fbec",
              "status": "affected",
              "version": "bf4916922c60f43efaa329744b3eef539aa6a2b2",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "b1b2750de12382803f255ef7e5b40de16030e309",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "257931b5d8b1dd79035a600b6e2420074fa011bf",
              "versionType": "git"
            },
            {
              "lessThan": "6.2",
              "status": "affected",
              "version": "6.1.61",
              "versionType": "semver"
            },
            {
              "lessThan": "6.6",
              "status": "affected",
              "version": "6.5.10",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "mm/hugetlb.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.6"
            },
            {
              "lessThan": "6.6",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.119",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.63",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/hugetlb: don\u0027t clear the resv_map of a VMA whose lock is held\n\nSince commit bf4916922c60 (\"hugetlbfs: extend hugetlb_vma_lock to private\nVMAs\") the lock of a private hugetlb VMA that owns a reservation is the\nrw_sema of its resv_map.  The hugetlb_vma_*lock*() helpers find it through\nvma-\u003evm_private_data, anew for every lock and every unlock.\n\nAt the end of mremap() the old VMA has to let go of the resv_map, which\nnow belongs to the new VMA: clear_vma_resv_huge_pages() stores NULL into\nvm_private_data.  mremap() holds mmap_lock for writing and has write\nlocked the VMA, which keeps away everybody who comes through the mm.  It\ndoes not keep away those who find the VMA through the file.  For hole\npunch and truncation hugetlb_vmdelete_list() does\n\n\thugetlb_vma_trylock_write(vma);\t\tlocks resv_map-\u003erw_sema\n\tunmap_hugepage_range(vma, ...);\n\t\t\t\t\t\tvm_private_data = NULL\n\thugetlb_vma_unlock_write(vma);\t\tno resv_map: does nothing\n\nand the rw_sema stays write locked for ever:\n\n  WARNING: lock held when returning to user space!\n  mremap_punch/116 is leaving the kernel with locks still held!\n  locks held by mremap_punch/116: 1, last CPU#1:\n   #0: (\u0026resv_map-\u003erw_sema){+.+.}-{4:4}, at:\n                                       hugetlb_vmdelete_list+0x46/0x160\n\nThe next fault in the new VMA sleeps in hugetlb_vma_lock_read(),\nuninterruptibly, and it holds its entry of hugetlb_fault_mutex_table[].\nThat table is global, so a fault of any other process on a page that\nhashes to the same entry sleeps uninterruptibly as well.\n\nAll those who take the lock of a private VMA without taking the mmap/vma\nlock are affected: rmap walks. So hold i_mmap_rwsem around the clearing\nof the resv_map.\n\nNo change of behaviour, other than that mremap() of a hugetlb VMA takes\ni_mmap_rwsem once more.\n\nOriginal fix generated by an LLM and sent in private by Josef.\n\n[david: avoid local variable, move and refine comment, description cleanups+simplifications]"
    }
  ],
  "id": "CVE-2026-99928",
  "lastModified": "2026-11-30T14:20:29.180",
  "metrics": {},
  "published": "2026-11-30T14:20:29.180",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/090e028cd37ac0fe8510867f3b5c28996fcd318b"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/1b6f6cf3a78dffe7588155884edd9f3ea06ac8ea"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/923d00980cfca21a021183a8f9a6773add75e097"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/d42032c0fe3ca007986c1229128775af0340fbec"
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "vulnStatus": "Received"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.