I never understood why Linux has to have the NFS server inside the kernel. There are a couple userspace servers but they don't seem widely used or maintained.
Obviously not written with AI in mind, but certainly seems to be true with the many AI eyes on open source at the moment.
Makes me wonder, is the access to the Windows source code one could apply for still a thing? If so, anyone know if there are security firms out there running the same kind of AI deep review for vulnerabilities against it?
From my limited understanding, the NT kernel runs a lot less code at the most privileged level (e.g. drivers), so perhaps that means the chances of finding such escalation vulns are a lot less?
Micro-kernels have always been said to have unsolvable performance problems vs monolithic ones, but have we perhaps entered a time where we are willing to trade off speed for reduced risk? Maybe some orgs running interpreted/JIT'ed languages on Linux would be better served rewriting in more performant ones whilst switching to micro-kernel style OSes, ending up hopefully with at least performance parity to what they had before?
Rewriting large swaths of the Linux kernel (and userspace?) in Rust may also be enough?
> access to the Windows source code one could apply for still a thing?
you don't need it, it doesn't matter that much
modern AIs are _incredible_ good at decompiling & reverse engineering to a point where experts in the field have publicly stated it has gotten better then them the "groundwork" (binary -> some kind of sourcode; at least in many "standard" cases)
the reason you mainly see news about AI finding vulnerabilities in open source a huge observation bias.
Mainly:
=> if you non maliciously look for security issues to report & publicize there is a bug preference for OSS (for a variety of reasons)
=> but if you maliciously look for issues you can sell proprietary software is often much more interesting (for a variety of reasons)
=> due to Linux being a critical foundational block for many huge companies there are probably many millions spend on tokens to weed out security issues
=> and for a proprietary code only the company which owns is has a good legal foothold to run analysis on it, any even if they find 1000 CVE worthy bugs, will they report them?? And will they have the same insensitive to spend huge amount of tokens on this?? Probably not always. (It's not that other can't run analysis, as mentioned decom&reverse engineering works super well. But companies threatening to sue you if you did so are not rare. And that is no matter weather they have a legal basis for it or weather you reported it in good will. Sadly being in the right doesn't protect you from abuse by through the legal system. Hence also why security researchers often prefer OSS.)
So it you sum up, if people apply it to OSS it tends to be in the open, if they apply it to closed source it often is not or less public.
BUT this means the arguments "against open source" I have seen in some sources recently really do not add up at all and to some degree it is even the opposite.
if you are supper nit-picky about the definition of the class of vulnerability then yes
but if you look at the relevant "fallout" an attacker can cause then it's not a good point for Windows as you often don't need to actually get RCE in the NT kernel at all to do all the damage you want to do.
Through yes I think the Qubes and similar go in the right direction (VM sandbox everything). And micro kernel which put most work into (sandboxed) user-space seem increasingly like a "insanely good" idea. The "speed tradeoffs" are also often not really a issue at all. (1)
But it also gets increasingly more clear that trusting sandboxes is ... not always the best idea and the best thing to do is to make sure no untrusted code run at all. Sure that often isn't feasible. But for servers there is an increasing case for systems which _can_ only run what you ship and nothing else (2). Only problem is that is inherently in conflict with JIT, scripting languages etc...
---
(1): Micro-Kernels have certain choke points, but outside of some HPC-stuff they might not matter at all and/or can be worked around. E.g. Nintendo Switch might have slow hardware but isn't exactly inefficient in running games on that slow hardware, it has a micro kernel (so has Switch 2). E.g. a surprising amount of web services are run in python which is many magnitudes more a perf. drawback then what micro kernels impose. And even many of the most common web services (e.g. node or java based) might run fast (V8/Java can be reasonable fast) but would work "fine" even if they where 10%-50% slower (and for a lot of stuff we are speaking about ~5% throughput perf. drawback in average, much less if perf. is mostly compute in a small set of data and not moving data). And for LLM servers -5% throughput (between GPU and service) might matter, but you could most likely find a way to work around that, reducing it to a acceptable level not relevant compared to general time spend in the GPU doing compute.
(2): As in: A lot of hardware protections from read xor write memory to stuff which makes turning your code into gadgets or ROP very hard. Then added on top something which makes sure only signed code is loaded into executable memory. And make sure that all code is singed by the OS or your own key. (And yes that only makes sense for headless systems you never login like single service VMs (as it also implies there is no shell or any other capability to run "arbitrary scripts, even if by hand").
unsolvable performance problems for people selling compute and ads (and a small minority doing HPC) != performance problems in practice. If the impact was that your browser now runs at half speed, skip the ads...
It really sounds like this is only NFS 4.1 and 4.2 and up(?). So my mitigation for right now (on distros that are out of support re: kernel) is simply to disable 4.1 and 4.2 protocol like the below (turn nfs-server off first),
$ echo "-4.1 -4.2" | sudo tee /proc/fs/nfsd/versions
I am no security expert but for now this change, which is temporary and reverts on reboot, seems reasonable. Before I did this I checked if my clients used nfs 4.1 or 4.2 at all and only one computer on my network did and it has fine 3/4 support. The vast majority of my nfs traffic is v3.
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).
Given the pace of LLMs finding vulnerabilities recently, how do you propose anyone will ever be able to establish a track record in the future without already having access? You're describing a system where it's literally impossible for anyone new to ever enter the field (other than a privileged few who work for these AI companies I guess)
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.
seL4 itself does (intentionally) little, as is typical for micro-kernels. If you run Linux in a VM atop of it for the NFS service, than that VM would be indeed just as vulnerable. The idea of micro-kernels however is, that services like NFS would run unprivileged and get their own address space, so the damage would be limited. Now as to whether there exists a stand-alone NFS server for seL4 ...
I miss the times of well written blog posts from security researchers that do deep dives into these security issues. Now every vulnerability disclosure is just an AI-written marketing stunt.
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.
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.
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.
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...
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).
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.
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.
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.
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.
> 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.
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:
Missing from the list is 7.0, which is used by Ubuntu 26.04 and everything downstream. But presumably they've already patched it themselves.
One has to wonder, however, why Canonical doesn't stick to LTS kernels for their LTS distro. They already offer the HWE kernel for those who need a more up-to-date kernel (whose version is bumped twice a year I think).
Taking on the burden of backporting patches themselves has to have become quite costly (and reckless) in $CURRENTYEAR.
> 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.
I never understood why Linux has to have the NFS server inside the kernel. There are a couple userspace servers but they don't seem widely used or maintained.
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.
Surely this must come with an unacceptable performance hit? I still need to maintain 80% of my 10gb/s link.
Not too bad. I have benchmarks
You can try
`pfw metrics`
To see.
We use a ton of clever JIT compilation techniques to lower code directly onto the NIC
I was measuring sub microsecond decision time
> Given enough eyeballs, all bugs are shallow
Obviously not written with AI in mind, but certainly seems to be true with the many AI eyes on open source at the moment.
Makes me wonder, is the access to the Windows source code one could apply for still a thing? If so, anyone know if there are security firms out there running the same kind of AI deep review for vulnerabilities against it?
From my limited understanding, the NT kernel runs a lot less code at the most privileged level (e.g. drivers), so perhaps that means the chances of finding such escalation vulns are a lot less?
Micro-kernels have always been said to have unsolvable performance problems vs monolithic ones, but have we perhaps entered a time where we are willing to trade off speed for reduced risk? Maybe some orgs running interpreted/JIT'ed languages on Linux would be better served rewriting in more performant ones whilst switching to micro-kernel style OSes, ending up hopefully with at least performance parity to what they had before?
Rewriting large swaths of the Linux kernel (and userspace?) in Rust may also be enough?
(Edited: formatting)
> > AI eyes on open source at the moment.
> access to the Windows source code one could apply for still a thing?
you don't need it, it doesn't matter that much
modern AIs are _incredible_ good at decompiling & reverse engineering to a point where experts in the field have publicly stated it has gotten better then them the "groundwork" (binary -> some kind of sourcode; at least in many "standard" cases)
the reason you mainly see news about AI finding vulnerabilities in open source a huge observation bias.
Mainly:
=> if you non maliciously look for security issues to report & publicize there is a bug preference for OSS (for a variety of reasons)
=> but if you maliciously look for issues you can sell proprietary software is often much more interesting (for a variety of reasons)
=> due to Linux being a critical foundational block for many huge companies there are probably many millions spend on tokens to weed out security issues
=> and for a proprietary code only the company which owns is has a good legal foothold to run analysis on it, any even if they find 1000 CVE worthy bugs, will they report them?? And will they have the same insensitive to spend huge amount of tokens on this?? Probably not always. (It's not that other can't run analysis, as mentioned decom&reverse engineering works super well. But companies threatening to sue you if you did so are not rare. And that is no matter weather they have a legal basis for it or weather you reported it in good will. Sadly being in the right doesn't protect you from abuse by through the legal system. Hence also why security researchers often prefer OSS.)
So it you sum up, if people apply it to OSS it tends to be in the open, if they apply it to closed source it often is not or less public.
BUT this means the arguments "against open source" I have seen in some sources recently really do not add up at all and to some degree it is even the opposite.
> Micro-kernels have always been said to have unsolvable performance problems vs monolithic ones
I think that has been refuted by Jochen Liedtke's work (L3, then L4 micro kernels).
> finding such escalation vulns are a lot less?
if you are supper nit-picky about the definition of the class of vulnerability then yes
but if you look at the relevant "fallout" an attacker can cause then it's not a good point for Windows as you often don't need to actually get RCE in the NT kernel at all to do all the damage you want to do.
Through yes I think the Qubes and similar go in the right direction (VM sandbox everything). And micro kernel which put most work into (sandboxed) user-space seem increasingly like a "insanely good" idea. The "speed tradeoffs" are also often not really a issue at all. (1)
But it also gets increasingly more clear that trusting sandboxes is ... not always the best idea and the best thing to do is to make sure no untrusted code run at all. Sure that often isn't feasible. But for servers there is an increasing case for systems which _can_ only run what you ship and nothing else (2). Only problem is that is inherently in conflict with JIT, scripting languages etc...
---
(1): Micro-Kernels have certain choke points, but outside of some HPC-stuff they might not matter at all and/or can be worked around. E.g. Nintendo Switch might have slow hardware but isn't exactly inefficient in running games on that slow hardware, it has a micro kernel (so has Switch 2). E.g. a surprising amount of web services are run in python which is many magnitudes more a perf. drawback then what micro kernels impose. And even many of the most common web services (e.g. node or java based) might run fast (V8/Java can be reasonable fast) but would work "fine" even if they where 10%-50% slower (and for a lot of stuff we are speaking about ~5% throughput perf. drawback in average, much less if perf. is mostly compute in a small set of data and not moving data). And for LLM servers -5% throughput (between GPU and service) might matter, but you could most likely find a way to work around that, reducing it to a acceptable level not relevant compared to general time spend in the GPU doing compute.
(2): As in: A lot of hardware protections from read xor write memory to stuff which makes turning your code into gadgets or ROP very hard. Then added on top something which makes sure only signed code is loaded into executable memory. And make sure that all code is singed by the OS or your own key. (And yes that only makes sense for headless systems you never login like single service VMs (as it also implies there is no shell or any other capability to run "arbitrary scripts, even if by hand").
unsolvable performance problems for people selling compute and ads (and a small minority doing HPC) != performance problems in practice. If the impact was that your browser now runs at half speed, skip the ads...
I run my NFSv4 server behind spiped, so I think I'm safe here?
Depends, are you the only one using this nfs server?
Yes? You're probably safe.
No? You might want to patch this even if you trust the others that have access to it.
It really sounds like this is only NFS 4.1 and 4.2 and up(?). So my mitigation for right now (on distros that are out of support re: kernel) is simply to disable 4.1 and 4.2 protocol like the below (turn nfs-server off first),
I am no security expert but for now this change, which is temporary and reverts on reboot, seems reasonable. Before I did this I checked if my clients used nfs 4.1 or 4.2 at all and only one computer on my network did and it has fine 3/4 support. The vast majority of my nfs traffic is v3.Security was one of the most important features of NFSv4 over v3 (krb, ACLs, end of blind UID trust...).
no poc posted
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).
that's great for the 8 people that have access to that
You can just ask for CVP, same with OpenAI TAC
https://portal.anthropic.com/programs/cvp
https://chatgpt.com/cyber
Presumably "ask" means they can say no? Or else why even require asking at all?
It's a formality. They do it so they can claim to care.
I did, they said no.
No, first level of CVP (defense) is available to almost everyone who pass KYC identity check and has any track record of security findings.
> has any track record of security findings
Given the pace of LLMs finding vulnerabilities recently, how do you propose anyone will ever be able to establish a track record in the future without already having access? You're describing a system where it's literally impossible for anyone new to ever enter the field (other than a privileged few who work for these AI companies I guess)
First level cvp generally won't write exploit code. It barely does anything different from vanilla.
That's not been my experience.
Wow, I'm one in 8? Cool!
If he had a name, it's long since been lost. He would have been known only as a servant of evil. One of a number. ... One of nine.
Then post it.
Why
To warrant the hype panic from the website.
Each such vuln a reminder that seL4[0] exists, and that Linux's TCB isn't getting smaller anytime soon.
0. http://sel4.systems/
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.
seL4 itself does (intentionally) little, as is typical for micro-kernels. If you run Linux in a VM atop of it for the NFS service, than that VM would be indeed just as vulnerable. The idea of micro-kernels however is, that services like NFS would run unprivileged and get their own address space, so the damage would be limited. Now as to whether there exists a stand-alone NFS server for seL4 ...
I miss the times of well written blog posts from security researchers that do deep dives into these security issues. Now every vulnerability disclosure is just an AI-written marketing stunt.
I hate LLM text as much as anyone but with so many vulns, you can somewhat understand the use of AI for writing surely
With so many, they're less novel, less interesting in a sense, so less worthy of effort writing by a human
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.
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.
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.
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.
> 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.
The root_squash option has been default since as long as I can remember.
I will take that as a compliment.
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...
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.
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.
Isn't this CVE-2026-99362? Because pretty much all of ubuntu installs are affected.
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).
Yes, should have been more precise.
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.
> 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.
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.
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.
I'm not "in the game" right now but here's my take on this:
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.
> 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.
I do recall an educational institute in the late 90s exporting their /home directories to *(rw,root_squash), No firewall.
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.
I'm not so sure, it says pre-auth. Does anyone know?
This is what I wrote and knew.
https://www.linuxjournal.com/content/encrypting-nfsv4-stunne...
Too lazy to check but I would t be surprised if there’s plenty of open ports on the internet for this protocol.
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
Missing from the list is 7.0, which is used by Ubuntu 26.04 and everything downstream. But presumably they've already patched it themselves.
One has to wonder, however, why Canonical doesn't stick to LTS kernels for their LTS distro. They already offer the HWE kernel for those who need a more up-to-date kernel (whose version is bumped twice a year I think).
Taking on the burden of backporting patches themselves has to have become quite costly (and reckless) in $CURRENTYEAR.
Introduced 12 years ago? The silver lining I suppose is that Synology devices won't be affected.
/s
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:
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.
Not sure why your comment was [dead]. Vouched.
NFS is insecure full stop.
It was a huge source of vulnerabilities in Windows back in the days and now we see issues in Linux too.
I think linux kernel should not include these scrappy protocols to begin with.