Post

NFS2ROOT (CVE-2026-99362): unauthenticated heap overflow in Linux nfsd

A malformed SEQUENCE reply in Linux nfsd lets NFSv4.1/4.2 clients corrupt kernel memory remotely. CVE-2026-99362 explained with fixed kernels and mitigations.

On November 19, 2026, the Linux CVE team published CVE-2026-99362: nfsd: preflight SEQUENCE replies before accepting a slot. On December 3, 2026, the Cyber Security Agency of Singapore (CSA) issued a critical alert and told operators running an NFS server to patch immediately.

According to CSA, an unauthenticated remote attacker can send crafted requests, corrupt kernel memory and gain root. That does not mean every Linux server is remotely exploitable: the conditions are nfsd, NFSv4.1 or 4.2, and reachable TCP/2049.

Quick summary

Field Verified information
ID CVE-2026-99362; Linux CNA, November 19, 2026
Type Out-of-bounds slab write in the nfsd SEQUENCE reply path (heap buffer overflow)
Affected nfsd with NFSv4.1/4.2; kernel < 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2, 7.4-rc1
Prerequisite nfsd running; NFSv4.1/4.2; access to TCP/2049
Impact Remote memory corruption; CSA describes root privilege gain
Score Linux CNA CVSS 3.1 9.8 Critical; NVD status Received
Fixed in 6.12.117, 6.18.61, 7.3.2, 7.4-rc1; CSA also lists 5.10.275, 5.15.226, 6.1.193, 6.6.163
Mitigation Restrict TCP/2049 to trusted networks; disable nfs-server if NFS is not needed
Exploitation / KEV No active exploitation in primary sources; not in the November 30, 2026 KEV JSON

Out-of-bounds write in the nfsd SEQUENCE reply

Technical view

The bug is in the nfsd4_sequence() path in fs/nfsd/nfs4state.c. An NFSv4.1/4.2 client can negotiate the session’s cached reply limit (ca_maxresponsesize_cached) down to NFSD_MIN_HDR_SEQ_SZ. In that case nfsd4_alloc_slot() gives every slot a zero-length sl_data[].

  1. nfsd4_sequence() narrows the reply buffer to that reduced limit before accepting the slot seqid.
  2. A COMPOUND tag can fill the buffer until the SEQUENCE opcode fits but the status word that follows does not.
  3. nfsd4_encode_operation() then returns without running nfsd4_encode_sequence(). cstate.data_offset stays zero and op->status remains nfs_ok, so the COMPOUND is treated as successful.
  4. nfsd4_store_cache_entry() declines to cache a lone SEQUENCE that returned an error. Its test reads the operation’s reported status, so it passes here.
  5. The copy starts at offset zero and takes the whole reply, including RPC and COMPOUND headers, into the zero-length sl_data[]. The COMPOUND tag is copied too, so the client can read most of the bytes written past the end of the slot.

The kernel announcement includes this KASAN trace:

BUG: KASAN: slab-out-of-bounds in read_bytes_from_xdr_buf+0x1bc/0x390
Write of size 80 at addr ffff888003a549cd by task kunit_try_catch/24
 __asan_memcpy+0x38/0x60
 read_bytes_from_xdr_buf+0x1bc/0x390
 nfsd4_sequence_done+0x5b0/0x810
 nfs4svc_encode_compoundres+0x1bf/0x240

The fix checks that the fixed-size SEQUENCE result, plus room for a following operation’s error status, fits the negotiated limit before narrowing the buffer and consuming the slot seqid. On error, the slot and its reply cache are left unchanged, as RFC 8881 Section 2.10.6.1.2 requires.

Other nfsd fixes published the same day show the same attack surface:

CVE Title Note
CVE-2026-99358 nfsd: zero NFSv4 COMPOUND tag padding padding-related information leak; no NVD CVSS
CVE-2026-99366 nfsd: don’t modify a session slot when replaying its cached reply CNA 9.8 Critical
CVE-2026-99370 NFSD: copy SETXATTR data from all XDR buffer segments CNA 9.4 Critical
CVE-2026-99371 nfsd: clear XDR padding in GETXATTR replies padding-related information leak; no NVD CVSS

What to do

  1. Measure exposure. Check whether nfsd is running, whether NFSv4.1/4.2 is enabled, and who can reach TCP/2049: cat /proc/fs/nfsd/versions, ss -ltnp | grep :2049, systemctl status nfs-server.
  2. Update and reboot the kernel. Use 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1 and later; verify your distribution’s backport with uname -r. The fix belongs in the server kernel.
  3. Restrict TCP/2049 while waiting. Limit NFS access to trusted clients and networks.
  4. Disable NFS if it is not needed. CSA recommends stopping and disabling the nfs-server service.
  5. Check managed NFS providers. Updating clients does not fix this; the server side needs the patch.

What not to claim

  • “Every Linux kernel is remotely exploitable” — the bug is limited to nfsd and the NFSv4.1/4.2 path.
  • “NFSv3 is affected the same way” — the SEQUENCE path belongs to NFSv4.1/4.2.
  • “It is in KEV and actively exploited” — no entry in the November 30, 2026 KEV JSON and no active exploitation in primary sources.
  • “A public PoC is confirmed” — no verified PoC in primary sources.
  • “Updating clients is enough” — the fix is in the server kernel.
  • “NFS2ROOT is the official CVE name” — it is a nickname; the official title is nfsd: preflight SEQUENCE replies before accepting a slot.

Status

As of December 3, 2026, upstream fixes exist, the NVD record is in Received status, and the score comes from the Linux CNA: CVSS 3.1 9.8. The CSA alert makes the risk concrete for network-reachable nfsd. There is no KEV entry and no primary exploitation evidence, so the priority is patching and closing TCP/2049 exposure.

From this series

Sources