Linux Kernel NFSv4 Server Race Condition Remote Code Execution Vulnerability
The Linux kernel's NFSv4 server mishandled locking around nfs4_openowner objects, creating a race condition. An authenticated remote attacker could exploit this to run code with kernel privileges on systems running nfsd.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Linux Kernel. Authentication is required to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a missing or incorrect lock protecting nfs4_openowner objects, allowing concurrent operations to corrupt shared state.
Impact
An authenticated remote attacker could execute arbitrary code in the kernel context, but only on systems with nfsd enabled.
What the attacker needed
Remote access to an NFSv4 server; valid authentication; nfsd enabled on the target
The fix
The kernel was fixed by an upstream update that corrects the locking.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A race condition is when two actions happen at nearly the same moment and the program handles them in an unsafe order. Here the kernel's network file server (NFS) did not lock a shared object properly, so a logged-in remote user could trigger the bad ordering and take over the machine at the deepest level. Only servers that run the NFS service are affected.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.