Skip to content

CVE-2026-99362 (nfs2root): is your Ubuntu or Proxmox NFS server still exposed?

CVE-2026-99362 (nfs2root) lets anyone who can reach tcp/2049 on an unpatched Linux NFS server with NFSv4.1 or 4.2 enabled corrupt kernel memory, with no login. Four read-only checks, the Ubuntu, Debian and Proxmox VE status as of 26 Nov 2026, and what to do until you can patch and reboot.

By Nishant Gauraw, NG-NeXTPublished Updated 12 min read

On 19 November 2026 the Linux kernel CVE team announced CVE-2026-99362, titled "nfsd: preflight SEQUENCE replies before accepting a slot". On 25 November OpenSec published its write-up under the name NFS2ROOT, and it was posted to Hacker News the same day (UTC). The short version: on a Linux host that runs the in-kernel NFS server with NFSv4.1 or NFSv4.2 enabled, a client that can reach tcp/2049 can make the kernel write past the end of a heap buffer before any login. OpenSec says it chained that into a remote root shell.

The bug is not new. The kernel CVE team says it was introduced in Linux 3.16 by commit 47ee52986472, which OpenSec dates to March 2014. What makes it worth a post now is the patch gap: upstream has fixed it, Debian has shipped fixed kernels for trixie, but on 26 November 2026 Ubuntu still lists its linux package as vulnerable on every LTS from 16.04 to 24.04, and we found no Proxmox VE advisory that names it. If you run file servers, NAS boxes, build farms or Proxmox nodes that export storage, this post is the checklist.

What is nfs2root (CVE-2026-99362)?#

NFSv4.1 introduced sessions. Each session slot can keep a cached copy of its last reply, so that a retransmitted request is answered from the cache instead of being executed twice, and the client negotiates how large that cache is. Per the kernel announcement, a client can negotiate the cached reply size down to the minimum, which leaves every slot with a zero-length buffer. A COMPOUND request with a carefully sized tag then fills the reply buffer so that the SEQUENCE result is never encoded, the operation is still treated as a success, and the whole reply, headers and tag included, is copied into the zero-length slot buffer. The KASAN report in the fix shows an 80-byte out-of-bounds write. OpenSec says 61 of those bytes land past the end of the heap object and most of them are chosen by the client.

Three points matter for operators:

  • It is pre-authentication. The kernel CNA scores it with no privileges required, and OpenSec describes it as pre-auth. The CVE record's scoring notes explain why: the EXCHANGE_ID, CREATE_SESSION and SEQUENCE operations the attack uses never call the export access check, so a client does not need to be allowed by /etc/exports to reach the bug.
  • It is the NFS server only. The affected file is fs/nfsd/nfs4state.c. A host that only mounts NFS shares as a client, such as a Proxmox VE node that uses NFS storage but serves nothing itself, is not exposed through this bug. User-space NFS servers such as NFS-Ganesha are a different code base and are not part of this CVE.
  • NFSv3 and NFSv4.0 do not use sessions. The vulnerable path is the NFSv4.1 SEQUENCE operation, which NFSv4.2 also uses. That is why turning off 4.1 and 4.2 works as a stopgap (see below).

Severity: the kernel CNA and Ubuntu rate it 9.8 under CVSS 3.1 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H); Red Hat rates it Critical.

Exploitation status as of 26 November 2026: OpenSec says its exploit stays private. We found no public exploit code, and CVE-2026-99362 is not in CISA's Known Exploited Vulnerabilities catalog (feed dated 25 November 2026). No in-the-wild attacks have been reported by the kernel CVE team, OpenSec, Red Hat, Debian or Ubuntu. The technical detail in the fix and the write-up is enough for a capable attacker to start from, so do not treat a private exploit as protection.

Four read-only checks#

All four commands only read state. Run them on every host that could be an NFS server, including Proxmox nodes, NAS boxes and Kubernetes storage nodes. They follow OpenSec's four-condition checklist and fit the default set-up: nfsd built as a module, NFS over TCP on port 2049, in the host's own network namespace. If you changed the port, enabled NFS over RDMA, run nfsd inside containers, or use a kernel with nfsd built in, adapt the checks accordingly.

1. Which kernel is running?#

uname -r

This shows the running kernel, not the newest installed one. A host that installed a fixed kernel but has not rebooted is still running the vulnerable code. Compare the result with the status table below. For distribution kernels, the upstream version number alone is not enough: Ubuntu's 7.0.0-… and Proxmox's 7.0.14-… kernels carry backports, so check the distribution's own status, not kernel.org's list.

2. Is the kernel NFS server loaded?#

lsmod | grep -w nfsd

No output means the nfsd module is not loaded; on a kernel that builds nfsd as a module, the in-kernel NFS server is then not running. A line starting with nfsd means it is loaded. Loaded is not the same as serving: cat /proc/fs/nfsd/threads shows how many server threads are running (0 means none), and checks 3 and 4 show what it offers and where it listens.

3. Which NFS versions does it offer?#

cat /proc/fs/nfsd/versions

On a current kernel the output looks something like +3 +4 +4.0 +4.1 +4.2; the exact list depends on how the kernel was built. A + means the version is enabled, a - means it is off. +4.1 or +4.2 means the server offers NFSv4.1 or 4.2, which is the protocol the vulnerable code handles; patched kernels show the same flags, so this check only matters together with checks 1 and 4. If the file does not exist, the nfsd control interface is not available at that path; go by checks 2 and 4.

4. Is anything listening on 2049, and where?#

ss -tlnp 'sport = :2049'

Look at the Local Address column. 0.0.0.0:2049 or [::]:2049 means every interface, including any public or management interface. A storage-network address limits which local address accepts connections, not which networks can send to it: routed clients elsewhere may still reach it, so the firewall still decides. A loopback-only listener (127.0.0.1 or [::1]) would not be reachable over the network. If only the header line comes back, nothing is listening on TCP 2049. Do not be surprised when the process column is empty: the NFS server's sockets belong to the kernel, not to a user-space process, so -p has nothing to show. If you also run NFS over RDMA, that transport carries the same NFSv4.1 protocol and needs its own check.

Reading the result: an affected running kernel, nfsd loaded, +4.1 or +4.2, and 2049 listening on an address an untrusted host can reach means treat the host as exposed today. In the default set-up, removing any one of those conditions closes this particular path; the variations listed above need their own checks.

Is it patched? Status as of 26 November 2026#

Kernel sourceStatusWhere to check
Upstream (kernel.org)Fixed in 7.4-rc1 (mainline commit 35ff1a7a7e38), 7.3.2, 6.18.61 and 6.12.117, per the announcement on 19 Nov. The CVE record updated on 23 Nov adds 6.6.163, 6.1.193, 5.15.226 and 5.10.275.CVE record
Ubuntulinux listed as Vulnerable on 16.04, 18.04, 20.04, 22.04 and 24.04 LTS. 26.04 LTS shows "work in progress" in 7.0.0-45.45 and 26.10 in 7.3.0-12.13. The linux row for 14.04 is "Not affected". No Ubuntu Security Notice yet. Page last updated 25 Nov.Ubuntu CVE page
DebianFixed in trixie (linux 6.12.117-1; security 6.12.118-1), forky (7.3.5-1) and sid (7.3.6-1). Bookworm's linux (6.1.176-1; security 6.1.192-2) is still vulnerable; bookworm's linux-6.12 6.12.117-1~deb12u1 is fixed (DLA-4927-1).Debian tracker
Proxmox VE 9, default 7.0 kernelThe fix is in the source of proxmox-kernel-7.0.14-30-pve (changelog dated 16 Nov 2026), which was listed in the pve-no-subscription and pvetest package indexes on 26 Nov. 7.0.14-29 does not have it; treat 7.0.14-29 and earlier as vulnerable. Proxmox's changelog does not name the CVE, and we found no Proxmox advisory or forum post about it. Availability in the enterprise repository: not confirmed as of 26 Nov 2026.pve-kernel changelog
Proxmox VE 9, opt-in 7.3 kernelBased directly on upstream 7.3 stable, which has the fix from 7.3.2. The source tagged proxmox/7.3.5-1 contains the fix, and 7.3.6-1 is the newest build in the package index. The early 7.3.0-1 and 7.3.1-1 builds are based on upstream releases before the fix; treat them as vulnerable. Proxmox recommends the 7.0 kernel for production unless you have tested 7.3 on similar hardware.Proxmox forum announcement
Proxmox VE 9, 6.17 kernelLast build 6.17.13-21 (28 Jul 2026), months before the fix. Treat as vulnerable and move to 7.0.14-30 or later.pve-kernel trixie-6.17 branch
Proxmox VE 8 (6.8 kernel)Proxmox says VE 8 reached end of life in August 2026 and gets no security fixes (release thread). The last 6.8 build is 6.8.12-43 (18 Aug 2026), and its kernel source (48ce97da242c) does not contain the fix. Treat as vulnerable; no fix is expected.pve-kernel bookworm-6.8 branch

We found no Proxmox advisory naming this CVE, so the Proxmox rows come from Proxmox's public git and package indexes on 26 November. At pve-kernel commit 903d166 (the bump to 7.0.14-30), the kernel source submodule is pinned to mirror_ubuntu-kernels commit d28b7c099eda (set by commit b52e617, "update sources to Proxmox-7.0-20261116"); that tree's fs/nfsd/nfs4state.c contains the check the upstream fix adds to nfsd4_sequence(). The tree 7.0.14-29 was built from (49ecb900ee95) does not. Anyone can repeat this by fetching those commits from git.proxmox.com. If Proxmox publishes an advisory, it takes precedence over this table.

Appliances and NAS operating systems that serve NFS with the in-kernel server have their own kernels and their own timelines. Check the vendor's advisory; do not assume a kernel version string maps to the upstream fix.

Until you can patch: three stopgaps#

Pick the narrowest one that still lets your clients work. None of them replace the kernel update.

Option A: allow 2049 only from the storage network#

This is the usual first choice when the server must keep serving. With nftables, assuming an inet filter table whose input chain is a base chain attached to the input hook, and 192.0.2.0/24 standing in for your storage VLAN:

nft insert rule inet filter input tcp dport 2049 ip saddr != 192.0.2.0/24 drop
nft insert rule inet filter input meta nfproto ipv6 tcp dport 2049 drop

The second line matters. An ip saddr rule only matches IPv4, so on its own it gives no protection over IPv6 to a server listening on [::]:2049. If your clients use IPv6, replace that line with an ip6 saddr != <your prefix> rule. Rules added with nft on the command line do not survive a reboot; put them in your persistent ruleset once they are tested. A TCP port rule does not cover NFS over RDMA; if that is enabled, restrict or disable the RDMA listener separately.

You can also bind the server to the storage address only. With nfs-utils that reads /etc/nfs.conf (Ubuntu 22.04 and later, Debian, Proxmox VE 9), host= in the [nfsd] section limits which address NFS requests are accepted on; restart the server afterwards and re-run check 4. Per the rpc.nfsd(8) manual, lockd may still listen on all addresses, so keep the firewall rule as well.

On Proxmox VE, make the rule part of the node's firewall configuration rather than a one-off command, so it survives reboots and stays visible to whoever manages the cluster firewall. It only takes effect once the firewall is enabled at datacenter level (it is off by default there) and not disabled on the node.

A firewall narrows who can attack. It does not help if a host on the storage network is already compromised, which is why the kernel update still matters.

Option B: turn off NFSv4.1 and NFSv4.2#

In /etc/nfs.conf, or a file ending in .conf under /etc/nfs.conf.d/ (on releases whose nfs-utils reads these files, such as Ubuntu 22.04 and later; older Ubuntu releases configure the server in /etc/default/nfs-kernel-server instead):

[nfsd]
vers4.1=n
vers4.2=n

Then restart the server with systemctl restart nfs-server and confirm with cat /proc/fs/nfsd/versions that it now shows -4.1 -4.2. The kernel does not accept changes to the versions file while the server is running, which is why the service restart is needed.

The trade-offs are real, so check your clients before you do it:

  • New mounts from clients that do not pin a version negotiate down: Linux clients try the newest NFSv4 minor version first and can fall back to NFSv3 if the server offers it. Existing mounts do not switch versions; they need to be unmounted and mounted again.
  • Clients that pin vers=4.2 or vers=4.1 in their mount options (or in a Proxmox VE storage definition's options) will fail to mount until you change them.
  • You lose what sessions and 4.2 provide: the session reply cache's exactly-once semantics, pNFS, and NFSv4.2 operations such as copy offload and SEEK, READ_PLUS and DEALLOCATE for sparse files. Some applications fall back to copying through the client; others may fail and need adjusting.
  • Existing 4.1 and 4.2 mounts will hang or return errors against a server that no longer offers those versions, until they are remounted. Plan it as a maintenance window with a controlled unmount and remount on every client.

Option C: stop the NFS server where it should not be running#

If check 2 found nfsd on a host that should not be serving NFS at all, switch it off:

systemctl disable --now nfs-server
systemctl mask nfs-server

The first line stops the server and removes it from start-up; the second stops the unit from being started by hand or pulled in by another unit. To also keep the module out, an install nfsd /bin/false line in a file such as /etc/modprobe.d/disable-nfsd.conf makes ordinary modprobe loads of nfsd fail. A plain blacklist nfsd line is weaker: per modprobe.d(5) it only ignores the module's aliases. Neither unloads a module that is already loaded, and neither affects a kernel with nfsd built in. Undo them once the host is patched, if it ever needs to serve NFS again.

Patch, reboot, verify#

  1. Install the fixed kernel. On Debian, update to a kernel at or above the fixed version in the tracker for your release. On Proxmox VE 9, apt update && apt full-upgrade from a repository that has proxmox-kernel-7.0.14-30-pve or later. On Ubuntu there is no fixed linux package yet as of 26 November; keep the stopgaps in place and watch the Ubuntu CVE page.
  2. Check what will boot. On Proxmox VE, proxmox-boot-tool kernel list shows the kernels selected for booting. If you pinned an older kernel with proxmox-boot-tool kernel pin, remove the pin with proxmox-boot-tool kernel unpin and then run proxmox-boot-tool refresh (or accept its prompt to do so), or the node will come back on the old kernel.
  3. Reboot. The fix is in the kernel; nothing changes until the host runs the new one. In a cluster, migrate guests off one node at a time where capacity allows. Migrating guests does not move NFS exports the node itself serves, so tell those clients about the outage.
  4. Verify. Run check 1 again. uname -r should now show the fixed version (for example 7.0.14-30-pve or later on Proxmox VE 9). Then re-run checks 3 and 4, and mount, read and write from a real client to confirm the service came back the way you intended. Only then decide whether to lift Option B.
  5. Look back, with care. OpenSec lists kernel warnings from nfsd4_check_resp_size as a sign of attempts. In the vulnerable upstream code that warning is a WARN_ON_ONCE, so normally it is logged only the first time it fires after boot (or after the module is reloaded), and finding nothing proves nothing. journalctl -k covers only the current boot; on a host with a persistent journal, journalctl _TRANSPORT=kernel | grep nfsd4_check_resp_size searches older boots too.

Why this one deserves a maintenance window#

A storage server is often the box nobody wants to reboot: it holds the data, and it sits on an internal network that is assumed to be friendly. For this bug, an internal network alone does not remove the risk: any host that can reach a vulnerable nfsd has a potential path to kernel compromise until the kernel is replaced or the stopgaps above are in place. Commenters in the Hacker News discussion expected that few Ubuntu machines run an NFS server at all. That may well be true, but the ones that do are usually the ones holding the data.

If you would rather have the storage network reviewed and the patch window planned for you across a Proxmox or bare-metal estate, NG-NeXT does consulting and turnkey builds. Tell us what you run through the contact page.

— Nishant Gauraw, Founder and CEO, NG-NeXT Tech

Talk to us directly.

We reply within one business day. The site assistant answers at any hour.