What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: Linux kernel 6.10.10, 6.6.51. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-46838 or the next vulnerability affects your stack