{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99928","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.446Z","datePublished":"2026-11-30T13:18:21.727Z","dateUpdated":"2026-11-30T13:18:21.727Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-30T13:18:21.727Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/hugetlb: don't 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->vm_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->rw_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: (&resv_map->rw_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]"}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/hugetlb.c"],"versions":[{"version":"bf4916922c60f43efaa329744b3eef539aa6a2b2","lessThan":"923d00980cfca21a021183a8f9a6773add75e097","status":"affected","versionType":"git"},{"version":"bf4916922c60f43efaa329744b3eef539aa6a2b2","lessThan":"1b6f6cf3a78dffe7588155884edd9f3ea06ac8ea","status":"affected","versionType":"git"},{"version":"bf4916922c60f43efaa329744b3eef539aa6a2b2","lessThan":"090e028cd37ac0fe8510867f3b5c28996fcd318b","status":"affected","versionType":"git"},{"version":"bf4916922c60f43efaa329744b3eef539aa6a2b2","lessThan":"d42032c0fe3ca007986c1229128775af0340fbec","status":"affected","versionType":"git"},{"version":"b1b2750de12382803f255ef7e5b40de16030e309","status":"affected","versionType":"git"},{"version":"257931b5d8b1dd79035a600b6e2420074fa011bf","status":"affected","versionType":"git"},{"version":"6.1.61","lessThan":"6.2","status":"affected","versionType":"semver"},{"version":"6.5.10","lessThan":"6.6","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/hugetlb.c"],"versions":[{"version":"6.6","status":"affected"},{"version":"0","lessThan":"6.6","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5.10"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/923d00980cfca21a021183a8f9a6773add75e097"},{"url":"https://git.kernel.org/stable/c/1b6f6cf3a78dffe7588155884edd9f3ea06ac8ea"},{"url":"https://git.kernel.org/stable/c/090e028cd37ac0fe8510867f3b5c28996fcd318b"},{"url":"https://git.kernel.org/stable/c/d42032c0fe3ca007986c1229128775af0340fbec"}],"title":"mm/hugetlb: don't clear the resv_map of a VMA whose lock is held","x_generator":{"engine":"bippy-1.2.0"}}}}