Description
In the Linux kernel, the following vulnerability has been resolved:
mm/vma: avoid broken uffd merge on mremap
Userfaultfd often causes unexpected interactions within mm, and does so at
the intersection of uffd, mremap() and VMA merging.
When an mremap of a VMA occurs, copy_vma_and_data() calls
mremap_userfaultfd_prep() to notify uffd of this.
However, mremap_userfaultfd_prep() simply drops the UFFD context for the
VMA if the user did not register it for remap, i.e. didn't specify the
UFFD_FEATURE_EVENT_REMAP flag.
This is OK for the VMA itself, as upon page table move, move_ptes() clears
UFFD page table flags, using vma_has_uffd_without_event_remap() to
determine whether to do so.
However, this doesn't account for merging with adjacent VMAs, whose page
tables won't have received this treatment, and thus latent UFFD markers
will be left around.
Worse, it'll break UFFD for any VMAs it is merged with. This is very
surprising behaviour for a user, who will then simply not receive UFFD
events for VMAs they ought to.
Resolve the issue by explicitly checking for this case via
vma_has_uffd_without_event_remap() in vma_merge_copied_range(), the merge
function explicitly designated for mremap() operations.
Also update the userland VMA tests accordingly.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | patch: 7.4-rc1 | — |
| Linux | Linux | patch: 6.18.64 | — |
| Linux | Linux | patch: 7.3.4 | — |
| Linux | Linux | 4.19.18 <4.20 | — |
| Linux | Linux | 3cfd22be0ad663248fadfc8f6ffa3e255c394552 <2f2860b537c9a5863250c21909f3987765a60523 | — |
| Linux | Linux | patch: 0 | — |
| Linux | Linux | 2011eb74180356d56afa47c238b8861f8e45ecf6 | — |
| Linux | Linux | 3cfd22be0ad663248fadfc8f6ffa3e255c394552 <682104ab8ef8432b9a4b06cb5834498ce7f7ebca | — |
| Linux | Linux | patch: 6.1.193 | — |
| Linux | Linux | patch: 6.12.118 | — |
| Linux | Linux | 3cfd22be0ad663248fadfc8f6ffa3e255c394552 <4805046a03e6f2f74f231e8f01a2581946169584 | — |
| Linux | Linux | 5.0 | — |
| Linux | Linux | patch: 6.6.163 | — |
| Linux | Linux | 743b54266729e24c2c700889dd34acc3ad03545d | — |
| Linux | Linux | 3cfd22be0ad663248fadfc8f6ffa3e255c394552 <15c932d5295cfbc06ca1982a82d205d50b571dff | — |
| Linux | Linux | 3cfd22be0ad663248fadfc8f6ffa3e255c394552 <68cb098eadda190783f8f8bdf9fe764df59f7d32 | — |
| Linux | Linux | 3cfd22be0ad663248fadfc8f6ffa3e255c394552 <2aa62a97a2fd39e7351fa55f44b0f76f5d9232d6 | — |
| Linux | Linux | 4.20.5 <4.21 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 7.3.4-1 | — |
| Debian 13 | linux | 6.12.118-1 | — |
| Debian 12 | linux | No fix yet | — |
| Debian 12 | linux-6.12 | 6.12.118-1~deb12u1 | DLA-4961-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 24.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu 26.10 | linux +8 | No fix yet | — |
| Ubuntu 26.04 LTS | linux +14 | No fix yet | — |
| Ubuntu 24.04 LTS | linux +52 | No fix yet | — |
Show 17 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | linux +59 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gke +28 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
| Ubuntu Pro Realtime 24.04 LTS | linux-realtime +3 | No fix yet | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime +2 | No fix yet | — |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-updates 24.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-preview 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | linux +21 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | linux +12 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | linux-gcp +4 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | linux-azure | No fix yet | — |
Advisories 2
- DLA-4961-1 linux-6.12 - security update Debian Security (DSA / DLA) · Dec 2, 2026
- WID-SEC-2026-4889 Linux Kernel: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Nov 30, 2026
References
- https://git.kernel.org/stable/c/2aa62a97a2fd39e7351fa55f44b0f76f5d9232d6
- https://git.kernel.org/stable/c/2f2860b537c9a5863250c21909f3987765a60523
- https://git.kernel.org/stable/c/15c932d5295cfbc06ca1982a82d205d50b571dff
- https://git.kernel.org/stable/c/4805046a03e6f2f74f231e8f01a2581946169584
- https://git.kernel.org/stable/c/682104ab8ef8432b9a4b06cb5834498ce7f7ebca
- https://git.kernel.org/stable/c/68cb098eadda190783f8f8bdf9fe764df59f7d32