---
title: "NFS2ROOT on Linux: 12-year bug, remote root and patch now | Daniel Segovia"
description: "CVE-2026-99362 in the Linux NFS server allows remote root via a heap overflow. Patch now, close 2049, and audit NFS exposure. High priority."
url: https://danielsegovia.com/en/security/linux-nfs2root-cve-2026-99362-nfsd-remote-root-20261127/
lang: en
author: "Daniel Segovia"
published: 2026-11-27T17:44:00.000Z
modified: 2026-11-27T13:04:38.774Z
section: "Security"
---

1.  [Home](https://danielsegovia.com/en/)
2.  [Security](https://danielsegovia.com/en/security/)
3.  NFS2ROOT on Linux: 12-year bug, remote root and patch now

# NFS2ROOT on Linux: 12-year bug, remote root and patch now

[Security](https://danielsegovia.com/en/security/) New By [Daniel Segovia](https://danielsegovia.com/en/about/) · November 27, 2026 · 2 min read

CVE-2026-99362 in the Linux NFS server allows remote root via a heap overflow. Patch now, close 2049, and audit NFS exposure. High priority.

In this post

1.  [What happened](#what-happened)
2.  [Why it matters](#why-it-matters)
3.  [How to check exposure](#how-to-check-exposure)
4.  [What to do now](#what-to-do-now)
5.  [Signals to monitor](#signals-to-monitor)
6.  [My take](#my-take)

NFS2ROOT is a critical vulnerability in Linux’s NFS server (nfsd) that lets a remote attacker gain root. Tracked as CVE-2026-99362, it’s been around since Linux 3.16 (2014) and affects kernels older than 6.12.117, 6.18.61, 7.3.2, or 7.4-rc1 when nfsd v4.1/v4.2 is loaded and TCP 2049 is reachable.

## What happened

The bug is a heap buffer overflow in nfsd. With crafted NFSv4.1 requests, an attacker can write past the buffer, read kernel memory, bypass KASLR, and plant a callback that the kernel runs as root when the NFS connection closes. No user interaction, low complexity.

The fix landed in August and patched builds are out. There are no reports of in-the-wild exploitation yet, but a full exploit was shared with maintainers, so the clock is ticking for anyone exposing 2049.

## Why it matters

NFS often sits on file servers, NAS, build farms, and storage nodes in Kubernetes clusters. If that 2049 faces the Internet or an untrusted network, you just gave a straight path to the kernel. This isn’t about a leaked token; it’s root on the host.

I’ve said this in other fire drills, like in [the Drupal critical RCE playbook](https://danielsegovia.com/en/security/drupal-critical-rce-exploited-urgent-actions-2026/): when remote execution or trivial escalation is on the table, you don’t negotiate—you patch and you segment. Same here, but stronger, because the blast radius is the kernel.

## How to check exposure

-   Kernel at risk: `uname -r` and compare with 6.12.117, 6.18.61, 7.3.2, or 7.4-rc1.
-   nfsd loaded: `lsmod | grep nfsd` or `systemctl status nfs-server`.
-   Port 2049 exposed: `ss -tulpn | grep :2049` and review firewall/SG/VPC rules. If 2049 hits the Internet, that’s bad.

## What to do now

1.  Apply vendor kernel patches and **reboot** to load the new kernel. Without a reboot it doesn’t count.
2.  If you can’t patch today, restrict 2049 to trusted clients/networks. Tight segmentation.
3.  If the host doesn’t need NFS, shut it down and disable it: `systemctl stop nfs-server && systemctl disable nfs-server`. Reinforce via `/etc/nfs.conf`.
4.  Inventory kernels and nfsd across critical infra. Prioritize backports and maintenance windows on storage, CI/CD, and clusters.
5.  Add network access controls: firewalls, VPC ACLs, and explicit ingress rules. NFS should never be world-open.

## Signals to monitor

-   Kernel warnings referencing `nfsd4_check_resp_size`.
-   Shells spawned by kernel workers on file servers.
-   Burst of short NFSv4.1 sessions from a single source.
-   Kernel oops with `nfsd4_*`, `svc_*`, or `call_usermodehelper*` frames.

## My take

Twelve years living with an overflow in a service we assume is internal. Yet 2049 ends up facing out more often than we like to admit. My read: immediate patching, 2049 under lock, and a living inventory of who runs nfsd and on which kernel. If you exposed NFS to the Internet, sending you a hug—and a sprint reprioritization.

PS: 2049 sounds sci‑fi, but if it’s open today it’s bringing you a very real incident.

## Tags

-   [#Linux](https://danielsegovia.com/en/tags/linux/)
-   [#NFS](https://danielsegovia.com/en/tags/nfs/)
-   [#CVE-2026-99362](https://danielsegovia.com/en/tags/cve-2026-99362/)
-   [#Vulnerabilities](https://danielsegovia.com/en/tags/vulnerabilities/)

[See all tags →](https://danielsegovia.com/en/tags/)

## Related posts

-   [GoodGuys phishing mimics brands to steal Google/Okta](https://danielsegovia.com/en/security/goodguys-phishing-google-okta-paid-interviews/)
    
    GoodGuys lures with paid interviews to steal corporate Google/Okta creds. Active since October. Priorities: FIDO MFA, phishing drills, and tight SSO control.
    
    3 min read
-   [1Password breach via GitHub: data stolen and a CI/CD wake-up](https://danielsegovia.com/en/security/1password-breach-github-ci-cd/)
    
    An intruder used an employee’s GitHub account to inject code and copy customer records. Vaults are safe, but your SDLC just got a stress test.
    
    3 min read
-   [ARTEX and machine-speed attacks: what to fix this week](https://danielsegovia.com/en/security/microsoft-artex-ai-agents-automated-attacks/)
    
    Microsoft details ARTEX, an AI-agent framework running intrusions at machine speed. What to change now in behavior-based detection and m2m privileges.
    
    3 min read

## More categories

-   ### [Tutorials](https://danielsegovia.com/en/tutorials/)
    
    [How to create a TypeScript Lambda with AWS SAM](https://danielsegovia.com/en/tutorials/create-typescript-lambda-aws-sam/)
    
    How to create a TypeScript Lambda with AWS SAM. Initialize the project, compile with esbuild, test locally, and deploy to AWS in minutes without pain.
    
    New 5 min read
    
-   ### [News](https://danielsegovia.com/en/news/)
    
    [Huawei speeds chip design; Nvidia slows ASEAN server flows](https://danielsegovia.com/en/news/huawei-speeds-chip-design-nvidia-slows-asean-servers/)
    
    Huawei pushes its homegrown chip-design stack while Nvidia halts AI server shipments in ASEAN. If you bet on one vendor, map risk and ship a plan B.
    
    New 3 min read
    
-   ### [Artificial Intelligence](https://danielsegovia.com/en/artificial-intelligence/)
    
    [OpenAI/Anthropic lock data; China turns to Google and Meta](https://danielsegovia.com/en/artificial-intelligence/openai-anthropic-lock-data-china-google-meta/)
    
    OpenAI and Anthropic restricted data and Chinese players look to Google and Meta. Time to harden pipelines: clear licenses and a data plan B.
    
    New 3 min read
    
-   ### [Security](https://danielsegovia.com/en/security/)
    
    [GoodGuys phishing mimics brands to steal Google/Okta](https://danielsegovia.com/en/security/goodguys-phishing-google-okta-paid-interviews/)
    
    GoodGuys lures with paid interviews to steal corporate Google/Okta creds. Active since October. Priorities: FIDO MFA, phishing drills, and tight SSO control.
    
    New 3 min read
    
-   ### [Architecture](https://danielsegovia.com/en/architecture/)
    
    [Cloudflare toggle for AI-agent search, and you pay the bill](https://danielsegovia.com/en/architecture/cloudflare-toggle-ai-agent-search-cost-privacy/)
    
    Cloudflare added a toggle for AI agents to search your site. You pay the query bill. Good DX, new risks to budgets and privacy. Add access controls and limits.
    
    New 3 min read
    
-   ### [Business](https://danielsegovia.com/en/business/)
    
    [AI infrastructure spend could hit $1T in 2026: now what](https://danielsegovia.com/en/business/ai-infrastructure-spend-2026-1t/)
    
    AI infra investment could reach $1T in 2026. With a $1.8T funding gap through 2030, it’s time to lock budgets, renegotiate contracts and squeeze unit costs.
    
    New 3 min read

---

Sitio: https://danielsegovia.com/ · Índice para agentes: https://danielsegovia.com/llms.txt · Sitemap: https://danielsegovia.com/sitemap.xml
