NFS2ROOT Linux Vulnerability Fix: Check If You’re Exposed
NFS2ROOT (CVE-2026-99362) is a heap overflow in the Linux kernel NFS server that can give a remote attacker root. You are only exposed if the machine runs nfsd with NFSv4.1 or 4.2 and TCP port 2049 can be reached. Stop NFS if you don't need it, restrict port 2049 if you do, then install your vendor's kernel update and reboot.
If you look after a Linux file server for an office, a school or a client, give this ten minutes today. NFS2ROOT is the name OpenSec gave to CVE-2026-99362, a heap buffer overflow in the Linux kernel NFS server (nfsd), according to BleepingComputer, 27 Nov 2026.
A quick note on sources. I could not open the OpenSec advisory or the ComputingForGeeks guide (both returned errors for me), so this article rests on BleepingComputer, Ubuntu and Red Hat. Today is 30 Nov 2026, and vendor statuses below date from 25 and 27 Nov. Recheck them before you act.
What is the NFS2ROOT vulnerability?
An unprivileged remote attacker sends crafted requests that make nfsd write past the end of a buffer. According to BleepingComputer, that allows kernel memory reads and a KASLR bypass. A callback is then placed in freed memory, and the kernel runs the embedded command as root when the attacker closes the connection. No user interaction is needed.
The root cause, per the Ubuntu CVE page, is in nfsd4_sequence(). It shrinks the reply buffer to the session’s cached reply limit before accepting the slot seqid. A client can negotiate that limit very small, and a crafted COMPOUND request then causes an out-of-bounds write.
Scores differ by vendor. Ubuntu rates it Critical, CVSS 9.8. Red Hat also says Critical, but with a CVSS 3.1 score of 9.4. Quote the vendor you actually use.
Which Linux kernels are affected?
Per BleepingComputer, kernels older than 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1 are affected. That applies when nfsd is loaded and running with NFSv4.1 or 4.2, and TCP port 2049 is reachable. The bug dates back to Linux 3.16, from March 2014.
Those are upstream numbers. Distros backport fixes into their own kernels, so the version string you see may not line up with them. Ubuntu tracks status per package, not per upstream version.
On Ubuntu, the tracker (updated 25 Nov 2026) showed:
- Vulnerable: 24.04, 22.04, 20.04, 18.04 and 16.04, plus many cloud kernels (aws, azure, gcp, oracle).
- Fix in progress: 26.04 LTS (pending in 7.0.0-45.45) and 26.10 (7.3.0-12.13).
- Not affected: 14.04.
For Red Hat-family systems, use the Red Hat CVE page. Its page had no errata table when I looked, so I can’t give you fixed package versions for RHEL, Debian or CentOS 7. Check your own distro’s security tracker.
Am I actually exposed?
Red Hat says default RHEL installs don’t run the NFS server. Only systems configured to export NFSv4.1/4.2 shares are exposed (Red Hat). The flaw is in nfsd, the server side.
What about machines that only mount shares? BleepingComputer describes a server-side bug. A search summary of the ComputingForGeeks guide also says clients are not affected, but I couldn’t read that guide myself. My advice: don’t lose sleep over client-only machines, but do confirm they aren’t also exporting anything.
Picture a small office in Kampala. One old Linux box under a desk shares a folder with a few PCs, and someone set it up years ago and left. Boxes like that are the ones to find. I don’t have local data on how common they are, so go and look rather than assume.
If you rent a VPS or shared hosting, I found nothing confirming whether local hosts expose NFS. Ask your provider whether any NFS service is reachable on your plan.
How do I check if my server is exposed?
- Is the NFS server running? Run
systemctl status nfs-server. Red Hat uses this service name. - Is anything listening on port 2049? Run
ss -tlnp | grep 2049. This is a standard Linux command, not from the advisories. It shows what is really listening, so don’t rely on step 1 alone. - Who can reach it? Check your firewall rules with
firewall-cmd --list-all. Then, only if you own the server or have written permission, test from another machine withnc -zv SERVER_IP 2049. A port open only on your office network is a smaller risk than one open to the internet, but any infected PC on that network can still reach it. - Find the installed kernel package version. On Debian or Ubuntu, run
dpkg -l 'linux-image*' | grep ^ii. On RHEL-family systems, runrpm -q kernel. Compare that package version with your vendor’s tracker. Don’t compareuname -ragainst it, because that shows the release string of the running kernel, which may not match the package version the tracker lists.
How do I mitigate it right now?
Red Hat’s guidance, from its CVE page, has two paths.
If you don’t need NFS, stop and disable it:
systemctl stop nfs-server
systemctl disable nfs-server
If you do need NFS, restrict port 2049 to trusted hosts with firewalld. Red Hat warns that stopping the service ends active sessions, and reloading firewalld cuts off any client that isn’t explicitly allowed.
The firewalld syntax below is general practice, not from the sources. Your zones may differ, so adapt it. This example allows one office subnet (change 192.168.1.0/24 to yours):
firewall-cmd --list-all
firewall-cmd --zone=public --remove-service=nfs
firewall-cmd --zone=public --add-rich-rule='rule family="ipv4" source address="192.168.1.0/24" port port="2049" protocol="tcp" accept'
Those commands change the runtime config only. If you get it wrong, a reload brings back the old rules. Keep your SSH session open, open a second one, and check that SSH and one NFS client still work. Only then make it permanent:
firewall-cmd --runtime-to-permanent
Do this outside working hours, or warn users first. A dropped NFS mount in the middle of someone’s work is no fun.
How do I patch it?
Install your vendor’s kernel update, then reboot. BleepingComputer names that as the fix. The new kernel only loads after the reboot.
If you’re on a metered data bundle, run apt-get -s upgrade (Debian/Ubuntu) first to see what it will pull. If you have power cuts, schedule the reboot when the UPS is charged or the power is stable.
After the reboot, run uname -r and check that it matches the newest kernel package you installed. Then confirm that package version against your vendor’s tracker. If your distro has no fixed kernel yet, keep the mitigation on and check again. One search summary says stock CentOS 7 has no update (GetPageSpeed), but I couldn’t read the page, so verify it.
How would I know if someone tried it?
OpenSec says there are no network signatures for this attack, per BleepingComputer. Don’t wait for an IDS alert. Look at the server itself for:
- Kernel warnings from
nfsd4_check_resp_size - Shells spawned by kernel workers on a file server
- Bursts of short NFSv4.1 sessions from one source
- Oopses with
nfsd4_*,svc_*orcall_usermodehelper*frames
Is NFS2ROOT being exploited?
BleepingComputer reported no known exploitation in the wild as of 27 Nov 2026. Sources disagree on whether exploit code is public. One search summary claimed there was none as of 26 Nov, which I couldn’t verify.
What is clear is that Jérémy Jean of ANSSI found the bug and submitted a fix in August. OpenSec then gave NFSD maintainers a full remote-root exploit and a patch in late September. I’d patch without waiting to see if the situation changes.
Uganda and East Africa: anything specific?
I found no advisory from UCC, NITA-U or other Ugandan bodies on this flaw, as of 30 Nov 2026. I also didn’t research breach-reporting rules, so if a server holding customer data may have been hit, get proper advice rather than guessing.
Common mistakes
- Searching just “NFS2ROOT”. Results often show unrelated, older NFS CVEs. The ID you want is CVE-2026-99362.
- Patching without a reboot. The server stays vulnerable until the new kernel loads.
- Changing firewall rules permanently before testing. Use runtime first.
- Forgetting cloud images. Ubuntu lists aws, azure, gcp and oracle kernels separately.
Frequently asked questions
Does NFS2ROOT affect shared hosting or a VPS?
I couldn't confirm that. The flaw needs nfsd running and port 2049 reachable, so ask your provider whether any NFS server is exposed on your plan. On your own VPS, run the checks above.
Is a fixed kernel available yet?
It depends on the distro. As of Ubuntu's 25 Nov 2026 update, several supported releases were still marked vulnerable and 26.04 and 26.10 had fixes in progress. Check your vendor's tracker today.
Can I just block port 2049 on the whole server?
Only if no clients need NFS. Otherwise allow your trusted hosts and block the rest, and test at runtime first.
Which CVSS score is right, 9.4 or 9.8?
Both are published. Red Hat gives 9.4 and Ubuntu gives 9.8. Both call it Critical.
Where can I read the original advisory?
OpenSec published it, but I couldn't open it. BleepingComputer's report summarises it and links the upstream fix.
Sources
- BleepingComputer: New NFS2ROOT Linux flaw can let attackers gain root privileges (27 Nov 2026; statuses may have changed since, checked 30 Nov 2026)
- Ubuntu CVE-2026-99362 (updated 25 Nov 2026; recheck, may be stale as of 30 Nov 2026)
- Red Hat CVE-2026-99362 (no date shown; checked 30 Nov 2026)
- ComputingForGeeks: NFS2ROOT (search summary only, page not read)
- GetPageSpeed: NFS2ROOT on CentOS 7 (search summary only, page not read)