CVE-2026-99655: mm/memory: reject remote COW faults on PFN mappings
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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 ]
The Linux kernel CVE team has assigned CVE-2026-99655 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.15 with commit 6aab341e0a28aff100a09831c5300a2994b8b986 and fixed in 6.12.118 with commit dd273e2d8d20f681a0147f13c12a1eb748fb9621 Issue introduced in 2.6.15 with commit 6aab341e0a28aff100a09831c5300a2994b8b986 and fixed in 6.18.64 with commit 27b2e29733a837552f0f31370e9066fa28466353 Issue introduced in 2.6.15 with commit 6aab341e0a28aff100a09831c5300a2994b8b986 and fixed in 7.3.5 with commit 649937cf1df6c70b8e5b0cd13a34945c547235d1 Issue introduced in 2.6.15 with commit 6aab341e0a28aff100a09831c5300a2994b8b986 and fixed in 7.4-rc2 with commit 8db6921cc07b74197a3866d62ed262b68aeadcf3
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99655
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
mm/memory.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/dd273e2d8d20f681a0147f13c12a1eb748fb9621 https://git.kernel.org/stable/c/27b2e29733a837552f0f31370e9066fa28466353 https://git.kernel.org/stable/c/649937cf1df6c70b8e5b0cd13a34945c547235d1 https://git.kernel.org/stable/c/8db6921cc07b74197a3866d62ed262b68aeadcf3