{"schema_version":"1.9.0","id":"CVE-2024-46838","published":"2024-09-27T12:39:33.755Z","modified":"2026-08-12T03:51:11.003754246Z","summary":"userfaultfd: don't BUG_ON() if khugepaged yanks our page table","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nuserfaultfd: don't BUG_ON() if khugepaged yanks our page table\n\nSince khugepaged was changed to allow retracting page tables in file\nmappings without holding the mmap lock, these BUG_ON()s are wrong - get\nrid of them.\n\nWe could also remove the preceding \"if (unlikely(...))\" block, but then we\ncould reach pte_offset_map_lock() with transhuge pages not just for file\nmappings but also for anonymous mappings - which would probably be fine\nbut I think is not necessarily expected.","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1d65b771bc08cd054cf6d3766a72e113dc46d62f"},{"fixed":"4a594acc12d5954cdc71d4450a386748bf3d136a"},{"fixed":"db978287e908d48b209e374b00d847b2d785e0a9"},{"fixed":"4828d207dc5161dc7ddf9a4f6dcfd80c7dd7d20a"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-46838.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.6.0"},{"fixed":"6.6.51"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.10.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-46838.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/4828d207dc5161dc7ddf9a4f6dcfd80c7dd7d20a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4a594acc12d5954cdc71d4450a386748bf3d136a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/db978287e908d48b209e374b00d847b2d785e0a9"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46838.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46838"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46838.json"}}