CVE-2026-99362, also called NFS2ROOT, is a memory-corruption vulnerability in the Linux kernel’s NFS server; OpenSec reports demonstrating unauthenticated remote root access. It affects vulnerable hosts serving NFSv4.1 or NFSv4.2 to an attacker who can reach them—not every Linux server running a web store. Start by establishing whether your store host actually serves NFS. (raw.githubusercontent.com)
Key takeaways
- Check the server role first: a host that does not operate as an NFS server is not exposed to this flaw. (access.redhat.com)
- Reachability matters: restrict TCP port 2049 to necessary clients, including on private networks. (access.redhat.com)
- Use your distribution’s fixed kernel: distribution backports make upstream version comparisons insufficient. (docs.redhat.com)
- Verify after reboot: installing a kernel package does not mean that kernel is running. (ubuntu.com)
What changed in the Linux NFS server
The flaw involves reply-cache handling in nfsd, the kernel’s NFS server. Incorrect buffer-limit checks can allow a reply to overwrite kernel heap memory. The fix checks that the reply fits before accepting the affected operation. (raw.githubusercontent.com)
The Linux CVE record lists upstream fixes including 6.1.193, 6.6.163, 6.12.117, 6.18.61 and 7.3.2, with fixes also recorded for older maintained branches. These are branch-specific references, not instructions to replace your distribution kernel with a manually downloaded mainline build. (raw.githubusercontent.com)
Why it matters for stores and PHP sites
For incident planning, we would treat possible root access as a host-wide problem, not just a PHP application problem. Include store configuration, database credentials, deployment keys and payment-integration secrets in your investigation scope; containment, credential rotation and clean recovery may be necessary if compromise is confirmed. (cisa.gov)
Check the storage server as well as the web server. A store host that only mounts an NFS share is an NFS client, which this vulnerability does not affect in that role; the Linux machine providing the share needs its own assessment. (support.tuxcare.com)
Step 1: Identify NFS services and the running kernel
Run the assessment on the actual server or VM hosting the service. For managed hosting, ask your provider to perform it and identify the kernel package that addresses this CVE.
Record the operating-system release and running kernel:
cat /etc/os-release
uname -r
Check both common NFS server unit names. Ubuntu documents nfs-kernel-server.service; Red Hat uses nfs-server. A missing unit name alone is not a complete assessment. (docs.redhat.com)
systemctl status nfs-server.service nfs-kernel-server.service --no-pager
systemctl is-enabled nfs-server.service nfs-kernel-server.service
Next, inspect the enabled server protocol versions and the TCP listener. In /proc/fs/nfsd/versions, +4.1 or +4.2 means that protocol version is enabled; a minus sign means disabled. If the file is absent, record that result and continue checking rather than starting NFS just to inspect it. (docs.redhat.com)
cat /proc/fs/nfsd/versions
sudo ss -ltn 'sport = :2049'
Review the current exports, if the NFS utilities are already installed. exportfs -v lists exported directories and their options. (manpages.ubuntu.com)
sudo exportfs -v
Your exposure checklist is:
- Does the running kernel lack the vendor’s fix?
- Is the kernel NFS server running?
- Is NFSv4.1 or NFSv4.2 enabled?
- Can an untrusted machine reach TCP port 2049?
Treat all four together as the actionable exposure condition. A local listening socket identifies a listener, not the complete firewall or routing path. Internet exposure is not required: an attacker with access to the storage network may also reach the service. (opensec.in)
Step 2: Stop unnecessary NFS or restrict access
Before stopping anything, identify which clients depend on the exports. Stopping the NFS server interrupts active client operations. If this machine does not need to share files, stop and disable the matching service. (access.redhat.com)
For a system using nfs-server.service:
sudo systemctl disable --now nfs-server.service
For a system using nfs-kernel-server.service:
sudo systemctl disable --now nfs-kernel-server.service
Use the unit confirmed in Step 1, then repeat the service and listener checks. Ubuntu’s documentation confirms the alternative unit name and recommends systemd service controls for enabling or disabling NFS. (ubuntu.com)
If NFS must remain available, allow TCP 2049 only from the clients that actually need it. This reduces exposure but does not fix the kernel bug or protect against a compromised allowed client. (support.tuxcare.com)
On a firewalld-managed host, inspect both effective and saved configuration:
sudo firewall-cmd --get-active-zones
sudo firewall-cmd --list-all-zones
sudo firewall-cmd --permanent --list-all-zones
Check the zones bound to your interfaces and source networks. Runtime and permanent configurations are separate; a change made only at runtime can disappear after reboot. (firewalld.org)
We recommend this change checklist:
- Remove broad NFS allowances and unrestricted port-2049 rules.
- Add narrowly scoped allowances for required client addresses.
- Review IPv4, IPv6 and cloud/network firewall rules.
- Test access from an allowed client and an unauthorized network.
- Confirm the working restrictions persist.
Keep console access available while changing firewall rules. Use your existing firewall manager rather than introducing a second, competing ruleset. Firewalld supports testing runtime changes before saving the working configuration. (firewalld.org)
Step 3: Install your distribution’s fixed kernel
Checked November 30, 2026: Debian’s tracker lists fixed source-package versions including 6.1.192-3 for bookworm security and 6.12.117-1 for trixie. These are source-package versions, not necessarily the string printed by uname -r. (security-tracker.debian.org)
At the same check, Ubuntu’s CVE page—last updated November 25—still marked the main linux package for Ubuntu 22.04 and 24.04 as vulnerable. Check your exact release and kernel flavour before claiming remediation; a successful package update is not proof that a fix was available. (ubuntu.com)
Distribution kernels receive backported fixes without adopting every newer upstream version number. Match your installed build to the vendor advisory, not just the first part of its version. (docs.redhat.com)
Before maintenance, we recommend confirming backups, console access and a store maintenance window. If you already suspect compromise, preserve evidence and involve your incident responder before rebooting or making extensive changes. (cisa.gov)
On Ubuntu, update packages through the configured repositories and review the proposed transaction:
sudo apt update
sudo apt upgrade
Confirm that the appropriate kernel meta-package remains installed and that the transaction includes the vendor-fixed kernel. Cloud images may use a different kernel flavour from a standard server installation. (ubuntu.com)
On a RHEL system using the standard kernel package:
sudo dnf update kernel
Red Hat documents this procedure for updating the kernel and its dependencies. Other distributions and alternative kernel flavours require their corresponding package instructions. If your vendor has not released a fix, retain the NFS restrictions and monitor its advisory. (docs.redhat.com)
Related reading: our Linux TCP Kernel RCE patch-and-verification checklist.
Step 4: Reboot and verify the running kernel
Once the fixed package is installed and your maintenance window begins, reboot. Normal kernel package installation requires a reboot to run the replacement kernel. (ubuntu.com)
sudo reboot
After reconnecting, record:
uname -r
Compare the result with the vendor-fixed build. On RHEL, grubby --default-kernel can also show the default boot kernel, but verify the running kernel rather than relying only on the boot setting. (docs.redhat.com)
Repeat the NFS service, protocol and listener checks. Confirm that disabled sharing stayed disabled and required sharing remains restricted. Persistent firewall configuration matters here because it is loaded again at boot. (ubuntu.com)
For store validation, we recommend testing storefront access, administration, image uploads, scheduled jobs and a sandbox checkout. Record the running kernel, advisory reference, reboot time and test results in your maintenance ticket.
Step 5: Review signs of possible compromise
OpenSec identifies suspicious signals including nfsd4_check_resp_size warnings, NFS-related kernel oopses, shells spawned by kernel workers and bursts of short NFSv4.1 sessions. These are investigation leads, not standalone proof of exploitation. (opensec.in)
Review kernel logs for the current boot:
sudo journalctl -k -b --no-pager |
grep -Ei 'nfsd4_check_resp_size|nfsd4_|call_usermodehelper|oops'
journalctl -k -b limits this check to kernel messages from the current boot. Review retained earlier boots and centralized logs too; an empty result is not a clean bill of health. (freedesktop.org)
If evidence suggests compromise, isolate the host, preserve evidence and arrange clean recovery. Patching closes a vulnerability; it does not remove persistence or revoke stolen credentials. (cisa.gov)
FAQ
Does NFS2ROOT affect every Linux web server?
No. This flaw concerns the kernel NFS server. Hosts not operating as NFS servers are not exposed through this vulnerability. (access.redhat.com)
Is a private-network NFS server safe?
Not automatically. Restrict access to necessary clients and patch it: an attacker able to reach the service from that network remains relevant. (access.redhat.com)
Can I avoid rebooting with live patching?
Only if your provider explicitly confirms coverage for this CVE on your running kernel and you verify application. Do not assume that a live-patching subscription covers every kernel issue. Otherwise, install the fixed kernel and reboot. (ubuntu.com)
Sources
- Linux CVE record: CVE-2026-99362
- OpenSec: NFS2ROOT research and defensive checks
- Red Hat: exposure and mitigation guidance
- Debian security tracker
- Ubuntu CVE tracker
- Ubuntu: NFS administration
- Ubuntu: cloud kernels and reboot requirements
- Red Hat: kernel management and verification
- firewalld command reference
- exportfs manual
- systemd: journalctl reference
- TuxCare: NFS2ROOT exposure and patch status
- CISA: incident and vulnerability response playbooks
- CISA: preserving evidence during incident response

