Critical Java and nginx flaws Java4Shell + nginx2rootScan my domain
LinuxNFSKernelRCECVEVulnerability

CVE-2026-99362 (NFS2ROOT): heap overflow in the Linux kernel NFS server

NFS2ROOT (CVE-2026-99362): unauthenticated out-of-bounds write in nfsd, the Linux kernel NFS server, present since 3.16. Fixed versions, distributions, how to check.

by 20 min read
CVE-2026-99362 (NFS2ROOT): heap overflow in the Linux kernel NFS server

Context

The Linux kernel CVE team published CVE-2026-99362 on 19 November 2026. The record describes an out-of-bounds write in nfsd, the NFS server built into the kernel, reachable over the network without an account.

The security company OpenSec named it NFS2ROOT on 25 November. According to the articles that relay its write-up, it built a full chain up to a root shell, which it keeps private.

The defect dates back to March 2014. It entered Linux 3.16 with a simplification commit, and it affects servers that accept NFSv4.1 or NFSv4.2, two versions enabled by default on current distributions.

The fix is signed by Jérémy Jean, of ANSSI, the French national cybersecurity agency. It was posted to the kernel mailing list on 17 August, three months before the record.

Most articles published since then reduce remediation to three numbers: 6.12.117, 6.18.61 and 7.3.2. The record and the distribution advisories give a less tidy picture.

Version numbers mislead in both directions. The 5.10 to 6.6 branches only received their fix four days after the record was published. And the Debian 12 update released on 27 November fixes only one of the two flaws scored 9.8 in this same code.

The sources also disagree on a practical question: is a server that exports nothing exposed? We built a lab to find out. The answer is no, and Red Hat is right against most published analyses.

We have not reproduced the flaw. This article relies on the CVE record, on the fix commit and its backports, on the Debian, Ubuntu, Red Hat and SUSE advisories, and on the watchTowr FAQ. We also ran the kernel NFS server in a lab, to see what it accepts from an unknown client, without ever touching the flaw.

OpenSec's page refused us access on every attempt. What we say about it comes from the articles that quote it.

Technical summary

ItemValue
IdentifiersCVE-2026-99362, "NFS2ROOT"
ComponentKernel NFS server (nfsd), function nfsd4_sequence() in fs/nfsd/nfs4state.c
ClassCWE-787, out-of-bounds write on the kernel heap
SeverityKernel CNA, Ubuntu, SUSE: CVSS 3.1 of 9.8. Red Hat: "Critical", 9.4. SUSE: CVSS 4.0 of 9.0
CVSS 3.1 vectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (kernel CNA)
Affected versionsLinux 3.16 and later, up to the fixed version of each branch; older distribution kernels through backports
Fixes6.18.61 and 7.3.2 (6 November), 6.12.117 (10 November), 5.10.275, 5.15.226, 6.1.193 and 6.6.163 (23 November), 7.4-rc1
Conditionsnfsd running, NFSv4.1 or 4.2 enabled, TCP port 2049 reachable, attacker's address covered by an export
DiscoveryJérémy Jean (ANSSI), author of the fix; Mayank Jangid (OpenSec), credited as tester
ExploitationNone reported as of 27 November; not in the KEV catalog

In the batch published on 19 November, most records carry no score. This one has one, with a written justification for each metric.

On privileges, the record explains that the three operations needed (obtaining a client ID, creating a session, sending the request) check neither a file handle nor export permissions. The server also accepts an anonymous identity, or one the client declares itself. Only the source address has to match a client declared in an export, a point we come back to below.

Red Hat lowers the integrity impact and lands at 9.4. SUSE, in its CVSS 4.0 rating, counts opening a session as a low privilege and adds an attack requirement.

We keep the 9.8. Opening a session on an NFS server takes nothing more than a TCP connection, and we would treat the flaw as critical on any server whose port 2049 can be reached from a network it does not control. Our way of triaging this kind of advisory is described in the article on vulnerability prioritization.

Affected systems

The kernel NFS server

Only the kernel NFS server is involved. A workstation or node that mounts NFS shares uses different code and is not affected.

User space NFS servers, such as NFS-Ganesha, do not share this code either. The Windows NFS server is out of scope.

The defect sits in session handling, which arrived with NFSv4.1. A server limited to NFSv3 and NFSv4.0 does not reach it.

With or without exports

Red Hat writes that only systems configured to export NFSv4.1 or 4.2 shares are exposed. Tobias Weiss, who audited a fleet for this flaw, and GetPageSpeed write the opposite: a server that exports nothing would remain exposed as soon as the nfsd threads are running.

The kernel record leaves both readings open. Its wording is that svcauth_unix_set_client() "only maps the source address to an export".

We settled it in a lab, on a 7.3.4 kernel, with the kernel NFS server in four configurations. With an empty /etc/exports, or an export reserved for another network, the server rejects every NFSv4 request at the RPC level (AUTH_BADCRED), before processing it. With an export open to *, it accepts it.

The code explains this result. For any procedure other than NULL, svcauth_unix_set_client() looks up the source address in the table that rpc.mountd fills from the exports, and rejects the request if it is not there. Session creation and SEQUENCE go through this check like everything else.

Red Hat is therefore right. A server with no export cannot be reached, and an export reserved for the storage network protects against an attacker located elsewhere.

The condition is still easy to meet. A single export, even read-only and for a worthless directory, only has to cover the attacker's address: *, a subnet that is too wide, or the internal network a compromised workstation sits on.

We would count as exposed any machine with an export that covers addresses it does not know.

Version numbers

The record says "from 3.16". Yet Red Hat lists RHEL 6 and RHEL 7 as affected, and their kernels are 2.6.32 and 3.10. Their maintainers backported the NFSv4.1 code, faulty commit included.

The opposite mistake exists too. Debian fixes bookworm in package 6.1.192-3, below upstream 6.1.193, because Debian applied the fix on its own base.

Comparing uname -r with the upstream table therefore gives wrong answers in both directions. It would clear a RHEL 7 host and flag a fixed Debian 12. Only the changelog of the distribution package settles the question.

Machines that serve NFS without saying so

An open port 2049 is mostly found on file servers, NAS appliances, Kubernetes storage nodes, build farms and hypervisors that share their volumes.

Commercial NAS appliances running Linux generally use the kernel server. We found no advisory from Synology, QNAP or TrueNAS naming this CVE as of 27 November.

Proxmox has not published an advisory either. NG-NeXT found in the repositories that kernel 7.0.14-30-pve carries the fix, and that the 6.8 kernel of Proxmox VE 8, now end of life, will not get one. We have not checked these versions ourselves.

A figure of about 1.5 million exposed hosts is going around, taken from a post on X with no method. We do not repeat it.

How it works

This section stays at the level of the CVE record and of the fix commit message.

NFSv4.1 sessions

Since NFSv4.1, a client opens a session before doing any work. The server reserves slots for it, and keeps the last reply sent on each one. If the client resends a request because it never got the answer, the server replays it from this cache instead of running the operation again.

The size of this cache is negotiated when the session is created. The client may ask for the smallest allowed value, and the server then reserves slots whose reply area is empty.

The defect

Every request in a session starts with the SEQUENCE operation, which names the slot in use. Before accepting it, nfsd4_sequence() limits the reply buffer to the negotiated size.

With some request shapes, encoding of the reply stops before the SEQUENCE status code, yet the operation is still treated as successful. The server then considers the reply fit for caching and copies all of it, headers included, into the empty slot area.

The copy runs past the allocation, on the kernel heap. The record states that most of the bytes written come from the client's request.

The cache also works the other way. When the client replays its request, the server sends back the slot contents, and with them bytes from the neighbouring object. The record infers a kernel memory leak, which explains the top confidentiality rating.

The fix

The fix is about fifteen lines in nfsd4_sequence(). Before shrinking the buffer and consuming the slot, the server checks that the SEQUENCE result, plus room for the status of a following operation, fits within the negotiated limit.

If it does not, the server returns an error and leaves the slot untouched, as section 2.10.6.1.2 of RFC 8881 requires.

The KASAN trace quoted in the record comes from a kernel unit test (kunit_try_catch). It proves that the overflow exists, without showing an attack over the network.

That part rests on OpenSec, whose chain (memory leak, KASLR bypass, root shell) is only known through the press. We cannot assess it.

The 2014 commit

The defect comes from a commit by J. Bruce Fields dated 12 March 2014, "nfsd4: adjust buflen to session channel limit". It simplified session limit enforcement by restricting the reply buffer to the session size, and fixed another sizing defect along the way.

It shipped with Linux 3.16, in August 2014. Several articles write that the flaw dates from "March 2014, with 3.16", which mixes up the commit date and the release date.

The fix commit message also carries the tag Assisted-by: Codex:gpt-5. Its author therefore declares having worked with an AI model, without saying whether it helped find the defect or write the fix.

Available fixes

DistributionStatus as of 27 November 2026
Upstream kernel5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2, 7.4-rc1; nothing for 7.2
Debian 13 (trixie)Fixed (6.12.117-1, then 6.12.118-1 in security)
Debian 12 (bookworm)Fixed in linux 6.1.192-3 (DLA-4942-1, 27 November) and linux-6.12 6.12.117-1~deb12u1
Debian forky, sidFixed (7.3.5-1, 7.3.6-1)
Ubuntu 20.04, 22.04, 24.04Vulnerable, no fixed package; "Critical" priority
Ubuntu 26.04, 26.10Fix in progress (7.0.0-45.45 and 7.3.0-12.13)
RHEL 8Fixed (RHSA-2026
, kernel 4.18.0-553.190.1.el8_10, 26 November); 8.6 AUS and EUS on 27
RHEL 6, 7, 9 and 10Affected, no errata
SLES 12 SP5 and 15 SP5 LTSS, 15 SP7Fixes in testing; other SLES and openSUSE Leap versions affected with no fix
CentOS 7Affected, no official fix (end of life in June 2024)

RHEL 8 is the first Red Hat release to be fixed, while the newer RHEL 9 and 10 are still waiting. The major distributions have not followed the order of the upstream branches, and you need to read your own distribution's advisory rather than someone else's.

Ubuntu 26.04 uses a 7.0 kernel, which is not a maintained upstream branch. Canonical therefore has to backport the fix itself, which partly explains the delay.

For CentOS 7, GetPageSpeed offers a rebuilt 6.18 kernel in its Everpatch repository. It is a third-party package, and we would rather remove the NFS server from those machines or migrate them.

The 19 November batch

CVE-2026-99362 did not come alone. The kernel CNA published some thirty records the same day touching SUNRPC, the NFS server and the NFS client, under commit titles as neutral as this one: "nfsd: preflight SEQUENCE replies before accepting a slot".

A team that triages the kernel CVE feed by title could not have spotted this one before the press gave it a name.

Two other records in the batch are scored 9.8. CVE-2026-99366 concerns the same slot mechanism: since 5.10, a reply replayed from the cache modifies the slot as if it held it. CVE-2026-99356 affects SUNRPC TCP receive, but only since 6.17 and for RPC over TLS.

The batch also includes CVE-2026-99370 (9.4) and CVE-2026-99355 (8.1), in the NFS server and in GSS authentication.

The upstream versions listed above fix nearly the whole batch. A distribution that backports fix by fix, on the other hand, may stop at the one that has a name.

That is what Debian 12 did. DLA-4942-1 of 27 November mentions only CVE-2026-99362, and the Debian tracker still lists bookworm's linux package as vulnerable to CVE-2026-99366. The linux-6.12 package in the same repository fixes both.

On a Debian 12 NFS server, we would therefore move to the 6.12 kernel from the security repository rather than settle for today's update.

Checking a machine

Four questions apply to each host: is nfsd running, does it accept NFSv4.1 or 4.2, is port 2049 listening anywhere other than loopback, and which addresses do its exports allow.

cat /proc/fs/nfsd/threads 2>/dev/null || echo "nfsd inactive"
cat /proc/fs/nfsd/versions 2>/dev/null
ss -ltn 'sport = :2049'
exportfs -v

A thread count above zero, +4.1 or +4.2 in the version list, and a listener on 0.0.0.0 or [::] put the machine in scope.

exportfs -v lists the allowed clients of each export. A * (shown as <world>) or a subnet that spills beyond the storage network extends the exposure to all those addresses.

lsmod is not enough: an nfsd built into the kernel does not show up there, while /proc/fs/nfsd does.

What remains is whether the running kernel carries the fix. On Debian and Ubuntu:

uname -r
apt changelog "linux-image-$(uname -r)" 2>/dev/null | grep -m1 CVE-2026-99362

On RHEL and its derivatives:

rpm -q --changelog "kernel-$(uname -r)" | grep -m1 CVE-2026-99362

An installed fixed package protects nothing until the machine has rebooted into it. None of the sources we read mentions a live patch for this flaw.

From the outside

The kernel version cannot be read remotely. You can, however, find out whether an NFS server answers on port 2049 and whether it accepts NFSv4.1 or 4.2.

We wrote a Nuclei template, CVE-2026-99362-flawfence, that performs this check. It sends an NFSv4 request with no operation at all, announcing minor version 1 then 2, and looks at whether the server accepts or rejects it. It opens no session and comes nowhere near the faulty code.

We checked it in the same lab. It flags the kernel server open to *, and stays silent when NFSv4.1 is disabled or when no export covers its address. Its result therefore depends on where it runs from, just like an attacker's.

A flagged server still has to be checked. Any server that speaks NFSv4.1 may answer the same way, NFS-Ganesha included, and the check ends on the host with the commands above.

Remediation

  1. Install your distribution's fixed kernel and reboot into it.
  2. Check after the reboot that uname -r shows the new version. On a server that boots a pinned kernel, the old one may stay active.
  3. Stop and disable the NFS server on machines that do not need it (systemctl disable --now nfs-server).
  4. Restrict port 2049 and the exports to legitimate clients only, even after the fix. NFS authenticates by source address, and this port has no business on the Internet.

Until the fixed kernel is installed

Filtering port 2049 is the simplest measure. It must cover IPv6: nfsd also listens on [::]:2049, and an iptables rule does not apply to IPv6, which has its own rules (ip6tables).

We would limit access to the addresses of the actual clients rather than to a whole subnet. For a NAS serving three nodes, three addresses are enough.

The same rule applied to the exports closes the path for every other address, since the server rejects their requests before processing them. Replacing * with the client addresses in /etc/exports, then running exportfs -ra, cuts off no legitimate client. This measure does not protect against an attacker sitting on one of those clients.

Disabling NFSv4.1 and 4.2 also closes the path. In /etc/nfs.conf:

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

Then systemctl restart nfs-server, and cat /proc/fs/nfsd/versions should show -4.1 -4.2.

This measure has a cost. Clients that mount with 4.1 or 4.2 have to fall back to 4.0 or NFSv3, and pNFS goes away. Restarting the service also drops the sessions in progress.

Compromise assessment

No indicator of compromise has been published.

A failed attempt is likely to bring down an nfsd thread, or the whole machine. Kernel traces are the first place to look:

journalctl -k --since 2026-08-17 | grep -E 'nfsd4_(sequence|store_cache_entry|replay_cache_entry)|read_bytes_from_xdr_buf'
last -x reboot shutdown | head -20

We would start the search on 17 August, the day the fix became public, rather than on 19 November. The commit message already described the overflow to anyone reading the NFS server mailing list.

On the network side, connections to port 2049 from addresses missing from the client list are the clearest signal. Firewall or flow logs record them, when they exist.

These signals have their limits. A successful exploit gives control of the kernel, and what you read on the machine afterwards may have been arranged. On a server left reachable from the Internet without the fix, we would prefer a reinstall to an analysis run on the machine itself.

Timeline

The fix was public long before the alert. On 17 August, any subscriber to the nfsd mailing list could read a message that already described the overflow.

According to watchTowr, OpenSec reported the security impact of the defect on 21 September, and the identifier was reserved on the 25th. The fix entered the nfsd tree on 4 October, then Linux 7.4-rc1 on 1 November.

The upstream versions were therefore fixed before the record, but not all of them. The four oldest branches followed on 23 November.

The first articles only named the 6.12, 6.18 and 7.3 branches, and one of them wrote that older kernels remained exposed. On 19 November, that was accurate.

Timeline

CVE-2026-99362 timeline

Origin

  1. 12 March 2014

    Original commit

    J. Bruce Fields restricts the reply buffer to the session limit.

  2. 3 August 2014

    Linux 3.16

    first release containing the defect.

Discovery

  1. 17 August 2026

    Fix posted

    Jérémy Jean (ANSSI) publishes the fix on the nfsd mailing list.

  2. 21 September 2026

    Security report

    OpenSec reports the impact of the defect, according to watchTowr.

  3. 25 September 2026

    Identifier reserved

    the kernel CNA reserves CVE-2026-99362.

  4. 4 October 2026

    Fix applied

    Chuck Lever merges it into the nfsd tree.

Fixes

  1. 1 November 2026

    Linux 7.4-rc1

    the fix reaches mainline. The 7.2 branch ships its last release without it.

  2. 6 and 10 November 2026

    Recent branches

    6.18.61 and 7.3.2, then 6.12.117.

  3. 19 November 2026

    CVE record

    published within a batch of some thirty SUNRPC and NFS records.

  4. 23 November 2026

    Older branches

    5.10.275, 5.15.226, 6.1.193 and 6.6.163.

Disclosure

  1. 25 November 2026

    NFS2ROOT

    OpenSec publishes its write-up under that name.

  2. 26 November 2026

    First errata

    Red Hat fixes RHEL 8, watchTowr publishes its FAQ.

  3. 27 November 2026

    Debian 12

    DLA-4942-1 fixes CVE-2026-99362 alone; Ubuntu still has no fixed package.

Dates taken from the git.kernel.org repositories, the CVE record, the Debian and Red Hat advisories and the watchTowr FAQ.

Frequently asked questions about NFS2ROOT (CVE-2026-99362)

What is NFS2ROOT?

The name OpenSec gave to CVE-2026-99362, an out-of-bounds write in nfsd, the Linux kernel NFS server. A client can make the server copy a whole reply into a zero-sized cache area, over the network and without an account. OpenSec says it turned this into a remote root shell.

Which kernel versions are affected?

Kernels since 3.16, up to 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61 and 7.3.2 depending on the branch. Older distribution kernels, such as those of RHEL 6 and 7, are affected through backports. Only your distribution's advisory is authoritative.

Is an NFS client affected?

No. Only the kernel NFS server is involved. A machine that mounts shares without serving any is not exposed to this flaw.

Is a server with no export at all exposed?

No. We checked it in our lab: with no export, or when no export covers its address, the server rejects the client's request at the RPC level, before any NFS processing. A single export open to *, on the other hand, makes the server reachable from anywhere.

Is an NFSv3-only server affected?

No. The defect sits in session handling, which only exists from NFSv4.1 on. A server where 4.1 and 4.2 are disabled does not reach it.

Is the flaw being exploited?

No attack has been reported as of 27 November 2026, and the flaw is not in the CISA KEV catalog. OpenSec keeps its exploit private.

Can you tell remotely whether a server is vulnerable?

No. The kernel version cannot be read from the network. You can only spot a server that accepts NFSv4.1 or 4.2 on port 2049, which our Nuclei template does, then check the kernel on the machine.

Is there a workaround?

Yes. Filter port 2049 so that only legitimate clients get through, restrict the exports to their addresses, or disable NFSv4.1 and 4.2 in /etc/nfs.conf. Installing the fixed kernel, followed by a reboot, remains the only complete measure.

Sources

Let’s discuss your external exposure

Request a personalized Flawfence demo and discover your real exposure level.