# CVE-2024-46838: userfaultfd: don't BUG_ON() if khugepaged yanks our page table

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-09-27T12:39:33.755Z
- Modified: 2026-06-17T07:56:03.413Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

userfaultfd: don't BUG_ON() if khugepaged yanks our page table

Since khugepaged was changed to allow retracting page tables in file
mappings without holding the mmap lock, these BUG_ON()s are wrong - get
rid of them.

We could also remove the preceding "if (unlikely(...))" block, but then we
could reach pte_offset_map_lock() with transhuge pages not just for file
mappings but also for anonymous mappings - which would probably be fine
but I think is not necessarily expected.

(As written by CVE List.)

## Affected

- Linux Linux: from 1d65b771bc08cd054cf6d3766a72e113dc46d62f before 4a594acc12d5954cdc71d4450a386748bf3d136a; from 1d65b771bc08cd054cf6d3766a72e113dc46d62f before db978287e908d48b209e374b00d847b2d785e0a9; from 1d65b771bc08cd054cf6d3766a72e113dc46d62f before 4828d207dc5161dc7ddf9a4f6dcfd80c7dd7d20a; 6.6 (not affected: before 6.6; from 6.6.51 up to 6.6.*; from 6.10.10 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 6.6 before 6.6.51; from 6.7 before 6.10.10; 6.11

## References

- <https://git.kernel.org/stable/c/4a594acc12d5954cdc71d4450a386748bf3d136a> (patch)
- <https://git.kernel.org/stable/c/db978287e908d48b209e374b00d847b2d785e0a9> (patch)
- <https://git.kernel.org/stable/c/4828d207dc5161dc7ddf9a4f6dcfd80c7dd7d20a> (patch)

## Sources

- CVE List: [CVE-2024-46838](https://www.cve.org/CVERecord?id=CVE-2024-46838), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-46838](https://nvd.nist.gov/vuln/detail/CVE-2024-46838), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-46838 · Whole record: https://cve.day/CVE-2024-46838.json · Rebuilt by cve.day 2026-11-25T22:58:45.838Z
