Skip to content

Field notes · Cybersecurity

NFS2ROOT: Is Your Linux File Server Exposed? Check nfsd, Check Port 2049, Then Patch and Reboot

CVE-2026-99362 lets anyone who can reach port 2049 corrupt kernel memory on a Linux NFS server. Check if nfsd runs, check 2049, then patch and reboot.

Table of Contents
Three plain tiles in a row joined by a thin line, reading is nfsd running, is 2049 reachable, and patch and reboot. The first tile is marked with one orange fill.

For anyone who shares folders over NFS from a Linux machine: a homelab file server, a backupA copy of data stored separately from the original, used to restore systems and files after data loss from hardware failure, deletion, ransomware, or disaster. Read more → target, or NFSA network file sharing protocol that lets you access files on a remote server as if they were on your local machine. Read more → storage for Proxmox or KubernetesAn open-source platform for automating the deployment, scaling, and management of containerized applications across clusters of machines. Read more →. Research captured the output below on bn-dev, our build server, which does not run an NFS server. We did not run any exploit, and we did not check a vulnerable or patched NFS server. We checked vendor status at 7:26 to 7:29 AM ET on Wed, Dec 2, 2026.

The short version

On Linux, the NFS server runs inside the kernel as nfsd. CVEA standardized identifier for publicly known cybersecurity vulnerabilities, enabling organizations to track and prioritize security patches. Read more →-2026-99362 is a bug in the part of nfsd that handles NFSv4.1 sessions. According to the kernel CVE team’s record, published Nov 19, a client can make the server write past the end of a kernelThe core of an operating system that runs with full hardware control and decides how every program gets CPU time, memory, and device access. Read more → memory buffer, and the client picks most of the bytes. It doesn’t need an account. It needs a TCPA transport protocol that guarantees reliable, ordered delivery of data between two devices by establishing a connection before sending. Read more → connection to portA numbered endpoint on a device that identifies a specific application or service, allowing multiple network services to run on the same IP address. Read more → 2049.

Who says what:

  • The Linux kernel CVE team rates it 9.8 out of 10. NVD had not scored it. Its status was still “Received” at 7:26 AM ET.
  • Red Hat rates it 9.4 and says an attacker could “potentially execute arbitrary code.” Debian’s DLA-4942-1 says it “could result in remote code execution.”
  • OpenSec, the firm that named it NFS2ROOT, says it chained the bug into a root shell. It kept that exploit private. Code in the kernel controls the whole machine, so the risk is real, but the root shell is the researchers’ claim, not a vendor finding.
  • CISA’s Known Exploited Vulnerabilities catalog did not list it at 7:26 AM ET, catalog version 2026.11.30. TrueNAS’s statement, dated Nov 30, says no exploitation had been reported.

Your first step: find out whether the NFS server is running at all. A version number alone can mislead you. The running service tells you whether the bug can be reached.

Check in this order

1. Is the NFS server running?

Most Linux machines don’t run one. Red Hat says default RHEL installs “do not run or enable the in-kernel NFS server daemon (nfsd),” and that machines that only mount shares are not exposed. On your server, run:

bash
systemctl status nfs-server nfs-kernel-server
cat /proc/fs/nfsd/versions
sudo ss -tulnp | grep 2049

nfs-server is the name on RHEL and Fedora, nfs-kernel-server on Debian and Ubuntu. If /proc/fs/nfsd doesn’t exist, nfsd isn’t running. If it exists, versions lists what the server speaks. A +4.1 or +4.2 there is the version this bug lives in. lsmod | grep -w nfsd shows whether the module is loaded.

This is what a host without nfsd looks like:

$ uname -r
7.0.0-44-generic
[exit 0]

$ grep -w nfsd /proc/modules
[exit 1]

$ ls -d /sys/module/nfsd
ls: cannot access '/sys/module/nfsd': No such file or directory
[exit 2]

$ cat /proc/fs/nfsd/versions
cat: /proc/fs/nfsd/versions: No such file or directory
[exit 1]

$ cat /proc/fs/nfsd/threads
cat: /proc/fs/nfsd/threads: No such file or directory
[exit 1]

$ grep -w nfsd /proc/filesystems
[exit 1]

$ awk 'NR>1{split($2,a,":"); if (a[2]=="0801"||a[2]=="006F") print FILENAME, $2, $4}' /proc/net/tcp /proc/net/tcp6 /proc/net/udp /proc/net/udp6; echo matches-printed-above
matches-printed-above
[exit 0]

$ timeout 3 bash -c 'echo > /dev/tcp/127.0.0.1/2049'
bash: connect: Connection refused
bash: line 1: /dev/tcp/127.0.0.1/2049: Connection refused
[exit 1]

$ command -v ss rpcinfo exportfs || echo 'not in image'
not in image
[exit 0]

Captured on bn-dev, Nov 30, 2026 at 10:49:33 UTC, 5:49 AM ET, inside a throwaway docker run --rm --network host --read-only ubuntu:26.04 container with no added capabilities and nothing installed. Image OS Ubuntu 26.04.1 LTS, host kernel 7.0.0-44-generic, which the container shares. ss and rpcinfo aren’t in that image, so the listener check reads the host’s socket tables in /proc/net directly. 2049 is 0801 in hex and 111 is 006F.

The nfsd module isn’t loaded, /proc/fs/nfsd doesn’t exist, no socket sits on 2049 or 111, and a connection to 2049 is refused. Here’s the useful part. Ubuntu lists 26.04 kernels as still vulnerable, so by version alone this host looks exposed. It isn’t, because nothing is listening. Check the service before you worry about the version.

2. Can anything reach port 2049?

If nfsd is running, look at the ss line. 0.0.0.0:2049 or [::]:2049 means it listens on every interface, IPv4 or IPv6. From another machine on the network, nc -zv <server-ip> 2049 tells you whether it answers. Try IPv6 too if you use it.

Count what’s on the same network as that port: other PCs, IoT gadgets, containers and VMs on the same host. A firewall at your router does nothing about a device already inside.

3. Patch and reboot

Install your distro’s kernel update and reboot. The running kernel is what counts, so the reboot is the fix. uname -r shows the running kernel. Compare the package version, dpkg -l 'linux-image*' on Debian and Ubuntu or rpm -q kernel on RHEL and its rebuilds, with your distro’s advisory.

Don’t compare uname -r against the upstream fixed versions. Distros backport, which means they copy the fix into an older version. Debian’s 6.1.192-3 is fixed even though the upstream fix landed in 6.1.193. We hit the same trap in our nginx HTTP/2 check-and-fix.

Status at 7:26 AM ET today:

  • Ubuntu has no fixed kernel yet. Its CVE page, last updated Dec 1, marks 26.04 LTS and 26.10 “Vulnerable, work in progress,” with fixes in progress in 7.0.0-45.45 and 7.3.0-12.13. Neither is released. It marks 24.04, 22.04, 20.04, 18.04 and 16.04 “Vulnerable.” Ubuntu rates it Critical.
  • Debian has fixes for bookworm, 6.1.192-3, and trixie, 6.12.117-1, per its security tracker.
  • Red Hat has fixed kernels for RHEL 8, 9 and 10, with RHEL 9 and RHEL 10 errata dated Dec 2 and Dec 1. RHEL 6 and 7 are still listed as affected.
  • SUSE lists the issue as “Pending” overall, with fixes out for some products. Check your product on SUSE’s page.

If you can’t patch today

These are stopgaps, not fixes:

  • Don’t need NFS? Stop and disable it with sudo systemctl disable --now nfs-server, or nfs-kernel-server on Debian and Ubuntu. Red Hat recommends this and warns that it ends active NFS sessions.
  • Need it? Limit 2049 to known clients with your firewall. Red Hat and SUSE both suggest it. TrueNAS points out that it doesn’t stop devices on the same network segment, or apps and VMs on the same host.
  • Clients can use NFSv3? OpenSec suggests turning off 4.1 and 4.2 in /etc/nfs.conf. That’s a researcher stopgap, not a vendor fix. It will break clients that mount with NFSv4.1 or 4.2. On TrueNAS, its statement says to change the protocol in the NFS service settings instead of editing that file.

NAS boxes

TrueNAS’s impact statement, dated Nov 30, says TrueNAS Community Edition and Enterprise 25.10.8 and earlier are affected when the NFS service is running with NFSv4, that TrueNAS CORE uses FreeBSD’s NFS server instead, and that 25.10.9 will carry the fix. That’s TrueNAS’s assessment. Read it if you run TrueNAS. Synology’s advisory page had no entry for this CVE at 7:29 AM ET. We can’t say whether Synology devices are affected. Ask Synology.

Go deeper: fixed versions, the bug in plain terms, and what we could not confirm

Upstream fixed versions, from the kernel CVE team’s announcement. The bug arrived in 3.16, in 2014.

BranchFixed in
5.105.10.275
5.155.15.226
6.16.1.193
6.66.6.163
6.126.12.117
6.186.18.61
7.37.3.2
mainline7.4-rc1

Distro packages, checked 7:26 AM ET Dec 2:

DistroStatus
Debian 12 bookwormFixed in linux 6.1.192-3, DLA-4942-1. linux-6.12 fixed in 6.12.117-1~deb12u1, DLA-4927-1.
Debian 13 trixieFixed in 6.12.117-1. The security suite has 6.12.118-1.
Debian forky, sidFixed from 7.3.3-1.
Ubuntu 26.04 LTS, 26.10Vulnerable, work in progress in 7.0.0-45.45 and 7.3.0-12.13.
Ubuntu 24.04 and olderVulnerable. 14.04 not affected.
RHEL 10kernel-6.12.0-264.22.1.el10_3, RHSA-2026:105695. EUS 10.0 and 10.2 have their own errata.
RHEL 9kernel-5.14.0-741.29.1.el9_9, RHSA-2026:105696. EUS and SAP streams have their own errata.
RHEL 8kernel-4.18.0-553.190.1.el8_10, RHSA-2026:103817. kernel-rt in RHSA-2026:103838.
RHEL 6, 7Affected, no fix listed.
SUSEPending overall. SUSE Linux Micro 6.0 and 6.1 kernels released; SLES 15 kernels still in progress or affected (checked 7:38 AM ET, Dec 2).

Red Hat lists RHEL 6 and 7 as affected even though their base kernels are older than 3.16. That’s backporting working in the other direction. Trust the vendor’s advisory over version math.

The bug, in plain terms. An NFSv4.1 client chooses how much reply data the server caches per session slot. The kernel record says a client can ask for the minimum, which gives each slot a zero-length buffer. A crafted request then makes the server copy a full reply into that buffer, and the kernel’s memory checker reports an out-of-bounds write of 80 bytes. Think of a mail room that files every reply into a pigeonhole before checking the pigeonhole’s size. The record says the operations involved run before any export or file handle check, which is why no login is needed. This note gives no more detail than that, and links no exploit code.

Scores. The kernel CVE team’s vector is CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Red Hat’s 9.4 differs only in integrity impact, Low instead of High. Ubuntu shows a CVSS 4.0 score of 9.3.

Does it need an export? Red Hat limits exposure to systems “specifically configured to export NFSv4.1 or NFSv4.2 shares.” The kernel record says the address-to-export mapping happens without blocking these operations, and TrueNAS says no export or mount is needed. Don’t treat “no exports” as safe. If nfsd is running, patch.

What the bn-dev capture shows and doesn’t. It shows one Ubuntu 26.04 host with nfsd absent and 2049 closed. It doesn’t show what an exposed server looks like, and nobody on the team ran these checks against a host with nfsd running. Nothing was installed and no ports or firewall rules changed. The container was removed on exit.

Not confirmed: when Ubuntu’s fixed kernels will be released, whether RHEL 6 and 7 will get fixes, and Synology’s status.

nfsnfsdcve-2026-99362nfs2rootlinux-kernelpatchingbackportshomelabfile-server

All field notes