upvote
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.
reply
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.

reply
also you can nail on kerberos to actually enforce permissions if you're still just doing uid/guid matching.

Still, getting root on your internal fileserver isn't great.

reply
> It's pretty common to configure it in a way that you trust the client when they say they're root

This is how you can tell you’re reading a post from a Real Old Time hacker. Hasn’t been that way for a long time.

reply
The root_squash option has been default since as long as I can remember.
reply
I will take that as a compliment.
reply
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...
reply
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.
reply
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.
reply
Isn't this CVE-2026-99362? Because pretty much all of ubuntu installs are affected.
reply
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).
reply
Yes, should have been more precise.
reply
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.

reply
> 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.

reply
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.
reply
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.
reply
I'm not "in the game" right now but here's my take on this:

  1. there are some servers where an NFS export is provided to some users basically "read only" and where the security model is "if you're in the same network you can access this data; we're all friends but I'll keep the crown jewels in that other walled off network away from y'all."  In that case, using NFS V3 style UID access management is good enough.  This (for those sorts of users) is an "audit the config, update it to use only NFS versions that aren't subject to this and disable the newer versions... probably also update the "risk register and put a "we'll never actually do this" story in place to update this to some object store / proper data warehouse style system.

  2. there are systems such as what you've described where there's users with NFS shared homes.  In those situations, hopefully, they're using some sort of "Appliance" system such as a netapp, where things like HA and such are managed by the vendor.  In those cases, hopefully, they're not relying on kernel NFS services, and again this is not an issue.

  3. there are systems such as the one above, but they're actually using linux.  In those cases, hopefully, they're using NFS-ganesha (a userland NFS server) because it's got a couple nice big-iron management style features.  Again, this avoids this V4.1+ situation.

  4. people stuck in amber, who are doing as you suggest (NFS kernel exports of things that require real user identities) -- those situations are actually kinda rare, and hopefully those people who are actually doing this know what they're doing, or are so YOLO that they don't care.
reply
Uh, I think part of the motivation for NFSv4 was the poor performance of NFSv3 over long distances (long fat pipes) across the Internet. But that was 20 years ago, before cloud computing / cloud storage became a thing.
reply
> the poor performance of NFSv3 over long distances

Ooo now, thats a good question. I used to work in VFX, and NFS was/is the bread and butter of file IO. We used to turn off v4 because it was slower over the LAN. If we were doing long disntance we'd use aspera (or what ever opensource version we could get our hands on) failing that we'd ship LTO5/6 tapes.

From a performance point of view, I know that v4 could do clustered servers natively. As in "HA" for NFS servers (that did require clustered filesystem though....)

the problem being was that you needed to fiddle about with auth to make it work, which from my understanding caused performance issues. But, that was in 2014, and we are many years ahead in CPU and memory speed now.

reply
I do recall an educational institute in the late 90s exporting their /home directories to *(rw,root_squash), No firewall.
reply
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.

reply
I'm not so sure, it says pre-auth. Does anyone know?
reply
deleted
reply
Too lazy to check but I would t be surprised if there’s plenty of open ports on the internet for this protocol.
reply