← Voltar ao feed
high

NFS2ROOT: 12-year-old Linux kernel nfsd heap overflow (CVE-2026-99362, CVSS 9.8) allows remote root; no exploitation reported

4 fonte(s) · 3 atualização(ões) · 1 repetição(ões) · publicado 27/11/2026 05:06 · coletado há 6 dias

A heap buffer overflow in the Linux kernel NFS server (nfsd), tracked as CVE-2026-99362 and dubbed NFS2ROOT by OpenSec, lets unauthenticated remote attackers gain root. It carries a CVSS 3.1 score of 9.8 (gbhackers.com). The flaw was introduced by commit 47ee52986472 in March 2014 and has existed since kernel 3.16. It was found independently by Jérémy Jean of ANSSI, who sent the upstream fix on August 17, 2026 (gbhackers.com). OpenSec reported it with a working exploit on September 22 and disclosed it on November 25, 2026, saying its Antara harness found the bug and built the chain autonomously (gbhackers.com). The exploit remains private and no exploitation in the wild is reported. Vendor CVSS and distribution advisories were not checked.

Entenda a falha

A vulnerabilidade

CVE-2026-99362 (NFS2ROOT, CVSS 3.1 9.8) is a heap buffer overflow in the Linux kernel's in-kernel NFS server, nfsd. An unauthenticated remote attacker who can reach TCP port 2049 on a host running NFSv4.1 or 4.2 (the default) can corrupt kernel memory and obtain root, with no account, password or user click. The server need not be internet-facing; reach from inside the network is enough. It affects kernels since 3.16 (commit 47ee52986472, March 2014) and is fixed in Linux 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1. Distribution kernels may backport the fix without those version numbers, so install the update that lists the CVE. OpenSec knows of no exploitation in the wild.

Como funciona

In NFSv4.1 each session slot caches its last reply, and the client chooses the cache size. A client can set ca_maxresponsesize_cached to the minimum, so each slot gets a zero-length sl_data[] buffer. nfsd4_sequence() then narrows the reply buffer before accepting the slot sequence ID, and a padded COMPOUND tag makes the encoder return without an error. The server then copies the full 80-byte reply into the empty slot, writing 61 bytes past the heap object, 40 of them chosen by the client (KASAN). According to OpenSec, this corrupts a neighbouring slot, a replay leaks 3.8 KB of kernel heap (KASLR bypass), a forged pointer gives an arbitrary free, and a fake callback built in reused memory runs /bin/sh as root when the attacker disconnects.

Por que é vulnerável

The root cause is a missing size check combined with a wrong assumption in reply handling. nfsd4_sequence() shrinks the reply buffer before the slot sequence ID is accepted, and the encoder can return without error even though the reply does not fit, so the oversized reply is copied into a zero-length cache buffer. The server parses this network input in the kernel before it knows who the client is. The fix checks that the reply fits in the buffer and rejects data that cannot fit. The articles do not say why the bug went unnoticed for about 12 years. OpenSec notes that kernel hardening does not remove the overflow.

Onde está

The flaw was introduced by kernel commit 47ee52986472 (March 2014) in the nfsd NFSv4.1 session code: nfsd4_sequence(), the slot sl_data[] buffer sized from ca_maxresponsesize_cached, and the check in nfsd4_check_resp_size. The fixing commits are 5d5a72e965c8 and 241848cc774e.

Como foi descoberta

Jérémy Jean of France's ANSSI found the bug and sent the upstream fix on August 17, 2026. OpenSec found it independently: its Antara harness flagged it on September 21 (securityaffairs.com) and, per OpenSec, scored it and built the attack with no human help. The exploit and a patch went to the maintainers and the Linux security team on September 22. The CVE and fixes were published on November 20, and OpenSec published its write-up on November 25 (per gbhackers.com). Chuck Lever and Jeff Layton maintain the NFS server.

PoC existente, privada

O exploit existe, mas quem o tem não o publicou.

OpenSec built a full remote-root exploit chain (overflow, KASLR leak, arbitrary free, fake callback) and demonstrated it by gaining root before shutting the server down. It sent the exploit to the maintainers and the Linux security team in September, and it remains private. No exploitation in the wild is known, but the flaw and its mechanism are public, so patching should not wait. The traffic is legitimate NFS, so there are no network signatures. Watch for nfsd4_check_resp_size warnings, shells spawned by kernel workers and bursts of short NFSv4.1 sessions from one IP, and restrict TCP 2049 meanwhile.

Explicação gerada por IA a partir da matéria e dos artigos, em 29/11/2026 08:15.

Detalhes técnicos

  • Affected: kernels older than 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1.
  • Prerequisites: nfsd (v4.1 or 4.2, the default) running, and TCP port 2049 reachable from the attacker. No authentication needed.
  • Root cause (gbhackers.com): the client sets ca_maxresponsesize_cached to the minimum, so each session slot gets a zero-length sl_data[] buffer. nfsd4_sequence() narrows the reply buffer before accepting the slot sequence ID, and a padded COMPOUND tag makes the encoder return without error, so the full reply is copied into the empty slot. KASAN shows an 80-byte write, 61 bytes past the object, 40 client-chosen.
  • Attack: the overflow corrupts a neighbouring slot's bookkeeping, a replay request leaks 3.8 KB of kernel heap (KASLR bypass), a forged pointer triggers an arbitrary free, and the memory is refilled with a fake callback built from NFS client names. When the attacker disconnects, the kernel runs /bin/sh as root.
  • Detection (OpenSec): kernel warnings from nfsd4_check_resp_size, shells spawned by kernel workers on a file server, bursts of short NFSv4.1 sessions from one source, and kernel oopses with nfsd4_, svc_ or call_usermodehelper* frames. There are no network signatures.

Detalhes da correção

Commits 5d5a72e965c8 and 241848cc774e check that the reply fits in the buffer and reject data that cannot fit (securityaffairs.com). Jérémy Jean of ANSSI submitted the fix on August 17, 2026. The CVE and fixes were published on November 20 (securityaffairs.com). Chuck Lever and Jeff Layton maintain the NFS server (securityaffairs.com).

Remediação

  • Fixed releases: Linux 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1 (gbhackers.com). Apply the distribution kernel update that lists the CVE and reboot.
  • As a workaround, restrict TCP 2049 to the storage network, e.g. an nftables rule dropping other source ranges (gbhackers.com).
  • Disabling NFSv4.1 and 4.2 in /etc/nfs.conf also closes the path but turns off pNFS and some 4.2 features (gbhackers.com).
  • If NFS sharing is not needed, stop and disable the nfs-server service.
  • Kernel hardening does not remove the overflow.

Relatos divergentes

  • Date OpenSec reported the flaw: gbhackers.com says September 22. securityaffairs.com says Antara flagged it on September 21 and the exploit and patch went to maintainers the next day, so the two are consistent.
  • Disclosure date: gbhackers.com says November 25. securityaffairs.com says the CVE and fixes appeared on November 20, so the public CVE and fixes preceded the OpenSec write-up.

Linha do tempo

  1. securityaffairs.com ↗ · pub. 29/11/2026 07:01 · coletado 29/11 08:00

    NFS2ROOT: 12-year-old Linux kernel nfsd heap overflow (CVE-2026-99362) allows unauthenticated remote root

    The article adds the fix commits 5d5a72e965c8 and 241848cc774e and the CVE and fix publication date of November 20. It also gives OpenSec's discovery date of September 21 (the known report says September 22 for the report to maintainers), the NFS maintainers Chuck Lever and Jeff Layton, and the exposure-check commands.

    ler a análise desta fonte

    The article adds the fix commits 5d5a72e965c8 and 241848cc774e and the CVE and fix publication date of November 20. It also gives OpenSec's discovery date of September 21 (the known report says September 22 for the report to maintainers), the NFS maintainers Chuck Lever and Jeff Layton, and the exposure-check commands.

    A heap overflow in the Linux kernel NFS server (nfsd), tracked as CVE-2026-99362 (CVSS 9.8) and named NFS2ROOT by OpenSec, lets unauthenticated remote attackers gain root. It was introduced by commit 47ee52986472 in March 2014 and first appeared in Linux 3.16. Jérémy Jean of ANSSI found it and submitted a fix on August 17, 2026. OpenSec's Antara system found it independently on September 21. The CVE and fixes were published on November 20. OpenSec is not aware of exploitation in the wild. This summary comes from the article alone, with no vendor or NVD check.

    Technical Details

    • Prerequisites: a vulnerable kernel, a running nfsd, NFSv4.1 or 4.2 enabled (the default) and access to TCP 2049. The server does not need to be internet-exposed.
    • A client sets its reply cache size to zero. The kernel then copies an 80-byte reply into the empty buffer, writing 61 bytes past the allocation, 40 of them attacker-controlled.
    • The chain leaks 3.8 KB of memory, bypasses ASLR and plants a command in reused memory. The kernel runs it as root when the connection closes.
    • Detection: nfsd4_check_resp_size warnings, crashes in nfsd4_, svc_ or call_usermodehelper* functions, shells started by kernel workers, and bursts of short NFSv4.1 sessions from one IP. The traffic is legitimate NFS, so network tools may miss it.

    Fix Details

    Commits 5d5a72e965c8 and 241848cc774e check that the reply fits in the buffer and reject data that cannot fit. Jean submitted the fix on August 17, 2026.

    Remediation

    • Upgrade to Linux 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1 and reboot. On distribution kernels, install the update that lists the CVE.
    • Workarounds: restrict TCP 2049 to trusted storage networks (for IPv4 and IPv6 separately), or disable NFSv4.1 and 4.2 in /etc/nfs.conf, which turns off pNFS. Alternatively, stop the NFS service.
    • These measures do not fix the flaw. Kernel hardening does not remove the overflow.
  2. gbhackers.com ↗ · pub. 28/11/2026 05:07 · coletado 28/11 07:00

    NFS2ROOT: CVE-2026-99362, 12-year-old Linux kernel nfsd pre-auth heap overflow gives remote root (CVSS 9.8)

    The article adds the CVSS 3.1 score of 9.8, commit 47ee52986472 as the origin, the exact fixed releases and dates (fix sent August 17, report September 22, disclosure November 25), the full exploit chain, the Antara autonomous discovery claim, and mitigation options including nftables and disabling NFSv4.1/4.2.

    ler a análise desta fonte

    The article adds the CVSS 3.1 score of 9.8, commit 47ee52986472 as the origin, the exact fixed releases and dates (fix sent August 17, report September 22, disclosure November 25), the full exploit chain, the Antara autonomous discovery claim, and mitigation options including nftables and disabling NFSv4.1/4.2.

    A pre-authentication heap overflow in the Linux kernel in-kernel NFS server (nfsd), tracked as CVE-2026-99362 and dubbed NFS2ROOT, carries a CVSS 3.1 score of 9.8 according to the article. The flaw was introduced by commit 47ee52986472 in March 2014 and ships in every kernel since 3.16. OpenSec Intelligence disclosed it on November 25, 2026 and says its Antara harness found the bug and built the full chain autonomously. Jérémy Jean of ANSSI found it independently and sent the upstream fix on August 17, 2026. The exploit remains private, and the article reports no exploitation in the wild. No web research was done, so vendor and CNA severity and distribution advisories were not checked.

    Technical Details

    • Prerequisites: nfsd running with NFSv4.1 or 4.2 (the default) and tcp/2049 reachable. No authentication is needed.
    • Root cause: a client sets ca_maxresponsesize_cached to the minimum, so each session slot gets a zero-length sl_data[] buffer. nfsd4_sequence() narrows the reply buffer before accepting the slot sequence ID. A padded COMPOUND tag fills the buffer after SEQUENCE, so the encoder returns without an error and the full reply is copied into the empty slot.
    • KASAN shows an 80-byte write: 61 bytes land past the heap object and 40 of those are client-chosen.
    • Chain: the overflow corrupts a neighbouring slot's bookkeeping. A replay request leaks 3.8 KB of kernel heap, which exposes the KASLR slide. A forged pointer triggers an arbitrary free, and the freed memory is refilled with a fake callback built from NFS client names. On disconnect nfsd invokes the callback and the kernel runs /bin/sh as root.
    • Detection: the traffic is valid NFS, so no network signature exists. Watch for kernel warnings from nfsd4_check_resp_size, oopses with nfsd4_, svc_ or call_usermodehelper* frames, shells spawned by kernel workers, and bursts of short NFSv4.1 sessions from one source.

    Remediation

    • Fixed releases: Linux 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1. Distribution kernels need the update that lists the CVE, then a reboot.
    • Workaround: restrict tcp/2049 to the storage network, for example with an nftables drop rule for other source ranges.
    • Disabling NFSv4.1 and 4.2 in /etc/nfs.conf also closes the path, but it turns off pNFS and some 4.2 features.
    • Kernel hardening does not remove the overflow.
  3. bleepingcomputer.com ↗ · pub. 27/11/2026 05:06 · coletado 27/11 06:00 primeiro registro

    NFS2ROOT: 12-year-old Linux kernel nfsd heap overflow (CVE-2026-99362) allows remote root; no exploitation reported

    ler a análise desta fonte

    A heap buffer overflow in the Linux kernel NFS server (nfsd), tracked as CVE-2026-99362 and dubbed NFS2ROOT by OpenSec, lets unauthenticated remote attackers gain root. The flaw has existed since kernel 3.16 (March 2014). It was found by Jérémy Jean of ANSSI, who submitted a fix in August. OpenSec shared a full remote-root exploit and a patch with the NFSD maintainers in late September. The article reports no exploitation in the wild. This record is based on the article alone, because no web research was done, so vendor CVSS and distribution advisories were not checked.

    Technical Details

    • Affected: kernels older than 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1.
    • Prerequisites: nfsd (v4.1 or 4.2) loaded and running, and TCP port 2049 reachable from the attacker.
    • Attack: crafted requests make nfsd write past an allocated buffer. This leaks kernel memory, bypasses KASLR and plants a callback in freed memory. When the attacker closes the NFS connection, the kernel runs the embedded command as root.
    • Detection (OpenSec): kernel warnings from nfsd4_check_resp_size, shells spawned by kernel workers on a file server, bursts of short NFSv4.1 sessions from one source, and kernel oopses with nfsd4_, svc_ or call_usermodehelper* frames. There are no network signatures.

    Remediation

    • Apply the distribution kernel security updates and reboot.
    • As a workaround, restrict TCP 2049 to trusted clients or networks.
    • If NFS sharing is not needed, stop and disable the nfs-server service.

Repetiram sem novidade