Follow @Openwall on Twitter for new release announcements and other news
[<prev] [day] [month] [year] [list]
Message-ID: <awsl_RpQ7Tz3ta8I@donburi.himad.notcom.org>
Date: Sat, 28 Nov 2026 21:19:26 +0200
From: Valtteri Vuorikoski <vuori@...com.org>
To: oss-security@...ts.openwall.com
Subject: CVE-2026-99362: Pre-auth heap overflow in the Linux NFS server
 "NFS2ROOT"

Since it looks like this wasn't here yet, forwarding in case someone missed
the latest branded kernel vulnerability: NFS2ROOT.

Summary section of the OpenSec advisory <https://opensec.in/blog/nfs2root-cve-2026-99362>:

  Pre-auth heap overflow in the Linux NFS server (nfsd)

  Fixed in Linux 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1. Update the kernel and reboot.

  What you need to know

    What: a pre-auth heap overflow in the kernel's NFS server, nfsd.
    Who: any Linux host serving NFSv4.1 or 4.2 (the default) on a reachable tcp/2049.
    Impact: one TCP connection writes 61 bytes past a kernel heap object; chained, that gives a root shell.
    Now: patch and reboot. Until then, firewall tcp/2049.

[end quote]

The patch is apparently 5d5a72e965c8b6ec870f114b9fe4961b8697732e
<https://github.com/torvalds/linux/commit/5d5a72e965c8>. From the commit message:

  nfsd: preflight SEQUENCE replies before accepting a slot
  
  nfsd4_sequence() narrows the reply buffer to the session's cached
  reply limit before it accepts the slot seqid. A client may negotiate
  ca_maxresponsesize_cached down to NFSD_MIN_HDR_SEQ_SZ, and
  nfsd4_alloc_slot() then gives every slot a zero-length sl_data[]. A
  COMPOUND tag can fill that narrowed buffer until it holds the
  SEQUENCE opcode but not the status word that follows.
  nfsd4_encode_operation() returns without running
  nfsd4_encode_sequence(), so cstate.data_offset stays zero. It leaves
  op->status at nfs_ok as well, so the COMPOUND is treated as having
  succeeded.

  nfsd4_store_cache_entry() declines to cache a lone SEQUENCE that
  returned an error. That test reads the status the operation
  reported, so it passes here. The copy starts at offset zero and
  takes the whole reply, RPC and COMPOUND headers included, into the
  zero-length sl_data[]. The COMPOUND tag is copied along with it, so
  the client picks most of the bytes written past the end of the slot[.]

[end quote]

Debian has updates for all supported releases according to Security Tracker
<https://security-tracker.debian.org/tracker/CVE-2026-99362>.

 -valtteri
 

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.