mm/userfaultfd: write-lock the VMA before waking waiters when unregistering
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 35f7ecd55ce7e51cb6d5ef49e6dd51f3c80f61e4, Kernel 8a47f699a5c184071bb1dc52f08f98c85bfb85a3 and Kernel 7.3.5.
In the Linux kernel, the following vulnerability has been resolved: mm/userfaultfd: write-lock the VMA before waking waiters when unregistering userfaultfd_unregister() wakes pending missing faults before clearing the VMA's userfaultfd registration. With per-VMA fault locking, holding mmap_lock for write does not prevent another fault from queuing after the wakeup but before userfaultfd_clear_vma() write-locks the VMA. That waiter can then remain asleep indefinitely. Call vma_start_write() before waking waiters. Existing fault handlers queue themselves before dropping the VMA read lock, and new readers are excluded until mmap_write_unlock().
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.6, >=29a22b9e08d70d6c9b075c12c47b6e895cb65cf0 <35f7ecd55ce7e51cb6d5ef49e6dd51f3c80f61e4, >=29a22b9e08d70d6c9b075c12c47b6e895cb65cf0 <8a47f699a5c184071bb1dc52f08f98c85bfb85a3 | 35f7ecd55ce7e51cb6d5ef49e6dd51f3c80f61e4, 8a47f699a5c184071bb1dc52f08f98c85bfb85a3 |
| linux-kernel: Kernel | >=6.6.0 <7.3.5 | 7.3.5 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket