A bug that has been sitting quietly in the Linux kernel since 2014 was disclosed this week, and
it is about as serious as they get: somebody who can reach your file server over the network can
take it over completely, without logging in first.
Researchers named it the NFS2ROOT Linux flaw, and the name is accurate rather than dramatic.
It is tracked as CVE-2026-99362, and the good news is that the fix already exists and the
workaround is a firewall rule.
What this covers:
- What the NFS2ROOT Linux Flaw actually is
- Are you exposed to the NFS2ROOT Linux Flaw?
- Why the NFS2ROOT Linux Flaw waited since 2014
- NFS2ROOT Linux Flaw: the fix and the workaround
- How to protect yourself from the NFS2ROOT Linux Flaw
- What this means if you are not technical
- NFS2ROOT Linux Flaw questions
What the NFS2ROOT Linux Flaw Actually Is
NFS is the standard way Linux machines share folders across a network. On the machine doing the
sharing, a background service called nfsd handles the requests.
The flaw is in how nfsd handles one of its protocol messages. A single connection to the service
can write 61 bytes past the end of a small block of kernel memory.
On its own, 61 bytes sounds trivial. Chained properly, it gives an attacker the ability to run
their own commands with the highest privileges on the machine, which is what “root” means.
Two details make it worse than an ordinary memory bug. No login is needed beforehand, and the
write is controlled enough to build on. OpenSec, the firm that found it, is reported to hold a
working exploit.
Are You Exposed to the NFS2ROOT Linux Flaw?
The advisory’s scope is precise: any Linux host serving NFSv4.1 or 4.2 on a reachable tcp/2049.
Version 4.2 is the default in current distributions, so “we run NFS” usually means “we are in
scope”.
The practical question for a small business is whether anything on the network is a Linux box
sharing folders. That is often a file server, a backup target or a storage appliance running a Linux
kernel.
Two things worth checking rather than assuming. A NAS or appliance is only affected if it shares
through the Linux kernel’s own NFS server, and a hypervisor is only affected if the same is true of
its storage stack. The way to settle it is to ask the vendor, not to guess.
The scariest version of this problem is a file server reachable from outside the office, or one
on a flat network where any compromised laptop can reach it. Both are common, and neither is
necessary.
Dealing with this at your office? Talk to a local IT expert →
Why the NFS2ROOT Linux Flaw Waited Twelve Years
The code was introduced in Linux 3.16, released in 2014, according to coverage of the disclosure.
Twelve years of production use did not find it, which says something about how rarely the affected
path is exercised rather than about anyone’s diligence.
Security work is like that. These are not mistakes that accumulate because people are careless;
they are the cost of building enormously complicated systems quickly.
The relevant lesson for a business is not that open-source software is unsafe. It is that
“nothing has gone wrong yet” is not evidence of safety, which is also true of the commercial
software and appliances on the same network.
NFS2ROOT Linux Flaw: The Fix and the Workaround
The fix is already in the kernel. Fixed versions are Linux 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1,
and the upstream commit is a small, targeted change to nfsd’s handling of a request’s reply buffer.
For distributions, the vendor’s own update is the one to install. Enterprise distributions
backport fixes rather than shipping a new kernel, so the kernel version number on the box is not the
version you compare against.
Red Hat, for instance, has issued advisories for multiple Enterprise Linux 8 streams.
Until the kernel is updated and the machine rebooted, the advisory’s own mitigation is a firewall
rule: block tcp/2049 from anything that does not need it. A reboot matters, because a kernel fix
does not take effect in a running system.

How to Protect Yourself From the NFS2ROOT Linux Flaw
- Find out whether you run an NFS server. Ask whoever manages the file shares.
If nobody knows, that is the finding. - Close port 2049 to the internet. NFS has never belonged on a public address.
If yours is exposed, fix that before anything else. - Restrict it internally too. Only the machines that mount a share need to reach
it. A file server open to every device is one compromised laptop away from a takeover. - Patch and reboot on a schedule. Verify the vendor’s advisory for your
distribution rather than judging by kernel version. - Assume you would not notice. A root compromise leaves the system looking
normal. Reviews of file-share permissions and logins are how you find out later.
We described the same pre-login attack shape in
the same pre-login attack shape in Java. The difference is that this one arrives
with complete control of the machine, so the copy of your data matters more: see
keeping a recoverable copy of your data.
What This Means If You Are Not Technical
- “Root” means total control. Not access to one folder. The ability to read,
change or delete anything on that server, and to install something that stays. - An attacker does not need a password. That is why “we have strong passwords”
does not answer this particular question. - The fix is routine; the exposure is not. Updating a server and rebooting it is
ordinary maintenance. Finding out afterwards that somebody had root access for two months is
not. - Your backup is the floor, not the plan. If a file server is taken over and
wiped, the difference between a bad week and a closed business is a copy nobody could reach.
If you are not sure whether any of this applies to your network,
Book a call with Nextek IT and we will check for NFS exposure and
patch level rather than guessing at it.
NFS2ROOT Linux Flaw Questions
What is CVE-2026-99362? A pre-authentication heap overflow in the Linux kernel’s
NFS server, nfsd, nicknamed NFS2ROOT. Reachable through tcp/2049, it can lead to root access on the
server.
Who is affected? Linux hosts serving NFSv4.1 or 4.2 on a reachable tcp/2049.
Version 4.2 is the default on current distributions.
Is there an exploit? The researchers who found it are reported to hold a working
exploit. The disclosure is recent, so the practical risk depends on whether your server is
reachable.
Which versions are fixed? Linux 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1. Distribution
vendors backport the fix, so follow their advisory and their package version.
Can I avoid rebooting? Not for a kernel fix. A patch that has not been rebooted
into is not a patch.
What if I cannot patch today? Block tcp/2049 with the firewall, from the internet
first and then from everything that does not mount a share. That is the mitigation the disclosure
itself recommends.
Does this affect Windows file shares? No. This is specifically the Linux kernel’s
NFS server.
Need IT that actually answers?
Nextek IT supports South Florida practices and businesses — medical, dental, legal, accounting — with managed IT, cybersecurity and HIPAA-focused support.
Talk to a Local IT Expert → Or call 954-780-7159Sources:
OpenSec’s advisory as forwarded to
oss-security, the upstream kernel
commit, CSO Online’s report and
BleepingComputer’s coverage. The
technical behaviour is OpenSec’s and the kernel commit’s; the age and origin of the bug, and the
CVSS 9.8 rating, are as reported in that coverage.