Cyber Security

Is Your File Server an Open Door? Securing Linux NFS After the NFS2ROOT Flaw

← Back to all articles

Does anything in your network share files over NFS? If you run Linux file servers, virtualisation storage, backup targets or some NAS appliances, the answer may be yes, even if nobody on the team has thought about NFS for years.

In late November researchers disclosed NFS2ROOT (CVE-2026-99362), a flaw in the NFS server built into the Linux kernel. It lets an attacker who can reach the server on its network port take full control of it, without a password, Cyber Press reports.

What we know about NFS2ROOT

  • It is serious. The flaw is rated 9.8 out of 10. A single connection to TCP port 2049 can be enough to corrupt the server's memory and gain root, with no login and no user interaction.
  • It is old. The bug was introduced in 2014 and has been in every Linux kernel since version 3.16, so it affects servers and appliances of every age.
  • It affects modern NFS. The problem sits in how the server handles NFS version 4.1 and 4.2 sessions, which many systems use by default.
  • Fixes exist, but not everywhere yet. Fixed upstream kernels include 6.12.117, 6.18.61 and 7.3.2, with fixes for older long-term branches too. On 26 November Ubuntu still listed its supported releases as vulnerable while updates were prepared, and Red Hat rates the flaw critical, though default Red Hat installations do not run the NFS server, grep.tips reports.
  • No attacks reported yet. The researchers have kept their exploit private, and the flaw had not been added to CISA's list of exploited vulnerabilities by 25 November. With the details public, that may not last.

Was AI involved? Unconfirmed, but AI is already finding bugs this old

OpenSec says its Antara tool found the bug and built the full attack chain with no human involvement, according to Cyber Press. That points to heavy automation, but the reports we have seen do not say whether AI was used, so we treat it as an open question.

What is not in doubt is that AI can find flaws like this. In April, Anthropic researcher Nicholas Carlini used Claude Code to find a remotely exploitable buffer overflow in the Linux kernel's NFS code that had been there since 2003, one of five kernel flaws confirmed from that work, InfoQ reported. That bug has been patched.

For defenders the lesson is the same either way. Code that has been trusted for a decade or more is now being read at machine speed, so more old flaws will surface, and the gap between disclosure and attack will shrink. The answer is not to wait for certainty about who found what, but to patch and reboot faster and keep services like NFS off networks that do not need them. We set out how to prioritise in Patching in the Age of AI-Found Bugs.

Why file servers are an easy target

File servers tend to sit in the middle of the network, trusted by everything around them, and they are rarely restarted. A kernel fix only takes effect after a reboot, so many servers will stay vulnerable until someone plans downtime. And a file server holds exactly what attackers want: shared documents, virtual machine disks and backups.

NAS appliances often run Linux underneath. No storage vendor had named its products as affected or unaffected in the reports we have seen, so check your vendor's security advisories rather than assuming either way. We looked at earlier NAS attacks in Is Your Office NAS Next?

Six steps for your file servers this week

  1. Find your NFS servers. List every Linux server, storage appliance and backup system that shares files over NFS, including ones set up for VMware or Proxmox storage.
  2. Patch and reboot. Install the kernel update from your distribution or storage vendor that names CVE-2026-99362, and schedule the reboot. Until you reboot, the old kernel is still running.
  3. Limit who can reach port 2049. Allow NFS only from the servers that need it, on a separate storage network, and make sure the rule covers IPv6 as well as IPv4.
  4. Turn off what you don't use. If a server no longer needs to share files over NFS, stop the NFS service. If you cannot patch yet, disabling NFS 4.1 and 4.2 is a stopgap, but test it first, as some features depend on them.
  5. Protect your backups. Keep at least one backup copy on immutable storage or offline, so a compromised file server cannot destroy your recovery point too.
  6. Watch for warning signs. Kernel crash messages mentioning nfsd, or bursts of short NFS sessions from a single address, are worth investigating.

Our view

NFS is one of those services that just works, which is why it gets forgotten. This flaw is a good reason to find out where it runs, who can reach it and when it was last patched. Most of the fix is good housekeeping that pays off long after this particular bug.

If you would like help reviewing your storage network, planning patching and reboot windows, or adding immutable backup storage, contact our team.

Drawing on reporting from Cyber Press, grep.tips, InfoQ.

Chat with us WhatsApp