NFS2ROOT CVE-2026-99362: Linux NFS Security Checklist
Originally published on Naveed Ahmed's Engineering Blog. NFS servers are easy to overlook during infrastructure security reviews. They're often deployed as shared storage for applications, backups, build systems, and K
Originally published on Naveed Ahmed's Engineering Blog.
NFS servers are easy to overlook during infrastructure security reviews.
They're often deployed as shared storage for applications, backups, build systems, and Kubernetes persistent volumes.
But they also run a network-facing service inside the Linux kernel.
NFS2ROOT, tracked as CVE-2026-99362, is a reminder that storage infrastructure deserves the same attention as application servers.
1. What Is NFS2ROOT?
NFS2ROOT is a critical out-of-bounds write vulnerability in the Linux kernel's NFS server, nfsd.
The affected code processes NFSv4.1 and NFSv4.2 session requests.
Researchers demonstrated a remote-root exploit chain, with a reported CVSS score of 9.8.
This is not a generic vulnerability affecting every system with NFS client utilities installed.
The relevant question is whether a host runs an affected NFS server that can be reached over the network.
2. Check the Running Kernel
Start with:
uname -r
Check the kernel against the security advisories for your Linux distribution.
Upstream fixes have been published across supported branches, but vendors may backport the patch into their own kernel packages.
Don't rely exclusively on a numerical comparison of uname -r.
3. Check Whether NFS Is Running
Inspect TCP port 2049:
sudo ss -ltnp 'sport = :2049'
Inspect active NFS versions:
cat /proc/fs/nfsd/versions
On an active NFS server, check for +4.1 or +4.2.
You can also review NFS service status:
systemctl status nfs-server
These are local diagnostic commands for systems you administer.
Check network-level reachability separately. A listening service is not necessarily reachable from every network.
4. Prioritize Exposed Storage Infrastructure
Check systems such as:
- Self-managed Linux file servers
- NAS devices running affected Linux kernels
- Kubernetes NFS storage servers
- Virtual machine and backup infrastructure
- Build systems using shared NFS exports
The most urgent cases are vulnerable NFS servers reachable from untrusted networks.
Also assess internal reachability, especially where compromised workloads could access storage services.
5. Apply the Vendor Security Fix
The permanent remediation is a patched Linux kernel.
Use the official security advisory for your distribution to select the correct package.
Plan a controlled reboot to activate the updated kernel.
After reboot:
uname -r
Confirm the running kernel contains the fix.
For NAS appliances, follow the vendor's firmware and operating-system update process.
6. If You Cannot Patch Immediately
Restrict TCP port 2049 to approved NFS clients or storage networks.
If NFS is not needed, consider stopping the server.
Disabling NFSv4.1 and v4.2 may also reduce exposure where the remaining protocol configuration is supported.
Before making changes, evaluate the effect on mounted filesystems and active applications.
Unexpectedly interrupting an NFS server can affect application availability and data operations.
7. Kubernetes Considerations
A Kubernetes workload using an NFS-backed PersistentVolume does not necessarily mean that the worker node runs a vulnerable NFS server.
Identify the actual NFS server.
It may be a separate VM, a NAS appliance, a Kubernetes storage Pod, or a managed storage service.
Check the server's kernel and patch status.
Review node networking and firewall controls.
Pod NetworkPolicy enforcement may not cover NFS connections originating from a node's kernel-mounted filesystem.
8. Investigate Suspicious Activity
Relevant indicators can include:
- Unexpected
nfsdkernel warnings - Kernel memory corruption messages
- Unusual system process execution
- Unexpected changes to privileged accounts
- Suspicious network connections from storage hosts
A kernel warning alone does not prove compromise.
Preserve evidence if you suspect exploitation.
Read the Full NFS2ROOT Guide
My complete article covers the underlying vulnerability, affected kernel branches, Linux and NAS assessment, Kubernetes storage risks, mitigations, and incident-response considerations.
Read NFS2ROOT: Linux Kernel RCE & Production Fix
Research and advisories:
How does your team verify kernel security updates on NFS servers?
Written by Naveed Ahmed â DevOps & Platform Engineering
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes â full credit and traffic to the original publisher.