A critical vulnerability in the Linux kernel’s Network File System (NFS) server has drawn attention because the flaw reportedly remained in the codebase for approximately 12 years. Tracked as CVE-2026-99362 and named NFS2ROOT, the vulnerability is a heap buffer overflow affecting the Linux kernel’s NFS server (nfsd).The vulnerability dates back to Linux kernel 3.16, released in 2014. Under specific conditions, an unauthenticated remote attacker could exploit the flaw to corrupt kernel memory, potentially leading to remote code execution with root privileges.RCE prevention softwareThe issue is particularly concerning because it affects an infrastructure service commonly used for shared storage across enterprise Linux environments.What is NFS2ROOT?NFS2ROOT is associated with improper handling of buffer sizes within the Linux kernel’s NFS server implementation. The vulnerability involves processing specific NFSv4.1 session operations and cached replies, potentially resulting in an out-of-bounds memory write.Because the vulnerable functionality can be reached without authentication, an attacker with network access to a vulnerable NFS service may be able to trigger the flaw without possessing legitimate credentials.The potential impact ranges from system crashes and denial of service to kernel-level compromise and root access. Researchers have demonstrated the vulnerability’s potential for remote root exploitation in controlled environments.Study SecurityWhy it mattersNFS is widely used across enterprise infrastructure for file sharing, application storage, backups, virtualization, and container workloads. A vulnerability within the kernel-level NFS server therefore has implications beyond traditional file servers.Systems potentially exposed include Linux file servers, NAS platforms, backup infrastructure, virtualization environments, and Kubernetes platforms using NFS-backed storage.The primary concern is whether vulnerable systems are running the NFS server functionality and whether the service is accessible from untrusted networks. Systems using NFS only as clients are not the primary attack surface for this vulnerability.Affected and fixed Linux kernel versionsThe vulnerability affects upstream Linux kernel code dating back to version 3.16. Fixes have been released across multiple maintained kernel branches.The vulnerability is fixed in Linux 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61 and 7.3.2, with the fix also incorporated into 7.4-rc1.The corresponding upstream fixes have been backported into supported kernel branches. Linux distributions may therefore use different package versions containing the fix.Organizations should validate the installed kernel against their distribution’s security advisory rather than relying solely on the upstream version number.Linux distributions affectedThe vulnerability is not restricted to a single Linux flavour. It affects distributions that ship vulnerable kernel code and operate the kernel NFS server with the relevant NFS versions enabled.Red Hat Enterprise Linux: The vendor status varies by release and support stream. RHEL 8 security updates have been released, and updates were also published for certain RHEL 10 streams. RHEL 9 and some older releases were still listed as affected without a fix in the latest status reviewed. Organizations should check the specific Red Hat erratum for their release and kernel package.Ubuntu: The vulnerability was listed as affecting multiple releases, including Ubuntu 16.04, 18.04, 20.04, 22.04 and 24.04. Ubuntu 26.04 and 26.10 were also being tracked. At the time of the latest status reviewed, fixes were still pending across several Ubuntu kernel flavours.Debian: Security updates have been released for Debian 12 Bookworm and Debian 13 Trixie. Debian 12’s security fix is listed as 6.1.192-3, while Debian 13 is fixed in 6.12.117-1. The Debian security tracker also lists fixed packages for the Bookworm 6.12 kernel.SUSE Linux Enterprise: Affected releases and maintenance streams were being tracked by SUSE, with patch availability varying by product and support stream. Administrators should validate their specific SLES release against the vendor’s security tracker.Amazon Linux: Amazon Linux 2 and Amazon Linux 2023 kernel packages have security updates addressing the vulnerability. The exact fixed package depends on the kernel branch deployed.Oracle Linux: Oracle Linux releases using the Unbreakable Enterprise Kernel and applicable Red Hat Compatible Kernel branches require release-specific validation against Oracle’s security errata.AlmaLinux and Rocky Linux: Enterprise Linux derivatives using vulnerable kernel code are also affected. Security updates have been released for applicable EL8 branches, while other releases should be checked against their respective advisories.The important distinction is that distribution-specific kernel backports can fix the vulnerability without changing the apparent upstream kernel version. Therefore, vulnerability scanners and manual validation should account for vendor package revisions.Proof of concept and exploitation statusPublic reporting indicates that proof-of-concept exploit code is available. OpenSec reportedly shared a full remote-root exploit and a patch with the Linux NFS server maintainers.Research demonstrated that the vulnerability could be exploited to corrupt kernel memory and potentially achieve root-level access. This elevates the risk beyond a theoretical vulnerability, particularly for systems exposing NFS services to untrusted networks.However, as of the latest reporting reviewed, there are no confirmed reports of CVE-2026-99362 exploitation in the wild.RemediationOrganizations should identify Linux systems running the kernel NFS server and determine whether NFSv4.1 or NFSv4.2 is enabled.Apply the appropriate security update from the operating system vendor and reboot to ensure the patched kernel is running. Until patching is completed, restrict access to NFS services, particularly TCP port 2049, to trusted and authorized clients. Disable NFS server functionality on systems where it is not required.Infrastructure teams should pay particular attention to shared storage environments, backup servers, virtualization infrastructure, and systems supporting critical applications.
⚡ گزارش اطلاعاتی
NFS2ROOT: A Decade Old Linux Vulnerability CVE-2026-99362
آسیبپذیریهای مرتبط
CVE-2026-99362 - nfsd: preflight SEQUENCE replies before accepting a slot
In the Linux kernel, the following vulnerability has been resolved:
nfsd: preflight SEQUENCE replies before accepting a slot
nfsd4_sequence() narrows the reply buffer to the session's cached
reply limit before it accepts the slot seqid. A client may negotiate
ca_maxresponsesize_cached down to NFSD_MIN_HDR_SEQ_SZ, and
nfsd4_alloc_slot() then gives every slot a zero-length sl_data[]. A
COMPOUND tag can fill that narrowed buffer until it holds the
SEQUENCE opcode but not the status word that follows.
nfsd4_encode_operation() returns without running
nfsd4_encode_sequence(), so cstate.data_offset stays zero. It leaves
op->status at nfs_ok as well, so the COMPOUND is treated as having
succeeded.
nfsd4_store_cache_entry() declines to cache a lone SEQUENCE that
returned an error. That test reads the status the operation
reported, so it passes here. The copy starts at offset zero and
takes the whole reply, RPC and COMPOUND headers included, into the
zero-length sl_data[]. The COMPOUND tag is copied along with it, so
the client picks most of the bytes written past the end of the slot:
BUG: KASAN: slab-out-of-bounds in read_bytes_from_xdr_buf+0x1bc/0x390
Write of size 80 at addr ffff888003a549cd by task kunit_try_catch/24
__asan_memcpy+0x38/0x60
read_bytes_from_xdr_buf+0x1bc/0x390
nfsd4_sequence_done+0x5b0/0x810
nfs4svc_encode_compoundres+0x1bf/0x240
Check that the fixed-size SEQUENCE result, plus room for a following
operation's error status, fits the negotiated limit before narrowing
the buffer and consuming the slot seqid. The slot and its reply
cache are left unchanged, as RFC 8881 Section 2.10.6.1.2 requires of
an error returned from SEQUENCE.