CVE-2022-50302 lockd: set other missing fields when unlocking files
A null pointer dereference in the Linux kernel lockd module can cause a system crash when unlocking files in Re-exported NFSv3 scenarios.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-50302?
CVE-2022-50302 is a high-severity vulnerability in Linux kernel, published on 15 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
lockd: set other missing fields when unlocking files
vfs_lock_file() expects the struct file_lock to be fully initialised by the caller. Re-exported NFSv3 has been seen to Oops if the fl_file field is NULL.
Which versions are affected by CVE-2022-50302?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-50302?
Apply the vendor's patch.
Is CVE-2022-50302 being exploited?
There is no known exploitation of CVE-2022-50302 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as GHSA-wj7r-jvv5-837p, UBUNTU-CVE-2022-50302.