News Digital & Internet News

NFS2ROOT Linux Flaw Lets Attackers Gain Root Without a Login

A long aisle of black server racks with blue cables and blinking lights in a data center
The NFS2ROOT flaw affects the Linux kernel's file-sharing server. Administrators should install kernel updates and reboot.
Table of Contents

NFS2ROOT Linux Flaw Lets Attackers Gain Root Without a Login

A critical flaw in the Linux kernel’s file-sharing server can let an attacker gain full control of a vulnerable machine without logging in at all. The flaw, tracked as CVE-2026-99362 and named NFS2ROOT, was described in new technical detail on Friday, November 27, 2026. It has sat undetected in Linux for 12 years. BleepingComputer and CSO Online reported the new details on November 27, 2026.

The flaw affects the Network File System, or NFS, server that comes with Linux. NFS lets computers share files over a network, so one machine can use folders stored on another as if they were its own. The bug is rated 9.8 out of 10 for severity, close to the highest possible score. There are no reports so far of attackers using it in real attacks, but security teams are being urged to patch now, before that changes.

How does the flaw work?

The flaw is a heap buffer overflow in the NFS server, a part of the kernel known as nfsd. The kernel is the core of the operating system, the layer that manages hardware and runs programs. A heap buffer is a small block of memory set aside to hold a piece of data. An overflow happens when a program writes more data than the block can hold, spilling into nearby memory.

In this case, an attacker sends specially crafted NFS requests that make the server write a reply into a buffer that is too small. That lets the attacker read kernel memory and get past a defence called KASLR, which hides the location of important code in memory so attackers cannot find it easily. The attacker then places a hidden command in a freed area of memory. When the attacker closes the NFS connection, the kernel runs that command with root privileges. Root is the highest level of access on a Linux system, the level that can read, change or delete anything.

The attack needs no password, no user account and no click from a victim. It is described as low complexity, which means it does not take rare skill to carry out once the method is known. The attacker only needs to reach the server’s TCP port 2049, the network door that NFS uses, over the internet or a local network.

Who is affected?

NFS2ROOT affects systems running a Linux kernel older than the fixed versions if the NFS server for version 4.1 or 4.2 is loaded and port 2049 can be reached. NFS version 4.1 and 4.2 are the default in many Linux distributions, which are the different packaged versions of the operating system, such as Ubuntu, Debian and Red Hat Enterprise Linux.

The fixed kernel versions are 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1. The flaw itself dates back to Linux kernel version 3.16, released in March 2014. That means it was present in the kernel for more than a decade before anyone spotted it.

Blue network cables connected to a server unit in a data centre
Blue cables plugged into a server unit. File servers, storage boxes and build machines are most at risk from NFS2ROOT. Administrators should check whether port 2049 is open to networks they do not trust.

Port 2049 sits open on file servers, network storage boxes known as NAS appliances, build farms where software is compiled, and Kubernetes storage nodes. Kubernetes is a popular system for running software in containers across many machines. NFS is also switched on in many embedded devices and storage boxes that run older kernels and can only be patched through firmware updates from the maker, which can take far longer to arrive.

How was the flaw found?

Two researchers found the same bug on their own. Jérémy Jean, a researcher with ANSSI, the French national cybersecurity agency, found it in August and sent a fix to the Linux kernel team. His fix was merged into the mainline kernel on September 14. Security firm OpenSec Intelligence also found the flaw using its AI-powered security testing system, which tries many inputs to find weak points in software. OpenSec shared a full remote-root exploit and its own patch with the kernel maintainers in late September.

Because it takes time for all supported kernel versions to receive backported fixes, the bug was not disclosed in public, and no CVE number was assigned, until November 19. A CVE number is the standard public ID for a known security flaw. OpenSec published its technical details this week, including a video showing the attack working in a test setup. The firm named the flaw NFS2ROOT and warned: “Kernel hardening does not remove the overflow. Patch every host.”

The use of an AI testing system to find the flaw shows how security research is changing. AI tools can probe software at a scale no human team can match, and security teams are already looking for ways to defend against AI-driven attacks that move faster than a person could.

What should system owners do?

The first step is to install the latest kernel security updates from your Linux distribution vendor and then reboot, so the patched kernel is the one actually running. A kernel fix does nothing until the machine boots into it. Distribution vendors such as Red Hat, SUSE, Debian and Ubuntu publish their own advisories, and system owners should follow those rather than relying on the version number alone.

A laptop screen showing programming code and debugging tools
A laptop screen showing programming code and debugging tools. Install the latest kernel security updates from your Linux vendor and reboot, so the patched kernel is the one actually running.

If a system cannot be patched right away, there are two workarounds. The first is to use firewall rules to block access to TCP port 2049 from any network you do not trust, so only trusted clients can reach the NFS server. The second is to stop the NFS server entirely if file sharing is not needed, by disabling the nfs-server service. A third option is to turn off NFS version 4.1 and 4.2 in the server settings and restart the service, but that also switches off some features, including parallel NFS.

There are no network signatures for NFS2ROOT attacks, which means common network monitoring tools will not spot the attack by its shape alone. OpenSec said security teams can still watch for warning signs: kernel warnings from a function called nfsd4_check_resp_size, shells started by kernel workers on a file server, bursts of short NFS version 4.1 sessions from a single source, and kernel crashes with nfsd4, svc or call_usermodehelper in the error text. Any of those signs should be treated as a reason to investigate at once, following the same first-hour steps used for any serious intrusion, since a successful break-in gives the attacker full control and there is little time to react once it happens.

NFS2ROOT is the latest in a long run of Linux privilege flaws disclosed this year, and the lesson is the same each time: the quiet old flaws in trusted code are often the most dangerous.

Frequently Asked Questions

What is NFS2ROOT?

NFS2ROOT is the name given to CVE-2026-99362, a critical flaw in the Linux kernel’s Network File System server. It lets an unauthenticated remote attacker gain root privileges on a vulnerable server. The flaw has existed since Linux kernel version 3.16, released in March 2014.

Which systems are vulnerable?

Systems running a Linux kernel older than the fixed versions, with the NFS server for version 4.1 or 4.2 loaded and TCP port 2049 reachable, are vulnerable. Fixed versions include 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1, along with fixes in older supported kernel lines.

Has the flaw been used in real attacks?

No. There are no reports of CVE-2026-99362 being exploited in the wild as of November 27, 2026. OpenSec has shown the attack working in a controlled test, and security teams are urged to patch before attackers start using it.

What should I do if I cannot patch right away?

Block TCP port 2049 from untrusted networks with firewall rules, so only known clients can reach the NFS server. If file sharing is not needed, stop and disable the NFS server. You can also turn off NFS version 4.1 and 4.2, though that switches off some features.

Sources

Caleb Cox
Digital & Internet News Correspondent

Caleb Cox

Caleb Cox covers digital and internet news for Time of Explorer — the platforms, trends and stories of the online world. He has followed the internet industry for seven years, from social platforms to the infrastructure underneath them.

View Full Author Profile →
Keep Reading

Related Stories

More in News →