blog

A critical flaw in the Linux NFS server has no Ubuntu fix yet. Here's the stopgap

If a Linux server in your business shares folders over NFS, this one's for you. A critical bug in the kernel's NFS server can be set off by someone who hasn't logged in, and Ubuntu doesn't have a fix out yet.

If you don't run an NFS server, you can relax. This only affects machines that share files over NFS, not ones that just connect to a share.

What happened

The flaw is CVE-2026-99362. The CVE record was published on 19 November and scores it 9.8 out of 10. It has since picked up a name, NFS2ROOT, from a write-up by OpenSec, and it's been doing the rounds this week.

The bug is in nfsd, the part of the Linux kernel that serves NFS shares. Red Hat's description says a remote client can cause an out-of-bounds write "by negotiating a minimal cached reply size". In plain English, a stranger who can reach the NFS port can make the kernel write past the end of a chunk of memory. Red Hat rates it critical because the attacker needs no account.

It only bites when the server offers NFS version 4.1 or 4.2.

According to the CVE record, the faulty code goes back to Linux 3.16, which came out in 2014. So it's been sitting there for about 12 years.

The good news is that, as of 24 November, Ostorlab's analysis says "No public proof of concept or exploitation is known." That gives you a little time, but not much. As Dev Partners wrote last week, AI can now turn a security patch into an attack, and the fix has been public since at least 19 November.

Does it affect you?

You need two things for this to matter: nfsd running, and NFSv4.1 or 4.2 switched on. Red Hat notes that default installs of its own Linux "do not run or enable" nfsd. Someone has to have set it up.

Places it might turn up in a small business: a Linux box sharing a folder to other servers, a backup server that other machines write to, or web servers sharing an uploads folder between them.

To check on the server itself:

systemctl status nfs-server
cat /proc/fs/nfsd/versions

If the service isn't running, you're not exposed. If it is, the second command lists the versions on offer. Anything showing +4.1 or +4.2 means you're in scope.

Also worth knowing: who can reach port 2049 on that server. If it's only open to two machines on your own network, the risk is far lower than if it's open to the internet.

Where the fixes are

The upstream fix is in Linux 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61 and 7.3.2, per the CVE record. Your distribution then has to package it, and that's where it gets uneven.

Ubuntu rates it Critical, but its CVE page still lists 24.04, 22.04 and its other supported releases as vulnerable. If you read my post on NoisyTCP, this will feel familiar.

Debian 13 is fixed, according to the security tracker. Debian 12's standard kernel isn't yet, though the newer 6.12 kernel offered for Debian 12 is.

Red Hat lists the fix commits, but I couldn't see package numbers from the page. Check with dnf updateinfo on your own server.

What to do this week

1. Find out if you run an NFS server at all. Use the two commands above on each Linux server. Most of you will stop here.

2. If you're on Debian 13, install the kernel update and reboot. sudo apt update && sudo apt full-upgrade, then reboot so the new kernel is the one actually running. Check with uname -r.

3. If you don't need NFS, turn it off. This is Red Hat's first suggestion:

sudo systemctl stop nfs-server
sudo systemctl disable nfs-server

4. If you need it, lock down port 2049. Only the machines that use the share should be able to reach it. Red Hat gives firewalld commands for this, and the same idea works in ufw or your cloud provider's firewall.

5. Or switch off NFSv4.1 and 4.2 until the fix lands. Ostorlab suggests adding vers4.1=n and vers4.2=n under the [nfsd] section of /etc/nfs.conf, then restarting nfs-server. Clients will need to use NFSv3 or 4.0 instead, so test that a client can still mount the share before you walk away.

6. Put a reminder in to undo it. Once your distribution ships the fix, install it, reboot, and put things back the way they were.

The bigger point

NFS is the sort of thing that gets set up once, works quietly for years, and drops off everyone's list. Which is exactly why it's worth knowing which of your servers run it.

If an NFS share sits underneath a bespoke app and you're not sure what changing it would break, the team at Dev Partners look after existing software and can check.

And if you'd rather someone else kept an eye on Ubuntu's page and did the reboot when the fix arrives, that's what my support retainers are for.