userfaultfd: prevent registration of special VMAs
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel d974b4b786214883bd8e56bda10b454c80fd6205, Kernel 0c26202b157f1efc3cd2f26f5c30f59b508a6a5d, Kernel 165613191ad9d034bf17c00e3a142f9561597ec5 and 6 more.
In the Linux kernel, the following vulnerability has been resolved: userfaultfd: prevent registration of special VMAs Vova Tokarev says: userfaultfd allows registration on shadow stack VMAs. With userfaultfd access, you can register on the shadow stack, discard a page ... and inject a page with chosen return addresses via UFFDIO_COPY. Update vma_can_userfault() to reject VM_SHADOW_STACK. While on it, also reject VM_SPECIAL so that if a driver would implement vm_uffd_ops, it wouldn't be possible to register special VMAs with userfaultfd. Since VM_SPECIAL includes VM_DONTEXPAND which is set but hugetlb, exclude hugetlb VMAs from the check for VM_SPECIAL.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=54007f818206dc27309ca423df4c87dd160a7208 <d974b4b786214883bd8e56bda10b454c80fd6205, >=54007f818206dc27309ca423df4c87dd160a7208 <0c26202b157f1efc3cd2f26f5c30f59b508a6a5d, >=54007f818206dc27309ca423df4c87dd160a7208 <165613191ad9d034bf17c00e3a142f9561597ec5, >=54007f818206dc27309ca423df4c87dd160a7208 <3c58f641e813c3c71039f8fd4d4e2a3aab713288, >=54007f818206dc27309ca423df4c87dd160a7208 <495a28d5a100be1b232633f4c2dcc42ba10b3796, =6.6 | d974b4b786214883bd8e56bda10b454c80fd6205, 0c26202b157f1efc3cd2f26f5c30f59b508a6a5d, 165613191ad9d034bf17c00e3a142f9561597ec5, 3c58f641e813c3c71039f8fd4d4e2a3aab713288, 495a28d5a100be1b232633f4c2dcc42ba10b3796 |
| linux-kernel: Kernel | >=6.19.0 <7.1.6, >=6.6.0 <6.6.153, >=6.7.0 <6.12.105, >=6.13.0 <6.18.44 | 7.1.6, 6.6.153, 6.12.105, 6.18.44 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket