Skip to content
Quantum Secure Labs
Cybersecurity News

NFS2ROOT: a 12-year-old flaw in the Linux NFS server gives remote attackers root without authentication

NFS2ROOT (CVE-2026-99362), a critical flaw in the Linux kernel NFS server, lets a remote attacker with no credentials take control as root. It affects servers and NAS devices running NFS v4.1/4.2 with TCP port 2049 open…

By Quantum Secure Labs4 min read
Armario de servidores en un centro de datos con cables de red conectados
In this article

NFS2ROOT (CVE-2026-99362), a critical flaw in the Linux kernel NFS server, lets a remote attacker with no credentials take control as root. It affects servers and NAS devices running NFS v4.1/4.2 with TCP port 2049 open to the Internet. Check that port today, close or restrict it, and update the kernel.

The essentials

  • NFS2ROOT (CVE-2026-99362) is a heap memory overflow in nfsd, the Linux kernel NFS server, present since kernel 3.16 (March 2014), according to BleepingComputer.
  • It affects kernels before 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1, as long as nfsd (v4.1 or 4.2) is running and TCP port 2049 is reachable from the Internet.
  • Exploitation is low complexity and requires no authentication or user interaction. It allows reading kernel memory, bypassing KASLR and running a command as root.
  • It was found by Jérémy Jean of ANSSI, who submitted a fix in August. Security firm OpenSec named it NFS2ROOT and delivered a full remote root exploit and a patch to the NFSD maintainers in late September.
  • There are no reports of in-the-wild exploitation. There are also no network signatures to detect attacks.

Does this affect me if I don't even know what NFS is?

NFS is the protocol Linux uses to share folders over a network. The direct risk only exists if you, your IT provider or your hosting company run a Linux server, NAS or storage node that exposes port 2049 to the Internet. OpenSec notes, according to BleepingComputer, that this port is open on file servers, NAS devices, build farms and Kubernetes storage nodes.

It's not typical for a small business, but it happens: a backup server, a cloud development environment with loose network rules, a NAS with remote access enabled. If you have no servers of your own or rented, and no NAS, you're not directly affected.

If NFS is only used inside your network, the risk drops. Still, patch it in your normal update cycle.

Why not wait if nobody is exploiting it?

Three reasons. First: a full remote root exploit already exists, even if it's in researchers' hands. Second: there are no network signatures to detect attacks, so your detection tools won't warn you. Third: the outcome is full control of the server, and in a small business that server usually holds files or backups.

If you want to check whether anyone has tried, these are the signs the source lists:

  • Kernel warnings from nfsd4_check_resp_size.
  • Shells spawned by kernel workers on a file server.
  • Bursts of short NFSv4.1 sessions from a single source.
  • Kernel oopses with nfsd4_, svc_ or call_usermodehelper* traces.

What to do today

  1. Ask whoever manages your IT to check whether TCP port 2049 is reachable from outside, in the firewall or with an external scan.
  2. If it is, close it or restrict it to trusted IPs and networks. If you don't use NFS, stop and disable the nfs-server service.
  3. Install your distribution's kernel update (Ubuntu, Debian, RHEL, etc.) and reboot. Without a reboot, the vulnerable kernel stays loaded.
  4. If you have NAS devices or appliances, ask the vendor whether their firmware already includes the fixed kernel.
  5. Review those servers' logs for the signs listed in the previous section.

The version numbers above are upstream kernel versions. Each distribution's fixed versions may be numbered differently: follow your distribution's security advisory.

What it means for a small business

For most small businesses, NFS2ROOT comes down to one question for your provider: do we have anything with port 2049 open to the Internet? If the answer is no, apply the patch when it's due and get on with your day.

If the answer is yes, the real problem isn't this CVE. NFS is designed for trusted networks, and a file-sharing service open to the Internet is a risk with or without this bug. The fact that the flaw went unnoticed for twelve years shows that patching isn't enough: you need to reduce what you expose. Closing the port protects you from this flaw and from the ones nobody knows about yet.

Use this as a reason to ask your provider for an inventory of which of your services are visible from the Internet, and why. If nobody in your company can answer that, it's a gap worth closing, on your own or with outside cybersecurity support.

One caveat: all of this information comes from a single source, BleepingComputer. It hasn't been checked against the original OpenSec or kernel advisories.

Frequently asked questions

Does the attacker need a password?

No. They only need to reach TCP port 2049 on a vulnerable server running nfsd v4.1 or 4.2.

Is installing the kernel update enough?

No. You have to reboot the server; until then, the vulnerable kernel keeps running.

Is my NAS affected?

It may be if it exposes NFS to the Internet and its firmware uses an unfixed kernel. Ask the vendor and, in the meantime, close or restrict port 2049.

Sources

Worried about a threat like this one?

We review your exposure and show you how to protect yourself.

See our cybersecurity service

Cybersecurity News

Juniper Session Smart Conductor: critical flaw that grants root access is being exploited

Attackers are exploiting CVE-2026-103406, a critical flaw (CVSS 9.8) in Juniper Session Smart Conductor that lets them run commands as root remotely. It affects anyone using this Session Smart Router management console…

Cybersecurity News

Mitel MiCollab: CISA confirms five flaws exploited without authentication, two of them critical

On 25 November CISA confirmed that five flaws in Mitel MiCollab 10.3 and earlier are being exploited, all without authentication and two critical. It affects companies whose phone system or unified communications run on…

Cybersecurity News

Drupal confirms attacks on Fail2Install, a critical installer flaw that lets attackers take over websites

Attackers are exploiting Fail2Install (CVE-2026-132165), a critical flaw in the Drupal core installer that lets anyone, without authentication, reinstall your site, take control of it or run code. It affects any…

Want to apply these ideas to your business?

Tell us about your case and we'll show you how to apply these strategies to your project.