Nfs2root: A 12-year-old pre-auth remote root in the Linux kernel's NFS server
https://opensec.in/blog/nfs2root-cve-2026-99362loading story #50655522
loading story #50649541
loading story #50652745
loading story #50651596
loading story #50651118
loading story #50648352
loading story #50649119
loading story #50655185
loading story #50650163
loading story #50655128
loading story #50654781
loading story #50648259
loading story #50655424
loading story #50652463
loading story #50651000
loading story #50651757
loading story #50655086
Just wow. How was this achieved? Let's see:
> Pre-auth heap overflow in the Linux NFS server (nfsd)
> Set it to the minimum and every slot's buffer is zero bytes. nfsd4_sequence() then shrinks the reply buffer to that limit before it accepts the slot. Pad the request's tag so the buffer fills right after the SEQUENCE opcode, and the encoder quits without flagging an error. The server believes SEQUENCE succeeded and caches the whole reply, headers and tag included, into a buffer with room for nothing.
Then it causes an out-of-bounds crash:
>> BUG: KASAN: slab-out-of-bounds in read_bytes_from_xdr_buf+0x1bc/0x390
>> Write of size 80 at addr ffff888003a549cd
>> __asan_memcpy+0x38/0x60
>> read_bytes_from_xdr_buf+0x1bc/0x390
>> nfsd4_sequence_done+0x5b0/0x810
>> nfs4svc_encode_compoundres+0x1bf/0x240
So yet another memory corruption issue that gives the attacker control of the execution and its possible to get root on the system and this is in the kernel itself so "hardening" does not remove the bug.What a disaster.
loading story #50654398