> ## Documentation Index
> Fetch the complete documentation index at: https://blog.onetsolutions.net/llms.txt
> Use this file to discover all available pages before exploring further.

# userfaultfd (CVE-2026-99580): Local Root on the Linux Kernel

> userfaultfd flaw CVE-2026-99580: a local user can gain root on Linux kernels 6.9 to 7.3. Who is exposed, fixed kernels per distro, and how to verify.

*Published on November 27, 2026*

> [!WARNING]
>
> **CVE-2026-99580 — Linux kernel, userfaultfd.** A local user with no special privilege can corrupt kernel page tables and, according to Red Hat, gain root or crash the server. Kernels 6.9 to 7.3 are affected. If your server hosts several users, third-party code or containers, install your distribution's fixed kernel and reboot.

## The bug in two sentences

During a userfaultfd operation, the kernel allocates an anonymous memory structure (`anon_vma`) on a read-only shared mapping before checking that the mapping is eligible. On a later `fork`, the kernel wrongly copies shared hugetlb page tables without holding the required locks, and can end up using a page table that has already been freed.

Red Hat describes the result as a use-after-free: a local attacker can use it to escalate privileges or crash the system.

Affected versions:

* **Linux kernels since 6.9**, starting with commit `867a43a34ff8a` ("userfaultfd: use per-vma locks in userfaultfd operations");
* fixed upstream by commit `514c9247db30` (7.4-rc1), and in stable branches **6.12.118, 6.18.64, and 7.3.5**.

The NVD record carries the CVSS 3.1 score of **7.8** (`AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`) assigned by kernel.org, which Red Hat also uses. Red Hat rates the flaw Important, Ubuntu gives it high priority.

> [!NOTE]
>
> As of November 27, 2026, no public exploit code is referenced, and the flaw is not in CISA's KEV catalog of exploited vulnerabilities.

## Sizing your exposure

The question to ask: **can anyone other than you run code on the server?** A shell account, a compromised website running as `www-data` or an untrusted container is enough: the flaw needs local access, not administrator access.

| Profile | Exposure | Action |
| - | - | - |
| Multi-user server, SSH or SFTP access for third parties | **High**: every account can try to become root | Fixed kernel and reboot |
| Container host, Kubernetes node, CI running third-party code | **High**: containers share the host kernel | Update every node's kernel |
| Single-admin VPS with exposed web applications | Moderate: a compromised application becomes a path to root | Update promptly |
| Debian 12, Ubuntu 22.04 and earlier, Ubuntu 24.04 on its original 6.8 kernel | Not affected, per Debian and Ubuntu | Nothing to do |
| RHEL 7, 8 and 9 | Not affected, per Red Hat | Nothing to do |

To see the running kernel:

```bash theme={null}
# Any distribution: version of the loaded kernel
uname -r

# Debian: the package version is shown in uname -v
uname -v
```

A kernel older than 6.9 is not affected. On distribution kernels, rely on the tables below rather than the version number alone: fixes are backported.

## Updating the kernel, distro by distro

The fix is a kernel update followed by a **reboot**. Until the server reboots, the old kernel stays loaded.

Before rebooting a production VPS, take a [snapshot](https://help.onetsolutions.net/vps/snapshot). If the server does not come back on the network, the [KVM console](https://help.onetsolutions.net/vps/kvm-console) gives you the boot screen.

### Debian

| Version | Fixed package | Advisory |
| - | - | - |
| Debian 13 (trixie) | `linux` `6.12.118-1` or later | DSA-6652-1 |
| Debian 12 (bookworm) | Not affected: the vulnerable code is not present | — |

```bash theme={null}
# Debian: install the fixed kernel, then reboot
sudo apt update
sudo apt full-upgrade
sudo reboot

# After the reboot: the package version is shown in the output
uname -v
```

### Ubuntu

| Version | Package | Status as of November 27, 2026 |
| - | - | - |
| Ubuntu 26.10 | `linux` | Fix pending release (`7.3.0-12.13`) |
| Ubuntu 26.04 LTS | `linux` and variants | Fix needed, not released |
| Ubuntu 24.04 LTS, HWE 7.0 kernel | `linux-hwe-7.0` and variants | Fix needed, not released |
| Ubuntu 24.04 LTS, original 6.8 kernel | `linux` | Not affected |

Ubuntu has not published a USN for this CVE yet. Follow [Ubuntu's CVE page](https://ubuntu.com/security/CVE-2026-99580) and apply the checks in the next section in the meantime.

As soon as the package is out:

```bash theme={null}
# Ubuntu: install the fixed kernel, then reboot
sudo apt update
sudo apt full-upgrade
sudo reboot

# After the reboot: version of the loaded kernel
uname -r
```

### RHEL, AlmaLinux, Rocky Linux

| Version | Fixed kernel | Red Hat advisory | AlmaLinux advisory |
| - | - | - | - |
| RHEL 10, AlmaLinux 10 | `kernel-6.12.0-264.20.1.el10_3` | RHSA-2026:102253 | ALSA-2026:102253 |
| RHEL 7, 8 and 9 | Not affected | — | — |

The Red Hat advisory came out on November 23, 2026, the AlmaLinux one on November 24. For Rocky Linux, check [Red Hat's CVE page](https://access.redhat.com/security/cve/CVE-2026-99580) and your distribution's advisory.

```bash theme={null}
# RHEL, AlmaLinux, Rocky Linux: install the fixed kernel, then reboot
sudo dnf clean metadata && sudo dnf upgrade
sudo reboot

# After the reboot: loaded kernel and installed kernels
uname -r
rpm -q kernel
```

### Kubernetes

Every node needs the fixed kernel and a reboot. Drain nodes one at a time to keep the service up:

```bash theme={null}
kubectl drain <node> --ignore-daemonsets --delete-emptydir-data
# on the node: kernel update and reboot, as above
kubectl uncordon <node>
```

## Reducing exposure until you can patch

Red Hat states that its default configuration limits exposure, because it restricts unprivileged users' access to userfaultfd. Systems where that access was relaxed, or where untrusted workloads hold tracing privileges, remain exposed.

Two settings, described in the [kernel documentation](https://docs.kernel.org/admin-guide/mm/userfaultfd.html), control that access:

* the `vm.unprivileged_userfaultfd` sysctl, whose kernel default is `0`: users without the `CAP_SYS_PTRACE` capability can then only handle page faults in user mode;
* the `/dev/userfaultfd` device, governed by file permissions: a user who can open it bypasses the sysctl.

```bash theme={null}
# Restore the restrictive value if it was set to 1
sudo sysctl -w vm.unprivileged_userfaultfd=0

# Keep the setting across reboots
echo 'vm.unprivileged_userfaultfd = 0' | sudo tee /etc/sysctl.d/99-userfaultfd.conf
```

Its limits:

* with the value `0`, unprivileged users **can still use userfaultfd** in user mode: the kernel documentation only says the setting may make some vulnerabilities harder to exploit;
* a container started with `CAP_SYS_PTRACE` escapes the restriction: do not grant it to an untrusted workload;
* it does not replace the kernel update.

## Verifying the mitigation

```bash theme={null}
# Sysctl value: 0 expected
sysctl vm.unprivileged_userfaultfd

# Device permissions, if it exists on your system
ls -l /dev/userfaultfd
```

The first command should print `vm.unprivileged_userfaultfd = 0`. For `/dev/userfaultfd`, only `root` or a group you control should be able to open it.

The check that matters is still the kernel: after the reboot, `uname -v` (Debian) or `uname -r` (Ubuntu, RHEL, AlmaLinux) should show a version equal to or later than the ones in the tables.

## Rolling back the mitigation

If an application needed `vm.unprivileged_userfaultfd = 1`, restore that value once the fixed kernel is loaded, and remove the file created above.

```bash theme={null}
# Remove the persistent setting and restore the previous value
sudo rm /etc/sysctl.d/99-userfaultfd.conf
sudo sysctl -w vm.unprivileged_userfaultfd=1
```

## What next?

Tightening userfaultfd only narrows the attack surface: the target is the fixed kernel, loaded after a reboot. For another local privilege escalation in the kernel, read [Copy Fail (CVE-2026-31431)](https://blog.onetsolutions.net/en/copy-fail-cve-2026-31431.md); also turn on [automatic security updates](https://blog.onetsolutions.net/en/automatic-security-updates-linux-vps.md). For any technical question, open a ticket from your [OnetSolutions customer area](https://help.onetsolutions.net/console/support).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.