Back to Intelligence

CVE-2026-99362 (NFS2ROOT): 12-Year-Old Linux Kernel NFS Flaw Allows Unauthenticated Remote Root — Detection and Remediation Guide

SA
Security Arsenal Team
November 29, 2026
12 min read

A critical vulnerability in the Linux kernel's Network File System (NFS) server — tracked as CVE-2026-99362, dubbed NFS2ROOT, and carrying a CVSS score of 9.8 — allows a remote, unauthenticated attacker to gain root privileges on exposed NFS servers. No password, no valid account, no user interaction: a reachable NFS service is enough. According to OpenSec's analysis as reported by Security Affairs, the flaw has been present in the kernel since 2014, meaning more than a decade of kernel releases have been silently vulnerable.

This is the worst-case shape for a network-facing vulnerability: a kernel-level service that is frequently enabled by default on storage and file-serving infrastructure, often reachable beyond the intended trust boundary, and yielding the highest possible privilege level on the host. If your organization runs NFS anywhere — on file servers, HPC clusters, NAS appliances backed by Linux, backup targets, or container storage backends — treat this as an emergency patch and exposure-audit event.

Who Is at Risk

The affected component is the in-kernel NFS server (nfsd) in Linux. Systems at risk are those where:

  • The NFS server is enabled and reachable over the network (TCP/UDP 2049 for NFS, TCP/UDP 111 for rpcbind/portmapper, and rpc.mountd's assigned port)
  • Exports are shared to network ranges broader than strictly necessary — a very common condition in flat internal networks
  • NFS is exposed to partner networks, cloud VPCs, or — worst case — the public internet (internet-exposed NFS is more common than most teams assume; Shodan and Censys regularly index thousands of NFS listeners)

Because the flaw lives in kernel space and requires no authentication, perimeter assumptions are the only thing standing between an attacker and root. Segmentation, export ACLs, and host firewalls are currently your compensating controls — and for most environments, they were never validated.

Technical Analysis

Vulnerability overview

AttributeDetail
CVECVE-2026-99362
NicknameNFS2ROOT
CVSS9.8 (Critical)
Affected componentLinux kernel in-kernel NFS server (nfsd)
Introduced~2014 (present in a decade of kernel releases)
Attack vectorNetwork, unauthenticated, no user interaction
ImpactRemote root on the NFS server host

Kernel-space NFS vulnerabilities are particularly dangerous for three reasons:

  1. Privilege context. nfsd runs in kernel space. Memory-corruption or logic flaws here do not merely hand over a service account — they hand over the kernel, which is functionally root with no containment boundary below it.
  2. Authentication model. NFSv3 relies on host-based trust via the rpcbind/mountd handshake, and NFSv4's Kerberos protections are optional and rarely deployed. An "unauthenticated" finding here maps directly to how NFS is actually configured in the field.
  3. Attack surface age. A flaw dormant since 2014 means virtually every long-lived production kernel in your fleet — including "stable" and LTS branches that organizations assume are safe — carries it.

Exploitation requirements

From a defender's perspective, the only prerequisites for exploitation are:

  • Network reachability to the NFS service (port 2049, typically via rpcbind on 111)
  • A kernel build carrying the vulnerable code path (kernels from 2014 forward until your patched version)

There is no credential requirement, no race-window fragility disclosed, and no prerequisite access. That places exploitation within reach of commodity attackers, not just advanced actors.

Exploitation status

The vulnerability is now publicly disclosed with a named moniker and press coverage, which historically accelerates weaponization for kernel bugs of this severity. Treat public PoC emergence and scanning for exposed NFS listeners as imminent. Prior to this disclosure, the flaw was not publicly known to be exploited; however, given its 12-year dwell time, defenders should assume sophisticated actors may have had knowledge of it. Hunt accordingly.

Detection and Response

Direct pre-exploitation detection of the trigger condition is difficult without a published signature, so the detection strategy below focuses on the three observable layers a SOC can actually instrument: (1) reconnaissance and connection activity against NFS/rpcbind services, (2) post-exploitation behavior on the NFS host (kernel-level root manifests as userland root activity — shells, account creation, outbound C2), and (3) exposure discovery — finding vulnerable services before an attacker does.

Sigma Rules

YAML
---
title: NFS Server Component Spawning Shell or Command Interpreter
title_note: Post-exploitation indicator for CVE-2026-99362
id: 9f2c4a71-3b8e-4d5a-91c6-7e2f8a1b0d34
status: experimental
description: Detects shells or command interpreters spawned by NFS/RPC service processes (rpc.mountd, rpcbind) on Linux. NFS service daemons should never spawn interactive shells; this is a strong post-exploitation signal consistent with kernel-level root gained via NFS2ROOT manifesting in userland.
references:
  - https://securityaffairs.com/204204/security/nfs2root-12-year-old-linux-nfs-flaw-gives-attackers-root.html
author: Security Arsenal
date: 2026/04/06
tags:
  - attack.execution
  - attack.t1059.004
logsource:
  category: process_creation
  product: linux
detection:
  selection_parent:
    ParentImage|endswith:
      - '/rpc.mountd'
      - '/rpcbind'
      - '/rpc.nfsd'
  selection_child:
    Image|endswith:
      - '/sh'
      - '/bash'
      - '/dash'
      - '/zsh'
      - '/python'
      - '/python3'
      - '/perl'
      - '/nc'
      - '/ncat'
      - '/socat'
  condition: selection_parent and selection_child
falsepositives:
  - Extremely rare; administrative wrappers around mountd could trigger. Investigate all hits.
level: critical
---
title: Privileged Account Creation on Linux NFS Server
tid: a4d8e6b2-5c1f-4a9b-83d7-2f6e9c0a4b11
id: a4d8e6b2-5c1f-4a9b-83d7-2f6e9c0a4b11
status: experimental
description: Detects execution of useradd/adduser or direct modification of /etc/passwd and /etc/shadow on hosts running the NFS server service. Persistence via a new privileged local account is a common follow-on action after remote root exploitation such as CVE-2026-99362.
references:
  - https://securityaffairs.com/204204/security/nfs2root-12-year-old-linux-nfs-flaw-gives-attackers-root.html
author: Security Arsenal
date: 2026/04/06
tags:
  - attack.persistence
  - attack.t1136.001
logsource:
  category: process_creation
  product: linux
detection:
  selection:
    Image|endswith:
      - '/useradd'
      - '/adduser'
      - '/usermod'
      - '/chpasswd'
    CommandLine|contains:
      - '-o'
      - '-u 0'
      - '-g root'
      - 'sudo'
  condition: selection
falsepositives:
  - Legitimate account provisioning during maintenance windows. Correlate with change tickets.
level: high
---
title: NFS Exports Configuration Modified
tid: c7b1f9a4-8d2e-4c6a-b5f3-9a0e1d2c3b45
id: c7b1f9a4-8d2e-4c6a-b5f3-9a0e1d2c3b45
status: experimental
description: Detects modification of /etc/exports or execution of exportfs with suspicious flags on Linux NFS servers. Attackers who gain root via CVE-2026-99362 may widen exports or disable squash options to maintain data access or stage exfiltration.
references:
  - https://securityaffairs.com/204204/security/nfs2root-12-year-old-linux-nfs-flaw-gives-attackers-root.html
author: Security Arsenal
date: 2026/04/06
tags:
  - attack.defense_evasion
  - attack.collection
logsource:
  category: file_event
  product: linux
detection:
  selection:
    TargetFilename|endswith:
      - '/etc/exports'
      - '/etc/exports.d'
  condition: selection
falsepositives:
  - Storage administrators updating exports. Alert should correlate with authorized change windows.
level: medium

KQL — Microsoft Sentinel / Defender

The following query hunts Syslog and CEF-ingested firewall/EDR telemetry for reconnaissance and connection activity against NFS and rpcbind services, plus post-exploitation shell activity on NFS hosts. It assumes your Linux servers forward syslog/auditd and your network devices log denied/permitted connections to port 111/2049.

KQL — Microsoft Sentinel / Defender
// Hunt 1: Inbound connections to NFS (2049) and rpcbind (111) from unexpected sources
let NfsServers = dynamic(["10.0.0.0/8"]); // replace with your approved NFS server CIDR list logic
union isfuzzy=true
  (CommonSecurityLog
   | where DestinationPort in (111, 2049)
   | where ipv4_is_private(SourceIP) == false or SourceIP !startswith "10.")
  ,
  (Syslog
   | where ProcessName in ("rpc.mountd", "rpcbind", "kernel")
   | where SyslogMessage has_any ("mountd", "nfsd", "rpcbind")
   | where SyslogMessage has_any ("refused", "authenticated", "mount", "connect"))
| summarize ConnectionCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)
    by SourceIP, DestinationIP, DestinationPort, ProcessName, Computer
| where ConnectionCount > 0
| order by LastSeen desc;

// Hunt 2: Shell execution on NFS servers outside interactive admin sessions (post-exploit root activity)
Syslog
| where ProcessName in ("bash", "sh", "dash", "zsh", "python", "python3", "nc", "ncat", "socat")
| where SyslogMessage has "nfs" or Computer has "nfs"   // scope to your NFS fleet naming convention
| where SyslogMessage has_any ("uid=0", "euid=0", "root")
| summarize count() by Computer, ProcessName, SyslogMessage, TimeGenerated
| order by TimeGenerated desc;

// Hunt 3: Auditd execve events running as root shortly after NFS service activity
Syslog
| where Facility == "user" or ProcessName == "audispd" or SyslogMessage has "type=EXECVE"
| where SyslogMessage has_any ("rpc.mountd", "exportfs", "useradd", "usermod", "curl", "wget")
| where SyslogMessage has "euid=0"
| project TimeGenerated, Computer, ProcessName, SyslogMessage
| order by TimeGenerated desc;

Velociraptor VQL

Deploy this hunt across your Linux fleet to enumerate NFS exposure (listening sockets, service processes, and export configuration) so you can find vulnerable attack surface before an attacker does. Velociraptor's netstat() maps listeners to owning processes; the export-file read gives you the trust-boundary picture.

VQL — Velociraptor
-- CVE-2026-99362 (NFS2ROOT) exposure hunt: NFS listeners, RPC service processes, and export configuration
SELECT * FROM foreach(
    row={
        SELECT Pid, Name, CommandLine, Exe, Username, CreateTime
        FROM pslist()
        WHERE Name =~ 'mountd|rpcbind|nfsd|lockd|statd'
    },
    query={
        SELECT 'nfs_process' AS Artifact, Name AS Key, Pid, CommandLine, Exe, Username
        FROM _data_
    })
UNION ALL
SELECT * FROM foreach(
    row={
        SELECT Pid, Name, LocalAddr, LocalPort, State, Status
        FROM netstat()
        WHERE LocalPort in (111, 2049) AND State =~ 'LISTEN|BOUND|UDP'
    },
    query={
        SELECT 'nfs_listener' AS Artifact, Name AS Key, Pid,
               format(format_string='%v:%v', args=[LocalAddr, LocalPort]) AS Listener, State
        FROM _data_
    })
UNION ALL
SELECT * FROM foreach(
    row={
        SELECT FullPath, Data
        FROM glob(globs='/etc/exports,/etc/exports.d/*')
    },
    query={
        SELECT 'nfs_exports' AS Artifact, FullPath AS Key, 0 AS Pid,
               Data AS CommandLine, '' AS Exe, '' AS Username, '' AS Listener, '' AS State
        FROM _data_
    })

Remediation

1. Patch the kernel — this is the only complete fix

SQL
Update every Linux host running the NFS server to the kernel package released by your distribution that resolves **CVE-2026-99362**. Do not wait for your regular patch cadence; a 9.8 unauthenticated kernel RCE warrants an emergency change window.
Bash / Shell
# === Emergency NFS2ROOT (CVE-2026-99362) remediation/verification script ===
# Run as root on each Linux host. Review before executing in production.

# 1. Identify kernel and distro
echo "== Kernel and distro ==" && uname -r && (. /etc/os-release; echo "$NAME $VERSION_ID")

# 2. Determine whether the NFS server is even enabled/exposed
echo "== NFS listeners ==" && ss -lntup | grep -E ':(111|2049)\b' || echo "No rpcbind/NFS listeners"
echo "== NFS services ==" && systemctl list-units --type=service | grep -Ei 'nfs|rpcbind' || true

# 3. If NFS is NOT required business function: disable it (best remediation after patching)
# systemctl stop nfs-server nfs-kernel-server rpcbind rpcbind.socket 2>/dev/null
# systemctl disable nfs-server nfs-kernel-server rpcbind rpcbind.socket 2>/dev/null
# systemctl mask rpcbind rpcbind.socket 2>/dev/null

# 4. If NFS IS required: tighten exports — restrict to specific hosts/subnets and squash privileges
# Edit /etc/exports so every line looks like:
#   /srv/share  10.20.30.0/24(ro,sync,root_squash,no_subtree_check)
# Never use wildcards (*) or no_root_squash unless a documented requirement exists.
echo "== Current exports ==" && cat /etc/exports 2>/dev/null; cat /etc/exports.d/* 2>/dev/null
# After edits: exportfs -rav && exportfs -v   # verify effective options incl. root_squash

# 5. Firewall NFS/RPC to approved client subnets only (example: 10.20.30.0/24)
# iptables -A INPUT -p tcp -s 10.20.30.0/24 --dport 2049 -j ACCEPT
# iptables -A INPUT -p udp -s 10.20.30.0/24 --dport 2049 -j ACCEPT
# iptables -A INPUT -p tcp --dport 2049 -j DROP
# iptables -A INPUT -p udp --dport 2049 -j DROP
# iptables -A INPUT -p tcp --dport 111  -j DROP   # rpcbind must not be broadly reachable
# iptables -A INPUT -p udp --dport 111  -j DROP

# 6. Apply vendor kernel security update and reboot into it
# Debian/Ubuntu:  apt update && apt install --only-upgrade linux-image-$(uname -r) linux-headers-$(uname -r)
# RHEL/CentOS:    dnf update kernel kernel-core && reboot
# SUSE:           zypper patch --category security && reboot
echo "== REMINDER: reboot into the patched kernel; uname -r after reboot must match the fixed version =="

Because exact fixed package versions differ per distribution, pull the authoritative fixed-version mapping from your vendor's security tracker for CVE-2026-99362 (Red Hat, Ubuntu, Debian, and SUSE all publish per-release CVE pages) and the original disclosure write-up referenced in the Security Affairs article at https://securityaffairs.com/204204/security/nfs2root-12-year-old-linux-nfs-flaw-gives-attackers-root.html. Verify after reboot that uname -r matches the fixed build — a surprising number of "patched" servers are simply running the old kernel from before the package install.

2. Eliminate exposure you don't need

The attack surface principle applies brutally here. For every host found in the VQL exposure hunt:

  • If NFS is not a documented business requirement, disable and mask nfs-server and rpcbind. A masked service cannot be re-enabled by accident or by an attacker with userland privileges.
  • Remove no_root_squash everywhere unless there is a written, reviewed exception. no_root_squash exists almost exclusively to serve diskless clients and is routinely misapplied to general file shares.
  • Constrain every export to explicit host or subnet ACLs — never wildcard exports.

3. Enforce network-layer containment

  • Firewall TCP/UDP 2049 and 111 to approved client subnets at the host level and at the network fabric level. Host firewalls fail; segmentation shouldn't.
  • Scan your external ranges and cloud VPCs for internet-reachable 2049/111. Any hit is a finding to remediate today, not a backlog item.
  • Where Kerberos-backed NFSv4 is feasible (sec=krb5p), deploy it — it does not patch the kernel bug, but it materially raises the bar for any adjacent authentication-bypass flaw class.

4. Hunt for historical compromise

A bug dormant since 2014 that is now public deserves a retro-hunt on your highest-value NFS servers: review auth/audit logs for unexplained root-executed processes, unexpected local account creation, and outbound connections from storage hosts that have no business initiating egress. Storage servers should be near-silent on egress; treat anything else as suspicious.

5. Track authoritative guidance

  • Original reporting: Security Affairs — NFS2ROOT disclosure (linked above)
  • Your distribution's CVE page for CVE-2026-99362 for the exact fixed kernel package version
  • OpenSec's technical write-up referenced in the disclosure for root-cause and PoC status

The lesson broader than this CVE: kernel network services that run with root-equivalent privilege and legacy trust models — NFS, and its rpcbind dependency — belong behind explicit, verified network boundaries, never behind assumptions. Use this event to inventory and shrink that surface permanently.

Related Resources

Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.