Overview
Recently, NSFOCUS CERT monitored a security update released by Linux patching an out-of-bounds write vulnerability in the Linux kernel NFS subsystem (CVE-2026-99362), dubbed “NFS2root”. Because the Linux kernel NFS server (nfsd) fails to adequately validate whether a SEQUENCE response fits within the negotiated cached reply limit before accepting a session slot sequence number, an unauthenticated attacker can negotiate an extremely small cached response size and send specially crafted COMPOUND requests to the NFS service (default TCP port 2049) to trigger a heap out-of-bounds write. This can result in memory corruption, information disclosure, or system crashes, and may lead to remote code execution under specific conditions. With a CVSS score of 9.8 and vulnerability details already publicly disclosed, affected users should take protective measures as soon as possible.
Reference Link: https://access.redhat.com/security/cve/cve-2026-99362
Scope of Impact
Affected Versions
- 3.16 <= Linux Kernel
- Linux Kernel 5.10.x < 5.10.275
- Linux Kernel 5.15.x < 5.15.226
- Linux Kernel 6.1.x < 6.1.193
- Linux Kernel 6.6.x < 6.6.163
- Linux Kernel 6.12.x < 6.12.117
- Linux Kernel 6.18.x < 6.18.61
- Linux Kernel 7.3.x < 7.3.2
Note: This vulnerability affects hosts running the nfsd service with NFSv4.1/v4.2 sessions enabled.
Unaffected Versions
- Linux Kernel < 3.16
- Linux Kernel 5.10.x >= 5.10.275
- Linux Kernel 5.15.x >= 5.15.226
- Linux Kernel 6.1.x >= 6.1.193
- Linux Kernel 6.6.x >= 6.6.163
- Linux Kernel 6.12.x >= 6.12.117
- Linux Kernel 6.18.x >= 6.18.61
- Linux Kernel 7.3.x >= 7.3.2
- Linux Kernel 7.4-rc >= 7.4-rc1
- Linux Kernel >= 7.4
Detection
Manual Detection
Users can determine whether their host falls within the affected scope by checking the currently running kernel version and whether NFSv4.1/v4.2 sessions are enabled on the nfsd service:
1. Run the following command on the Linux host to check the currently running kernel version:
| uname -r |
2. Check whether the nfsd service is running on the host:
| # On RHEL, Rocky Linux, AlmaLinux, and similar distributions: systemctl status nfs-server # On Debian, Ubuntu, and similar distributions, also check: systemctl status nfs-kernel-server |
3. Check whether NFSv4.1/v4.2 is actually enabled by inspecting the full [nfsd] section in /etc/nfs.conf:
| grep -A5 ‘\[nfsd\]’ /etc/nfs.conf |
If the currently running kernel version falls within the affected range and the host runs the nfsd service with NFSv4.1 or NFSv4.2 sessions enabled, a security risk may exist.
Mitigation
Official Upgrade
Official updated versions and security patches have been released to fix this vulnerability. Affected users are advised to update as soon as possible.
Download Links:
https://www.kernel.org
https://git.kernel.org/stable/c/35ff1a7a7e3835c3e974bc5c45d335897564ceae
Note: Linux distributions may backport the security patch; users should refer to the official advisories of their respective distribution vendors. After upgrading, reboot the system and verify that the running kernel includes the fix.
Temporary Measures
Without impacting normal business operations, users can apply the following temporary mitigation measures:
1. Restrict access to TCP port 2049 so that only trusted hosts can access the NFS service:
| # Using nftables: nft add rule inet filter input tcp dport 2049 ip saddr != 10.20.0.0/16 drop # Using firewalld to restrict NFS access to trusted hosts: firewall-cmd –permanent –remove-service=nfs firewall-cmd –permanent –add-rich-rule=’rule family=”ipv4″ source address=”<trusted_ip_or_subnet>” service name=”nfs” accept’ firewall-cmd –reload |
2. Disable NFSv4.1 and NFSv4.2 sessions by setting vers4.1=n and vers4.2=n in /etc/nfs.conf:
| [nfsd] vers4.1=n vers4.2=n |
3. If the NFS service is not required, stop and disable nfs-server:
| systemctl stop nfs-server systemctl disable nfs-server |
Statement
This advisory is only used to describe a potential risk. NSFOCUS does not provide any commitment or promise on this advisory. NSFOCUS and the author will not bear any liability for any direct and/or indirect consequences and losses caused by transmitting and/or using this advisory. NSFOCUS reserves all the rights to modify and interpret this advisory. Please include this statement paragraph when reproducing or transferring this advisory. Do not modify this advisory, add/delete any information to/from it, or use this advisory for commercial purposes without permission from NSFOCUS.
About NSFOCUS
NSFOCUS, a pioneering leader in cybersecurity, is dedicated to safeguarding telecommunications, Internet service providers, hosting providers, and enterprises from sophisticated cyberattacks.
Founded in 2000, NSFOCUS operates globally with over 3000 employees at two headquarters in Beijing, China, and Santa Clara, CA, USA, and over 50 offices worldwide. It has a proven track record of protecting over 25% of the Fortune Global 500 companies, including four of the five largest banks and six of the world’s top ten telecommunications companies.
Leveraging technical prowess and innovation, NSFOCUS delivers a comprehensive suite of security solutions, including the Intelligent Security Operations Platform (ISOP) for modern SOC, DDoS Protection, Continuous Threat Exposure Management (CTEM) Service and Web Application and API Protection (WAAP). All the solutions and services are augmented by the Security Large Language Model (SecLLM), ML, patented algorithms and other cutting-edge research achievements developed by NSFOCUS.