{"id":"CVE-2024-46838","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.","modified":"2026-04-02T12:19:45.648611Z","published":"2024-09-27T12:39:33.755Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46838.json","cna_assigner":"Linux"},"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"}],"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"}}],"schema_version":"1.7.5"}