Sign up Log in
n/vps · 5d ago · 454 views
u/Mike-LeoneModeratorUnrivaledGuidance Advisor
n/vpsu/Mike-Leone Guidance Advisor · 5d ago

⚠️ Urgent: Linux kernel NFS hit by a 9.8 severity vulnerability (CVE-2026-99362)

⚠️ Urgent: Linux kernel NFS hit by a 9.8 severity vulnerability (CVE-2026-99362) — unauthenticated remote takeover

A CVSS 9.8 critical remote memory corruption vulnerability has been disclosed in the Linux kernel NFS server (nfsd), dubbed NFS2ROOT, tracked as CVE-2026-99362. An attacker can exploit it without any authentication


1. Vulnerability details

The issue is in how nfsd handles NFSv4.1 / 4.2 session slots — specifically, "a negotiated tiny cache leads to a zero-length buffer":

  1. The client can lowball it: during NFSv4.1/4.2 negotiation, the client can shrink the "max cached reply size" to the minimum — 80 bytes.
  2. The server allocates a 0-length buffer: the server then sizes the slot cache to 0.
  3. Out-of-bounds write: the server nonetheless thinks the request succeeded and crams the full reply (RPC header + client-controlled tag, roughly 80 bytes) into the zero-length buffer, causing a heap overflow.
  4. Info leak: by retransmitting the request, the attacker can also read data that overflowed into adjacent kernel memory.

2. Who's affected

  • Affected: Linux kernel 3.16 and later, with NFSv4.1 / 4.2 serving enabled.
  • Not affected:
    • Servers only running NFSv3 or NFSv4.0;
    • Machines that only mount as an NFS client.

3. Fix

Preferred: upgrade the kernel

Fixed versions per stable branch:

Branch Fixed version
5.10 5.10.275
6.1 6.1.193
6.12 6.12.117
7.x 7.3.2

Check which branch you're on and upgrade ASAP.

Alternative: temporary mitigation

  1. Disable NFSv4.1 and 4.2, fall back to v4.0 or v3;
  2. Restrict TCP port 2049 at the firewall, allow only trusted networks;

4. Threat landscape

  • Some research org has demoed gaining root via this bug;
  • As of November 26, 2026, no large-scale exploitation has been observed;
  • The vulnerability is not in the CISA KEV catalog.

Still, this one is dangerous enough.


5. Action checklist

  • Inventory all NFS servers and confirm whether v4.1/4.2 is enabled
  • Schedule kernel upgrades to the fixed versions
  • In the meantime, tighten the firewall + turn off v4.1/4.2

Closing

CVE-2026-99362 isn't being exploited at scale yet — which makes this the cheap-fix window.

Reference: CVE-2026-99362 (NFS2ROOT), CVSS 3.1 = 9.8

Translated by AI from 简体中文

9
6
Log into join the discussion.

6 replies

Sort order
  1. lki535074817 Silver 5d ago

    The whole world is just one big slapdash operation

    Translated by AI from 简体中文

    1
  2. Yang-iyu Silver 5d ago

    As of right now (November 26, 2026), no officially released Ubuntu version ships with a fix for this vulnerability. Switching Ubuntu releases won't get you around it — you have to wait for Canonical to push a kernel security update, or apply a temporary mitigation.

    CVE-2026-99362 (NFS2ROOT) is a high-severity vulnerability (CVSS 9.8) in the Linux kernel NFS server (nfsd). It's been there since kernel 3.16 in 2014, and it lets an unauthenticated remote attacker gain root on servers with NFSv4.1/4.2 enabled via TCP port 2049.

    Affected and fixed status by Ubuntu release

    Ubuntu release Current status Expected fixed kernel version
    26.10 Affected (fix in progress) 7.3.0-12.13
    26.04 LTS Affected (fix in progress) 7.0.0-45.45
    24.04 LTS Affected (no patch date yet) TBD
    22.04 LTS Affected (no patch date yet) TBD

    (Note: upstream Linux has already fixed it in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2; if you need a fixed system out of the box right now, Debian 13 has already pushed 6.12.117-1.)

    Checking and mitigating before the Ubuntu patch lands

    If the server isn't running an NFS server, it's not affected at all and you don't need to do anything. Otherwise, check and protect it as follows:

    1. Check whether the NFS server is running — use these commands to see what's listening on port 2049 and the service status:

      Bash

      sudo ss -tlnp | grep 2049
      systemctl status nfs-server
      

      Verify: if the first command returns nothing and the second shows inactive or could not be found, the machine isn't exposing the vulnerability and you can skip the rest.

    2. If you don't need file sharing, just stop NFS

      Bash

      sudo systemctl stop nfs-server
      sudo systemctl disable nfs-server
      

      Verify: run sudo ss -tlnp | grep 2049 again and confirm nothing is listening on 2049.

    3. If you must use NFS, isolate TCP port 2049 with the firewall (highly recommended) — only allow trusted LAN or storage subnets (e.g. 192.168.1.0/24) and deny everything else:

      Bash

      sudo ufw allow from 192.168.1.0/24 to any port 2049 proto tcp
      sudo ufw deny 2049/tcp
      

      Verify: run sudo ufw status numbered and confirm the allow rule comes before the DENY rule, then from an untrusted IP test nc -zv <server IP> 2049 and check that it times out or is refused.

    4. If you can't fully isolate the network, temporarily disable NFSv4.1 and 4.2 — edit /etc/nfs.conf, add the following under the [nfsd] section, then restart the service (note: this disables pNFS and some 4.2 features):

      Ini, TOML

      [nfsd]
      vers4.1=n
      vers4.2=n
      

      Save and restart the service:

      Bash

      sudo systemctl restart nfs-server
      

      Verify: run cat /proc/fs/nfsd/versions and confirm the output shows -4.1 and -4.2 (the minus sign means disabled).

    Going forward, run sudo apt update && sudo apt upgrade regularly to keep an eye on Canonical's kernel pushes — once you've upgraded to a kernel containing the CVE-2026-99362 fix, a reboot fully resolves it.

    Translated by AI from 简体中文

    1
  3. hangdahuangli 💬 Gold 3 YEARS 5d ago

    Why's there another bug again 🤔

    Translated by AI from 简体中文

    0
  4. local 💬 Diamond 2 YEARS 5d ago

    When is this ever going to end, patching every damn day 😤

    Translated by AI from 简体中文

    0
  5. mercuryhg Gold 5d ago

    Oh my god, the Linux kernel has been dropping 9+ severity vulnerabilities one after another lately.

    Translated by AI from 简体中文

    0
  6. mercuryhg Gold 5d ago
    This reply was deleted by its author
  7. Whodoit Silver 3 YEARS 5d ago

    Don't worry, there'll be more later.

    Translated by AI from 简体中文

    0