mm/memory: reject remote COW faults on PFN mappings
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel dd273e2d8d20f681a0147f13c12a1eb748fb9621, Kernel 27b2e29733a837552f0f31370e9066fa28466353, Kernel 649937cf1df6c70b8e5b0cd13a34945c547235d1 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: mm/memory: reject remote COW faults on PFN mappings When handling a COW fault without a normal source page (PFN mappings), __wp_page_copy_user() copies from the faulting user address. For remote faults, this accesses the wrong address space, resulting in wrong data getting copied. For example, user_events updates an enable bit in the registering process's memory. If that memory needs to be faulted in, user_event_enabler_fault_fixup() calls fixup_user_fault() from a work item. Placing the enable bit in a private PFN mapping can trigger this remote COW path. Reject these faults with VM_FAULT_SIGBUS when the target mm differs from current->mm: remote faults. Ordinary (non-PFN) mappings are not affected. The user-address copy dates back to commit 6aab341e0a28 ("mm: re-architect the VM_UNPAGED logic"); likely, actual ways to get remote faults in there on COW PFN mappings appeared afterwards. But the fix is simple and straight forward. Fix generated by an LLM and sent by Chris Mason in private. [ david: simplify comment and description ]
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=6aab341e0a28aff100a09831c5300a2994b8b986 <dd273e2d8d20f681a0147f13c12a1eb748fb9621, >=6aab341e0a28aff100a09831c5300a2994b8b986 <27b2e29733a837552f0f31370e9066fa28466353, >=6aab341e0a28aff100a09831c5300a2994b8b986 <649937cf1df6c70b8e5b0cd13a34945c547235d1, >=6aab341e0a28aff100a09831c5300a2994b8b986 <8db6921cc07b74197a3866d62ed262b68aeadcf3, =2.6.15 | dd273e2d8d20f681a0147f13c12a1eb748fb9621, 27b2e29733a837552f0f31370e9066fa28466353, 649937cf1df6c70b8e5b0cd13a34945c547235d1, 8db6921cc07b74197a3866d62ed262b68aeadcf3 |
| linux-kernel: Kernel | >=6.13.0 <6.18.64, >=6.19.0 <7.3.5, >=2.6.15 <6.12.118 | 6.18.64, 7.3.5, 6.12.118 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket