Skip to content
audiotale.net
Sign in
NewsNews

CVE-2026-99362: Linux nfsd NFSv4.1 bug lets remote clients corrupt kernel memory; fixed in 6.12.117, 6.18.61

A 12-year-old bug in the Linux kernel NFS server needs no login or export to trigger. Here is who is affected, the fixed versions and how to check.

audiotale.net team

· 7 min read

Written by AI from the sources linked below. How we use AI

On this page
  1. Key points
  2. What to do
  3. What happened
  4. Background
  5. How it works
  6. What it means
  7. What we don't know yet
  8. What to watch next
  9. Sources

A heap-corruption bug in the Linux kernel's NFS server can be triggered by a remote client that has no account, no export access and no mounted file system. The flaw, CVE-2026-99362, has been in the kernel since version 3.16 (2014) and is rated CVSS 9.8 Critical. Upstream fixes are out for every maintained branch, but some distributions had not shipped theirs when we checked on 26 November. Only machines that run the in-kernel NFS server with NFSv4.1 or 4.2 enabled are exposed.

Key points

  • CVE-2026-99362 is an out-of-bounds write in the Linux kernel's nfsd reply cache; the kernel CNA published it on 19 November 2026 and Ubuntu rates it Critical (CVSS 9.8).
  • It needs nfsd running with NFSv4.1 or NFSv4.2 and a client that can reach TCP port 2049. NFSv3 and NFSv4.0 are not affected, and no export or login is required.
  • Fixed upstream in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61 and 7.3.2 (and mainline 7.4-rc1) by commit 35ff1a7a7e38.
  • The CVE record shows memory corruption and a crash; a full remote-root exploit is claimed by one security firm (OpenSec) but no public proof of concept exists.
  • No exploitation in the wild was reported in the sources we read, and the bug was not in CISA's Known Exploited Vulnerabilities catalog when Ostorlab checked on 24 November.

What to do

Check whether you are exposed. All three of these must be true:

  1. The machine runs the kernel NFS server. Run ss -ltn | grep ':2049'; no listener usually means nfsd is not running.
  2. NFSv4.1 or 4.2 is enabled. Run cat /proc/fs/nfsd/versions; a +4.1 or +4.2 in the output means the vulnerable code is enabled.
  3. The running kernel lacks the fix. Check uname -r against the table below. On a distribution kernel the version string alone does not prove anything: confirm that the vendor's changelog or advisory names CVE-2026-99362 or commit 35ff1a7a7e38.

Fix it. Install a kernel that contains the fix and reboot. Upstream fixed releases:

Branch Fixed in
5.10 5.10.275
5.15 5.15.226
6.1 6.1.193
6.6 6.6.163
6.12 6.12.117
6.18 6.18.61
7.3 7.3.2

Branches older than 5.10 have no fixed release listed in the CVE record, so ask your vendor if you run one.

If you cannot patch yet:

  • Allow port 2049 only from the clients that need it, at the host or network firewall.
  • Turn off NFSv4.1 and 4.2. Ostorlab's guide writes -4.1 and -4.2 to /proc/fs/nfsd/versions at runtime, or sets vers4.1 = n and vers4.2 = n under [nfsd] in /etc/nfs.conf and restarts nfs-server. Clients then fall back to NFSv4.0 or v3 if the server still offers them.
  • If the machine does not need to serve NFS, stop and disable the service (Red Hat's advisory suggests systemctl stop nfs-server and systemctl disable nfs-server).
  • A Kerberos-only export policy does not help: Ostorlab says the three operations involved run before any export check.

What happened

The Linux kernel CNA published CVE-2026-99362 on 19 November 2026. The record describes the bug in the kernel function nfsd4_sequence(), which handles the SEQUENCE operation of NFSv4.1 sessions. A client can negotiate the smallest allowed size for cached replies (80 bytes). The server then allocates every reply-cache slot in that session with a zero-length buffer, but still lets a reply fill 80 bytes. A COMPOUND request whose "tag" field has just the right length fills the narrowed reply buffer so the encoder cannot write the status word that should follow the SEQUENCE opcode. The server wrongly treats the request as a success and copies the whole 80-byte reply, including the attacker-chosen tag, past the end of the zero-length slot.

Ostorlab's analysis adds that the same reply cache can then be replayed to the client, returning bytes from the neighbouring kernel object. The CVE record includes a KASAN report (a kernel memory-error detector) showing a write of 80 bytes out of bounds, and notes that the resulting fault can panic the host. Red Hat's advisory says the flaw can cause denial of service and "potentially" code execution.

The attack uses three NFSv4.1 operations (EXCHANGE_ID, CREATE_SESSION and SEQUENCE) that are allowed without a file handle, so no export, mount or local user is needed. A stock nfsd accepts AUTH_SYS or AUTH_NULL for them.

Background

The vulnerable logic arrived with a 2014 commit by J. Bruce Fields, "nfsd4: adjust buflen to session channel limit", merged in Linux 3.16 (released August 2014), according to Ostorlab's timeline. That makes the bug about twelve years old.

The fix, "nfsd: preflight SEQUENCE replies before accepting a slot", was authored on 17 August 2026 by Jérémy Jean of the French agency ANSSI, per Ostorlab, and carries an Assisted-by: Codex:gpt-5 trailer. It computes the size of the SEQUENCE result before narrowing the buffer and refuses the request if the result cannot fit, leaving the slot untouched as RFC 8881 requires. The Debian tracker lists it as mainline commit 35ff1a7a7e38 in 7.4-rc1.

Backports were released in stages. Per Ostorlab, Linux 6.18.61 and 7.3.2 came on 6 November, 6.12.117 on 10 November, and 6.6.163, 6.1.193, 5.15.226 and 5.10.275 on 23 November. The CVE was published between those two waves.

How it works

The bug is a size mismatch. The reply buffer is sized as the client's negotiated cache limit minus a constant, NFSD_MIN_HDR_SEQ_SZ, which is 80 bytes (24 for the RPC header, 12 for the COMPOUND header and 44 for the SEQUENCE result). When the client asks for exactly 80, the result is a slot with room for zero bytes. Later code narrows the reply buffer to the same 80 bytes before accepting the slot's sequence number, but without checking that the SEQUENCE result itself fits. Because the check comes too late, the cache copy runs with the wrong offset (zero) and length (the full reply).

The patch moves the check first: it adds the size of the SEQUENCE result (plus 16 bytes of slack for a following operation's error status) and rejects the request if it exceeds the negotiated limit.

What it means

For server operators, the practical risk depends on exposure. A server reachable only from a trusted storage network is at risk only if that network is first compromised, as Ostorlab puts it. A server with port 2049 open to the internet or to a large untrusted network should be treated as urgent. Red Hat notes that default RHEL installs do not run or enable nfsd, so only systems configured to export NFSv4.1 or 4.2 shares are exposed.

For distributions, the picture was uneven when we looked on 26 November. Debian's tracker listed trixie (6.12.117-1), forky and sid as fixed, and bookworm's linux-6.12 package (6.12.117-1~deb12u1) as fixed, but bookworm's main linux package (6.1.192-2) as vulnerable. Ubuntu's tracker listed 24.04 LTS, 22.04 LTS, 20.04 LTS, 18.04 and 16.04 kernels as vulnerable and the 26.04 LTS and 26.10 kernels as vulnerable with work in progress; 14.04 was marked not affected. Those pages change, so check your own vendor's page rather than relying on ours.

For the wider debate, the exploit claim deserves care. OpenSec, a security firm, says its AI tool "Antara" built a full chain from the overflow to a root shell. We could not open OpenSec's post (it was blocked by a bot check), so we know its claims only from secondary summaries. Those summaries say 61 bytes are written, while the CVE record and Ostorlab say 80, and they give the CVE publication date as 20 November rather than 19. Ostorlab, working from the CVE record, says the confirmed impact is memory corruption and disclosure and that code execution "would depend" on the memory layout. No public proof of concept has been released.

What we don't know yet

  • Whether anyone is exploiting the bug. None of the sources we read reported attacks, but most production kernels do not run KASAN, and Ostorlab notes that an attempt that does not crash the server may leave no trace.
  • Whether OpenSec's root-shell chain works as described, and on which kernel builds and configurations. It has not been independently confirmed.
  • When Ubuntu's LTS kernels and other distributions will ship fixes, and whether any vendors' backports differ from the upstream list.
  • The exact count of exposed servers. Debian's popularity contest listed 15,907 installations of nfs-kernel-server on 24 November, but Ostorlab calls that a lower bound of installs, not exposed servers.

What to watch next

Watch your vendor's security page for the kernel update, and whether CISA adds CVE-2026-99362 to its Known Exploited Vulnerabilities catalog. If OpenSec or another researcher publishes exploit details, the urgency for servers that are reachable from untrusted networks will rise sharply. If you find kernel messages mentioning KASAN, slab-out-of-bounds, read_bytes_from_xdr_buf or sessions DRC could not cache on an NFS server, treat it as a lead worth investigating (Ostorlab lists them as the signatures such a write produces), and review which clients opened NFSv4.1 sessions.

Sources

Written by

audiotale.net team

The official account of the people who run audiotale.net: announcements, conversation starters and the newsroom's drafts. Posts written with AI say so. Every other account here is a real person.