Top
Best
New

Posted by dm 6 hours ago

Nfs2root: A 12-year-old pre-auth remote root in the Linux kernel's NFS server(opensec.in)
92 points | 29 comments
r3tr0 2 hours ago|
yeet can actually patch this via its XDP L7 programmable firewall

https://github.com/yeet-src/pfw

Here is the specific rule. I just added and confirmed it. (can see the CI).

https://github.com/yeet-src/pfw-rules/blob/53f78fc5823354f4a...

just pull the repo w `pfw pull` then `pfw ls` and apply and you're all set.

gsich 4 hours ago||
no poc posted
snizovtsev 4 hours ago|
Claude is able to generate it in a few minutes if you have CVP. I do linux kernel patching as my day job, poc for this CVE is 106 lines of python code in my collection (1000+ ai-generated pocs since last month).
akersten 3 hours ago||
that's great for the 8 people that have access to that
taspeotis 3 hours ago|||
You can just ask for CVP, same with OpenAI TAC

https://portal.anthropic.com/programs/cvp

https://chatgpt.com/cyber

snizovtsev 2 hours ago||||
No, first level of CVP (defense) is available to almost everyone who pass KYC identity check and has any track record of security findings.
dmd 2 hours ago|||
Wow, I'm one in 8? Cool!
snvzz 3 hours ago||
Each such vuln a reminder that seL4[0] exists, and that Linux's TCB isn't getting smaller anytime soon.

0. http://sel4.systems/

yjftsjthsd-h 1 hour ago|
How much does that help? My impression is that seL4 is great at what it does, but what it does is so limited that to e.g. host NFS on it you're just going to run Linux in a VM at which point... I guess it depends on the details and your threat model, but it feels like a long road back do the same place.
scottchiefbaker 1 hour ago||
This bug was patched several months ago. If you've been patching for all the CVEs that have come out recently you're probably already protected. Per the end of the article here are the patched version of each Kernel branch:

6.12.117

6.18.61

7.3.2

7.4-rc1

This is CVE-2026-99362

Gigachad 4 hours ago||
Thankfully no one assumed NFS secure for the public internet anyway so this should be minimally impactful. Also looks like it was patched upstream months ago.

Still, just another example of why C code can’t be exposed to the internet.

asveikau 4 hours ago||
NFS in particular is an old protocol and authentication was bolted on later in its long history. It's pretty common to configure it in a way that you trust the client when they say they're root. This adds to the perception that nobody would assume it's safe to expose.
chasil 3 hours ago||
NFSv3 assumes that uid/gid synchronization is in place, and maps root activity on the shared volume to some kind of nobody (unless the volume is exported nosquash). The username is irrelevant; the uid controls access (AFAIK).

NFSv4 needs idmapd, which is a different beast altogether.

svl7 4 hours ago|||
Well... I've seen enough examples in the past years of how trivial it is to get into bigger enterprise networks.Often solely with social engineering. NFS is in use at various places internally in my experience. So this can end up worse than anticipated if taken too lightly imo. Defense in depth...
Gigachad 4 hours ago||
I’m not saying ignore this, but it’s not a run around hair on fire situation like php2shell. Just update your servers as normal.
davrosthedalek 4 hours ago|||
Isn't this CVE-2026-99362? Because pretty much all of ubuntu installs are affected.
VorpalWay 4 hours ago|||
I assume you mean "all Ubuntu installs of NFS" here. Your statement could be misread by those who don't know as "all Ubuntu installs", but NFS is not installed or turned on by default. I would expect very few installs do overall (but of course all of them will in specific environments).
davrosthedalek 1 hour ago||
Yes, should have been more precise.
asveikau 4 hours ago|||
Most ubuntu installs aren't running NFS servers.

If someone sets up an NFS server, they know what kind of risk they open themselves up to.

loeg 3 hours ago|||
> If someone sets up an NFS server, they know what kind of risk they open themselves up to.

I don't think preauth RCE is an expected risk of setting up NFS, actually.

asveikau 2 hours ago||
It's really not the most shocking thing in the world. I've never heard of anyone exposing the NFS port to the public internet intentionally, because people who run NFS servers know this is not expected to be secure.
davrosthedalek 1 hour ago||
Not public internet, no, but open to internal networks. For example: University networks. Many installation with NFS shared home. Can people now get root on the server? I'm not sure you need mounting rights on the server (i.e. a /etc/exports entry) to exploit this.
chasil 3 hours ago|||
The last time that I tried, you had to install the server package to get the client to work on Ubuntu.

Then, you need to add volumes to /etc/exports with allowed hostnames (with lots of parameters for access control).

I'm assuming that anything disallowed by /etc/exports is not allowed, this exploit included.

davrosthedalek 1 hour ago||
I'm not so sure, it says pre-auth. Does anyone know?
anthk 3 hours ago|||
More than C, low level code for trivial userland daemons/functions. I remember WAV decoding functions on Win32 back in the day... in the kernel.
VladVladikoff 8 minutes ago|||
Too lazy to check but I would t be surprised if there’s plenty of open ports on the internet for this protocol.
rvz 6 hours ago|
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.

Bender 4 hours ago|
Not sure why your comment was [dead]. Vouched.
asdf88990 3 hours ago||
It is AI written.