Tech · AI · Cybersecurity · Gadgets | Tech news from the USA & the world

NFS2ROOT: 12-Year-Old Linux Flaw Lets Attackers Take Over NFS Servers

Linux command line on a dark screen

A critical vulnerability that sat unnoticed in the Linux kernel for 12 years can let attackers take full control of file servers over the network. Tracked as CVE-2026-99362 and nicknamed NFS2ROOT, the flaw affects the kernel’s built-in NFS server and was detailed by security firm OpenSec this week.

What the flaw does

NFS2ROOT is a heap buffer overflow in nfsd, the part of the Linux kernel that shares files over the Network File System protocol. An attacker who can reach the server on TCP port 2049 can send specially crafted requests that write past the end of a memory buffer. Chained together, that lets them read kernel memory, bypass a key protection called KASLR and run commands as root. No login and no user interaction are needed.

Who is affected

  • Linux systems running kernel 3.16 (released in 2014) or later without the fix.
  • Only when the NFS server (NFSv4.1 or 4.2) is running and port 2049 is reachable by the attacker.
  • Fixed in Linux 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1. Some distributions are still rolling out patched kernels.

Port 2049 is commonly open on file servers, NAS appliances, build machines and Kubernetes storage nodes, so those are the systems to check first. The bug was found by Jérémy Jean of France’s cybersecurity agency ANSSI, and OpenSec built a working exploit, which it shared privately with kernel maintainers. As of BleepingComputer’s report on November 27, there were no reports of attacks in the wild.

What to do now

  • Install your Linux vendor’s latest kernel update, then reboot so the patched kernel actually loads.
  • If you cannot patch yet, block port 2049 from the internet and allow only trusted clients.
  • If you do not need an NFS server, stop and disable the nfs-server service.
  • Watch for unusual kernel warnings from nfsd or shells started by kernel worker processes on file servers.

It is the latest in a busy month for server flaws, after the Drupal Fail2Install bug was exploited within a day of its fix.

Related gear

Samsung T7 Portable SSD (1TB)

If you run a home NAS or file server, keep an offline copy of your important files on a drive like this. If a server is ever compromised, an unplugged backup cannot be reached by attackers.

Affiliate link: DigroTech may earn a commission at no extra cost to you. Learn more.

Featured image: Representative photo via Unsplash

Newsletter

Get the day’s top tech stories in your inbox

AI, gadgets, security and big tech news, explained simply. Free. Unsubscribe anytime.

← Back

Thank you for your response. ✨

Thanks for subscribing. We will be in touch.