> ## 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.

# NFS2ROOT (CVE-2026-99362): Critical Linux NFS Server Flaw

> NFS2ROOT, CVE-2026-99362: an unauthenticated client can corrupt Linux kernel memory through nfsd. Who is exposed, fixed kernels per distro, and mitigation.

*Published on November 28, 2026*

> [!WARNING]
>
> **CVE-2026-99362 "NFS2ROOT" — Linux kernel, NFS server (nfsd).** A client that can reach TCP port 2049, with no authentication, can write out of bounds in kernel memory. According to Red Hat, this can lead to remote code execution or a kernel panic. Only servers exporting NFS shares with the in-kernel server are affected. If that is your case, filter port 2049 now, then install the fixed kernel and reboot.

## The bug in two sentences

During a SEQUENCE operation (NFSv4.1 and later), nfsd shrinks the reply buffer to the cache size the client negotiated before checking that the reply fits. A client that negotiates the minimum size gets zero-length cache slots, and a crafted COMPOUND request then makes the server copy the whole reply, including bytes the client chooses, past the end of the slot.

According to the scenario published with the CVSS score, the operations involved (EXCHANGE\_ID, CREATE\_SESSION, SEQUENCE) require neither credentials nor access to an export: opening a TCP connection to the server is enough. The same mistake also sends bytes of adjacent memory back to the client.

Affected versions:

* **every Linux kernel since 3.16**;
* fixed upstream by commit `35ff1a7a7e38` (7.4-rc1), and in stable branches **5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, and 7.3.2**.

The NVD record carries the CVSS 3.1 score of **9.8** (`AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`) assigned by kernel.org. Red Hat scores it 9.4 and rates it Critical, Ubuntu gives it critical priority.

> [!NOTE]
>
> As of November 28, 2026, neither NVD, Red Hat, Debian nor Ubuntu references public exploit code, and the flaw is not in CISA's KEV catalog of exploited vulnerabilities.

## Sizing your exposure

The question to ask: **does your server export NFS shares, and who can reach its port 2049?** Red Hat notes that its default configuration does not run nfsd, and that a system that is not an NFS server is not exposed. A plain NFS client, mounting a remote share, is not exposed either.

| Profile | Exposure | Action |
| - | - | - |
| NFS server with port 2049 open to the Internet | **Critical**: no authentication required | Filter port 2049 right away, then fixed kernel and reboot |
| NFS server reachable from a private network or VPC | **High**: any machine on the network can attack | Fixed kernel and reboot; restrict 2049 to known clients |
| Server where `nfs-server` is installed but unused | Avoidable | Stop and disable the service |
| VPS with no NFS server, or NFS client only | Not exposed, per Red Hat | Update the kernel in your next cycle |
| Ubuntu 14.04 | Not affected, per Ubuntu | Nothing to do |

To check whether the kernel NFS server is running and listening:

```bash theme={null}
# NFS server service: "active" means nfsd is running
systemctl is-active nfs-server

# Port 2049 listening over TCP
sudo ss -ltn 'sport = :2049'

# Version of the loaded kernel
uname -r
```

If `systemctl` answers `inactive` or cannot find the service, and `ss` prints no line, the server exports nothing. On distribution kernels, trust 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.117-1` or later | — |
| Debian 12 (bookworm) | `linux` `6.1.192-3` or later | DLA-4942-1 |
| Debian 12, backported `linux-6.12` kernel | `6.12.117-1~deb12u1` | DLA-4927-1 |

```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 28, 2026 |
| - | - | - |
| Ubuntu 26.10 | `linux` | Fix pending release (`7.3.0-12.13`) |
| Ubuntu 26.04 LTS | `linux` | Fix pending release (`7.0.0-45.45`) |
| Ubuntu 16.04 to 24.04 LTS | `linux` and variants | Fix needed, not released |

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

Once 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 8, AlmaLinux 8 | `kernel-4.18.0-553.190.1.el8_10` | RHSA-2026:103817 | ALSA-2026:103817 |
| RHEL 10.2 EUS | `kernel-6.12.0-211.78.1.el10_2` | RHSA-2026:104044 | — |
| RHEL 10.0 EUS | `kernel-6.12.0-55.121.1.el10_0` | RHSA-2026:104032 | — |
| RHEL 9, AlmaLinux 9 | Fix not released | — | — |

As of November 28, 2026, Red Hat marks RHEL 9 "Affected" with no fix, and AlmaLinux has published an advisory for version 8 only. For Rocky Linux, the real-time kernel (`kernel-rt`) and other versions, check [Red Hat's CVE page](https://access.redhat.com/security/cve/CVE-2026-99362) 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
```

## Mitigation until the fix lands

Red Hat gives two mitigations, depending on how you use NFS. They apply to every distribution, and especially to Ubuntu and RHEL 9, which have no fixed kernel yet.

### You do not need the NFS server

Stop and disable the service: nfsd no longer listens, and there is nothing left to attack.

```bash theme={null}
# Stop the NFS server and keep it from starting at boot
sudo systemctl stop nfs-server
sudo systemctl disable nfs-server
```

Stopping it ends active NFS sessions: clients lose access to their shares.

### You need the NFS server

Restrict port 2049 to trusted clients. Replace `192.0.2.0/24` with the address or network of your NFS clients.

With ufw (Debian, Ubuntu), add the allow rule **before** the deny rule, since ufw applies the first rule that matches:

```bash theme={null}
# Allow your NFS clients, then deny everyone else
sudo ufw allow from 192.0.2.0/24 to any port 2049 proto tcp
sudo ufw deny 2049/tcp
```

With firewalld (RHEL, AlmaLinux, Rocky Linux), Red Hat's commands:

```bash theme={null}
# Drop NFS access open to all, allow the trusted network only
sudo firewall-cmd --permanent --remove-service=nfs
sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="192.0.2.0/24" service name="nfs" accept'
sudo firewall-cmd --reload
```

Reloading firewalld immediately cuts off clients that are not allowed.

> [!TIP]
>
> On an OnetSolutions VPS, you can also block port 2049 before traffic reaches the server with the [console firewall](https://help.onetsolutions.net/vps/firewall), and carry NFS traffic over a [private VPC network](https://help.onetsolutions.net/vps/vpc) instead of the Internet.

Its limits:

* filtering protects you from the Internet, **not from an allowed client**: a compromised trusted machine can still exploit the flaw;
* it does not replace the kernel update.

## Checking the mitigation

```bash theme={null}
# Service stopped and disabled: "inactive" and "disabled" expected
systemctl is-active nfs-server
systemctl is-enabled nfs-server

# Firewall rules in place
sudo ufw status numbered          # Debian, Ubuntu
sudo firewall-cmd --list-all      # RHEL, AlmaLinux, Rocky Linux
```

From an outside machine that is not one of your allowed clients, the port must no longer answer:

```bash theme={null}
# TCP connection test to the server's port 2049
nc -vz -w 5 <server_ip> 2049
```

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

## Rolling back the mitigation

Once the fixed kernel is loaded, you can re-enable the service or reopen the port.

```bash theme={null}
# Re-enable the NFS server
sudo systemctl enable --now nfs-server

# ufw: remove the deny rule on port 2049
sudo ufw delete deny 2049/tcp

# firewalld: remove the restrictive rule and restore the nfs service
sudo firewall-cmd --permanent --remove-rich-rule='rule family="ipv4" source address="192.0.2.0/24" service name="nfs" accept'
sudo firewall-cmd --permanent --add-service=nfs
sudo firewall-cmd --reload
```

An NFS server rarely needs to be open to everyone: keep the filtering if your clients are known.

## What next?

Filtering port 2049 is only a stopgap: the target is the fixed kernel, loaded after a reboot. For another recent network flaw in the kernel, read [NoisyTCP (CVE-2026-99288)](https://blog.onetsolutions.net/en/noisytcp-cve-2026-99288.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.