CVE-2022-50072 NFSv4/pnfs: Fix a use-after-free bug in open
A use-after-free bug in the Linux kernel's NFSv4/pnfs open handling allows attackers to potentially execute code or escalate privileges.
- 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-50072?
CVE-2022-50072 is a high-severity use after free vulnerability in Linux kernel, published on 18 Jun 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:
NFSv4/pnfs: Fix a use-after-free bug in open
If someone cancels the open RPC call, then we must not try to free either the open slot or the layoutget operation arguments, since they are likely still in use by the hung RPC call.
Weakness: CWE-416
Which versions are affected by CVE-2022-50072?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-50072?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2022-50072 being exploited?
There is no known exploitation of CVE-2022-50072 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-50072, GHSA-j3q7-wh4c-9xv8, UBUNTU-CVE-2022-50072.