5.5medium
userfaultfd: don't BUG_ON() if khugepaged yanks our page table
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.23% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
| linux linux_kernel | from 6.6 before 6.6.51, from 6.7 before 6.10.10, 6.11 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: userfaultfd: no ejecutar BUG_ON() si khugepaged extrae nuestra tabla de páginas Dado que khugepaged se modificó para permitir la extracción de tablas de páginas en asignaciones de archivos sin mantener el bloqueo mmap, estos BUG_ON() son incorrectos: deshágase de ellos. También podríamos eliminar el bloque "if (unlikely(...))" anterior, pero entonces podríamos llegar a pte_offset_map_lock() con páginas transhuge no solo para asignaciones de archivos sino también para asignaciones anónimas, lo que probablemente estaría bien, pero creo que no es necesariamente lo esperado.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-46838 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-46838 changed 2026-06-17 | Public domain |