NFS2ROOT (CVE-2026-99362): what it is, who is exposed, and what to do today
AI disclosure: this post was drafted with AI assistance and reviewed and edited by the Rokkhe team. Every claim was checked against the linked public sources as of 28 Nov 2026. A 12-year-old pre-auth heap overflow in th
AI disclosure: this post was drafted with AI assistance and reviewed and edited by the Rokkhe team. Every claim was checked against the linked public sources as of 28 Nov 2026.
A 12-year-old pre-auth heap overflow in the Linux NFS server. If in-kernel nfsd is serving NFSv4.1 or 4.2 on a reachable TCP port 2049, one connection can be enough to corrupt kernel memory. We read the researcher write-up, the upstream fix, the Ubuntu, Debian and Red Hat trackers, and the news coverage, and put the practical bits in one place. Every claim links to where it came from. Where sources disagree, we say so. Checked 28 November 2026, Asia/Dhaka. By the Rokkhe research team.
TL;DR
-
What. CVE-2026-99362, called NFS2ROOT by OpenSec, is a pre-authentication heap overflow in the Linux kernel NFS server (
nfsd). A client can shrink its reply cache to nothing, then make the server copy a full reply into that buffer (OpenSec, CVE). -
Who. Linux hosts that load in-kernel
nfsd, have NFSv4.1 or 4.2 enabled (the usual default), and listen on TCP port 2049 on an address other than loopback. NFS clients are not this bug. A default Red Hat Enterprise Linux install does not enablenfsd(OpenSec, Red Hat). - Impact. cve.org rates it 9.8 (Critical). OpenSec says it chained the overflow to a root shell in a private exploit. There were no public reports of exploitation in the wild as of 27 November 2026, and we did not see the CVE in CISA's Known Exploited Vulnerabilities catalog (OpenSec, BleepingComputer).
-
Today. Upstream fixes are in Linux 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1. Debian has shipped fixed kernels. Red Hat has started shipping advisories for some RHEL 8 and RHEL 10 streams. Ubuntu's tracker, last updated 25 November 2026, still listed supported releases as vulnerable or "work in progress" when we checked on 28 November. If you cannot patch and reboot today, restrict TCP 2049 to the storage network, or turn off NFSv4.1 and 4.2, or stop
nfs-serverif you do not need it (OpenSec, Ubuntu, Debian, RHSA-2026:103838).
What happened
The bug has been in the kernel since Linux 3.16, shipped in 2014. A change that year narrowed the NFS reply buffer while handling the NFSv4.1 SEQUENCE operation. Twelve years of LTS, distribution and appliance kernels carried it (OpenSec).
On 17 August 2026, JΓ©rΓ©my Jean of ANSSI sent a fix upstream with a KASAN out-of-bounds report. On 21 September, OpenSec says its research harness, Antara, flagged the same path, scored it 9.8, and built a private remote-root exploit. OpenSec reported that exploit, and a patch, to the NFSD maintainers and [email protected] on 22 September. CVE-2026-99362 was published with fixes on 20 November 2026. Ubuntu lists a publication date of 19 November (OpenSec, Ubuntu).
Credit belongs first to Jean for the upstream fix, and to OpenSec for the public write-up and the private root demonstration. OpenSec also thanks NFSD maintainers Chuck Lever and Jeff Layton (OpenSec).
How it works, in plain terms
NFSv4.1 and 4.2 keep a small cache of the last reply for each session slot, so a retried request is answered once. The client is allowed to negotiate how large that cache is. If the client sets the cache to the minimum, the server can end up with a slot buffer that has no room in it, then shrink the reply buffer to match before it accepts the slot (OpenSec, Ubuntu).
A crafted request can fill that narrowed buffer just far enough that the server never finishes encoding a normal SEQUENCE result, but still treats the operation as successful. It then copies the whole reply, headers included, into the zero-length cache. That copy runs off the end of a kernel heap object. OpenSec's KASAN report, which also appears in the CVE text, is an 80-byte write, with most of the overflowed bytes chosen by the client (CVE, OpenSec).
The overflow happens in the NFS server inside the kernel, before the server has decided who you are. You do not need a password, and you do not need anyone to click anything. OpenSec says kernel hardening, including KASLR, does not remove the overflow itself, and that a private exploit used the overflow as the first step toward a root shell. That exploit has not been published, and we are not going to reconstruct it here (OpenSec, BleepingComputer).
The fix, written by Jean, checks that the fixed-size SEQUENCE result (plus room for a following operation's error status) fits the negotiated limit before the server narrows the buffer and consumes the slot. A follow-up change makes the encoder report what it cannot fit (OpenSec, upstream commit).
Who is affected
You are in the window OpenSec describes if all four of these are true on a host:
- The running kernel is older than the fixed upstream versions (6.12.117, 6.18.61, 7.3.2 or 7.4-rc1) and has no distribution backport for CVE-2026-99362.
- The in-kernel NFS server is loaded (
nfsd). - NFSv4.1 or 4.2 is enabled. OpenSec says this is the default.
- TCP port 2049 is listening on an address other than loopback, and someone untrusted can reach it (OpenSec).
That is a narrower set than "every Linux box." Most desktops and most cloud VMs do not run an NFS server. Red Hat's advisory says default RHEL configurations do not run or enable nfsd, and that hosts which are not NFS servers are not exposed to this flaw (Red Hat). The same idea applies elsewhere: if nfsd is not loaded and port 2049 is not open, this CVE is not your urgent problem.
The hosts that do matter are the ones people forget because they sit on "trusted" networks: file servers, NAS appliances that run Linux nfsd, build farms, backup targets, and Kubernetes or lab storage nodes. Hacker News discussion of the OpenSec post made the usual point that NFS is rarely meant to face the public internet. That is true, and it is not a reason to ignore an unauthenticated kernel bug on the storage VLAN, a university network, or a cloud security group that is wider than you think (HN thread, OpenSec, BleepingComputer).
This CVE is in the in-kernel server, nfsd. An NFS client does not have this bug. A userspace NFS server, such as nfs-ganesha, is a different codebase; this specific CVE does not apply to it. You still need to know which server you actually run, including inside appliances and container images.
Where the sources disagree
Severity. cve.org and Ubuntu's CVSS 3.1 score are 9.8, with High impact on confidentiality, integrity and availability. Ubuntu also lists a CVSS 4.0 base score of 9.3. Red Hat scores the same CVE at 9.4 and sets integrity impact to Low, not High, with the usual note that Red Hat scores how the bug affects its own products. Both ratings are still Critical. Treat it as a pre-auth kernel memory bug on any reachable nfsd, and do not use the one-point gap as a reason to wait (CVE, Ubuntu, Red Hat).
Who can reach it. OpenSec's public description is "anyone who can reach port 2049." In the Hacker News thread, some readers asked whether a host still needs a matching /etc/exports entry. We have not seen a clear public answer from the maintainers on that point, so we are not going to invent one. Until that is settled, assume reachability of nfsd on 2049 is enough to start the unauthenticated path, and restrict the port (OpenSec, HN thread).
Exploitation status as of 28 November 2026
OpenSec kept its exploit private. BleepingComputer, reporting on 27 November, said there were no reports of exploitation in the wild. We did not find CVE-2026-99362 in CISA's KEV catalog while preparing this post. Re-check the KEV catalog before you close a change window, because that list moves (OpenSec, BleepingComputer).
Absence of a public exploit is not the same as absence of risk. The bug is pre-auth, the fix has been public since mid-November, and discussion on X and Hacker News picked up again on 26 and 27 November once OpenSec's write-up and the BleepingComputer story circulated. If your NFS servers are still unpatched, treat the next few days as the window where a private technique is most valuable to someone else.
How to find your exposure
Run these on each Linux host that might export files, including storage nodes and appliances you can shell into. OpenSec's checks are the right starting point (OpenSec).
1. What kernel is actually running?
uname -r
Compare that to your distribution's advisory, not only to the upstream versions. A vendor kernel can be older than 6.12 and still be fixed, or newer-looking and still vulnerable, because distributions backport. On Ubuntu, also re-check the CVE page, because a package that is "work in progress" today may ship after this post.
2. Is in-kernel nfsd loaded?
lsmod | grep -w nfsd
systemctl is-active nfs-server 2>/dev/null
If the module is not loaded and the service is not active, you are probably not serving NFS from this kernel. Confirm that nothing else will load it on boot.
3. Are NFSv4.1 or 4.2 enabled?
cat /proc/fs/nfsd/versions
OpenSec says a +4.1 or +4.2 in that list is the version flag you care about. If /proc/fs/nfsd/versions does not exist, nfsd is not running.
4. Is TCP 2049 listening, and can untrusted networks reach it?
ss -ltn 'sport = :2049'
If you see a bind on 0.0.0.0:2049 or a public address, treat that as exposed until the firewall or security group says otherwise. Also check from outside the host: a security group, a router ACL, or a load-balancer rule can make a "local only" service reachable. Look at cloud security groups, Kubernetes NodePort or hostNetwork services, and management VPNs that are wider than the storage network.
5. Inventory the fleet, not one box.
Search configuration management, CMDB, or a vulnerability scanner for hosts with nfs-server installed, images that load nfsd, and security groups that allow TCP 2049. Backup software and hypervisor "shared storage" features are easy to miss. If you want a repeatable way to run this kind of triage every week, see our post on weekly CVE triage with KEV, EPSS and CVSS.
Fixes
A kernel update, then a reboot. Reloading nfsd is not a substitute for a new kernel (OpenSec, RHSA-2026:103838).
Upstream. Fixed in Linux 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1 (OpenSec, upstream commit).
Debian. The security tracker lists bookworm (security) as fixed in linux 6.1.192-3, with a bookworm 6.12 backport at linux-6.12 6.12.117-1~deb12u1. Trixie is listed as fixed in 6.12.117-1 (and 6.12.118-1 in security). Sid/unstable is listed as fixed from 7.3.3-1. After apt update and a kernel upgrade, reboot and confirm uname -r (Debian tracker).
Red Hat. Red Hat began publishing Critical kernel advisories that include CVE-2026-99362 on 26 November 2026. Examples we checked: RHSA-2026:103838 (RHEL 8 real-time / related 8.10 streams) and further advisories in the same window, including RHSA-2026:103817, RHSA-2026:104030 and RHSA-2026:104032. Streams move at different speeds. Check the Red Hat CVE page for the exact product you run, including RHEL 9, before you assume you are patched. Then dnf update (or your usual satellite path) and reboot. Red Hat says the system must be rebooted for the update to take effect (RHSA-2026:103838).
Ubuntu. This is the awkward part, and the reason a post on 28 November is still useful. Canonical's CVE-2026-99362 page, last updated 25 November 2026, listed 24.04 LTS, 22.04 LTS and older supported releases as Vulnerable, and listed 26.04 LTS and 26.10 as "Vulnerable, work in progress" (with package versions noted as in progress). When we re-checked on 28 November, we did not find a published Ubuntu kernel that closes this CVE. Do not treat apt upgrade as a fix until that page says otherwise. Use the stopgaps below, watch the Ubuntu page, then install the kernel and reboot when it appears.
Appliances and vendor kernels. A NAS, a Kubernetes storage appliance, or a vendor-custom kernel will not be fixed by your usual distro mirror until the vendor ships. Ask the vendor for a CVE-2026-99362 advisory. Until then, restrict port 2049.
Stopgap if you cannot patch today
Pick the tightest option you can live with. None of these replaces a patched kernel.
If you do not need to export NFS, turn the server off. Red Hat's mitigation is:
systemctl stop nfs-server
systemctl disable nfs-server
Stopping the service ends active NFS sessions. That is the point, and it will surprise users if you do it without notice (Red Hat).
If you need NFS, restrict TCP 2049 to the storage network. OpenSec's nftables example drops traffic to 2049 that is not from a chosen prefix. Replace the prefix with yours, do not copy 10.20.0.0/16 blindly:
nft add rule inet filter input tcp dport 2049 ip saddr != 10.20.0.0/16 drop
On firewalld, Red Hat suggests removing the general NFS service and adding a rich rule for trusted sources, then reloading. A reload severs clients you did not explicitly allow (Red Hat):
firewall-cmd --permanent --remove-service=nfs
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="<trusted_ip_or_subnet>" service name="nfs" accept'
firewall-cmd --reload
Also fix the equivalent in cloud security groups and any router in front of the host. A host firewall cannot help if the service is published another way.
Or turn off NFSv4.1 and 4.2, if your clients can stay on an older version. OpenSec's persistent method is:
[nfsd]
vers4.1=n
vers4.2=n
Put that in /etc/nfs.conf, then restart nfs-server. OpenSec notes this turns off pNFS and some 4.2 features. Check what your clients actually speak before you do it (OpenSec).
Detection ideas
OpenSec's warning is the important one: the attack is valid NFS, so there is no reliable network signature. Look for host-side symptoms instead (OpenSec, BleepingComputer):
- Kernel warnings from
nfsd4_check_resp_size. OpenSec says these appear on attempts, whether or not a follow-on exploit works. - Kernel oopses whose frames include
nfsd4_*,svc_*, orcall_usermodehelper*. - Shells or unexpected commands spawned by kernel workers on a file server.
- Bursts of short NFSv4.1 sessions from one source.
On a host you can inspect:
dmesg -T | grep -E 'nfsd4_check_resp_size|nfsd4_|call_usermodehelper'
journalctl -k -S "2026-11-20" | grep -E 'nfsd4_check_resp_size|nfsd4_|call_usermodehelper'
Adjust the start date to when you first exposed the server, or to 19 November 2026 if you have no better bound (the CVE publication window). A clean log is not proof you were not hit. A warning in that function is a reason to isolate the host, keep memory and disk, and treat the box as untrusted until you understand it.
FAQ
Is an NFS client affected?
No. This CVE is in the in-kernel NFS server, nfsd. Clients that only mount other people's exports are not exposed to this bug. The server they mount might be (OpenSec, Red Hat).
Is NFSv3 or NFSv4.0 enough to be hit?
The public write-ups tie the bug to NFSv4.1 and 4.2 session slots and SEQUENCE. If those versions are off, the path OpenSec describes should not be reachable. Confirm with cat /proc/fs/nfsd/versions, and do not assume a config file matches what is running (OpenSec).
I do not expose port 2049 to the internet. Am I fine?
You are in better shape than a server with 2049 on a public address, and you are not done. Anyone who can reach the port can try the unauthenticated path: a workstation on the storage VLAN, a compromised pod, a too-wide security group. Restrict the port to the clients that need it, then patch (OpenSec, Red Hat).
Does kernel hardening or a non-root nfs user save me?
OpenSec's line is direct: kernel hardening does not remove the overflow, and the end state they demonstrated is a root shell. nfsd runs in the kernel, not as an unprivileged userspace process (OpenSec).
Is there a public exploit?
Not that OpenSec or the 27 November BleepingComputer report described. OpenSec says its exploit stays private. We are not publishing or reconstructing one (OpenSec, BleepingComputer).
Is it in CISA KEV?
Not that we saw on 28 November 2026 (Asia/Dhaka). Re-check the catalog.
Is a service restart enough?
No. You need a kernel that contains the fix, and a reboot into that kernel. Then confirm uname -r (OpenSec, RHSA-2026:103838).
Where Rokkhe helps
We did not find this bug. Jean, the NFSD maintainers, OpenSec, and the distribution security teams did the work this post rests on. What we can do is help you close the loop.
Scope and inventory. Rokkhe's AI pentesting starts with the assets you actually run. We map which hosts, images and appliances load nfsd, which NFS versions are on, and whether TCP 2049 is reachable from networks you did not mean to trust.
Authorized testing, then a retest. On systems you own and authorize, we check exposure and whether the fix or a stopgap is actually live after you change it. After you patch and reboot, we retest the same scope. We will not run a public or private exploit chain against your production NFS servers.
Offense and defense in one loop. While kernels roll out, the same engagement can watch for the signals above and feed them back into the test plan, rather than leaving detection as a separate project.
Book an evaluation
If you run Linux NFS in production and want a second pair of eyes on exposure this week, book an evaluation at rokkhe.com. If you are also sorting this week's application-layer RCEs, our earlier notes on Java4Shell and nginx HTTP/2 follow the same checklist style.
Sources
- OpenSec, NFS2ROOT (CVE-2026-99362)
- CVE-2026-99362 at cve.org
- Upstream fix: nfsd: preflight SEQUENCE replies before accepting a slot
- Ubuntu CVE-2026-99362
- Debian security tracker, CVE-2026-99362
- Red Hat CVE-2026-99362
- RHSA-2026:103838
- RHSA-2026:103817
- RHSA-2026:104030
- RHSA-2026:104032
- BleepingComputer, 27 November 2026
- Hacker News discussion
- CISA KEV catalog
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.