Linux kernel NFS security update (CVE-2026-99362): check if your server is exposed
A critical Linux kernel NFS server flaw (CVE-2026-99362) can give an attacker root access on machines that share files over NFS. Most single-VPS web servers do not use an NFS server at all — here is how to check yours in 30 seconds, turn off unused NFS ports, and install the kernel update.
ss -tulpn | grep -E ':(111|2049)\b'. If your server does not share folders over NFS, turn off nfs-kernel-server and rpcbind. If you do use NFS, install your Ubuntu or Debian kernel updates, reboot, and allow port 2049 only from private app servers.Are PHP web servers usually affected?
CVE-2026-99362 lives inside nfsd, the part of the Linux kernel that serves shared folders over the Network File System (NFS) protocol on port 2049.
If you host WordPress, Laravel, or Drupal on a normal standalone VPS with local disk storage, you probably do not run nfsd at all. Servers that are at risk include storage nodes sharing upload directories across multiple web servers, and machines where NFS packages were enabled by default in a base VM image.
1. Check whether your server is running NFS
Log in over SSH and run two quick checks:
sudo ss -tulpn | grep -E ':(111|2049|20048)\b'
systemctl status nfs-kernel-server rpcbind --no-pager
If both print nothing active and port 2049 is not listening, your server is not exposing an NFS daemon on the network. It is still good practice to keep your kernel updated, as shown in step 4.
Want to see every port open on your server right now? Follow how to check open ports on Ubuntu and Debian.
2. Turn off NFS if you do not share files over it
If nfs-kernel-server or rpcbind is running on a server that does not share files to other servers, stop and disable both immediately:
sudo systemctl disable --now nfs-kernel-server rpcbind rpcbind.socket
sudo systemctl mask rpcbind.socket
Check sudo ss -tulpn | grep -E ':(111|2049)\b' again to make sure the ports closed cleanly.
3. Block ports 111 and 2049 in UFW
Even on servers that legitimately export shared storage to another web server, NFS must never be open to the public internet. Allow TCP port 2049 only from the exact private IP addresses of your other servers, and deny public access:
sudo ufw deny 111/tcp
sudo ufw deny 111/udp
sudo ufw allow from 10.0.0.15 to any port 2049 proto tcp
sudo ufw status numbered
Need a refresher on safe firewall defaults? See our UFW firewall guide for Ubuntu and Debian.
4. Install the kernel update and reboot
Install all pending Ubuntu or Debian kernel security updates:
sudo apt update && sudo apt full-upgrade -y
uname -r
test -f /var/run/reboot-required && cat /var/run/reboot-required
Remember a crucial detail for kernel fixes: installing the package is not enough until the machine boots the new kernel. If /var/run/reboot-required exists, schedule a quick reboot so the patched kernel takes over, and keep automatic security updates on so future fixes land automatically.