CVE-2022-50385 NFS: Fix an Oops in nfs_d_automount()
A null pointer dereference in the Linux kernel NFS automount handler allows local attackers to cause a system crash.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-50385?
CVE-2022-50385 is a medium-severity vulnerability in Linux kernel, published on 18 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
NFS: Fix an Oops in nfs_d_automount()
When mounting from a NFSv4 referral, path->dentry can end up being a negative dentry, so derive the struct nfs_server from the dentry itself instead.
Which versions are affected by CVE-2022-50385?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-50385?
Apply the vendor's patch.
Is CVE-2022-50385 being exploited?
There is no known exploitation of CVE-2022-50385 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-50385, GHSA-gmx5-vgh2-2g4v, UBUNTU-CVE-2022-50385.