CVE-2022-50729 ksmbd: Fix resource leak in ksmbd_session_rpc_open()
A resource leak in the Linux kernel ksmbd module allows authenticated attackers to cause a denial of service by triggering RPC open failures.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-50729?
CVE-2022-50729 is a denial of service vulnerability in Linux, published on 24 Dec 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: Fix resource leak in ksmbd_session_rpc_open()
When ksmbd_rpc_open() fails then it must call ksmbd_rpc_id_free() to undo the result of ksmbd_ipc_id_alloc().
Which versions are affected by CVE-2022-50729?
How do I fix CVE-2022-50729?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-50729 being exploited?
There is no known exploitation of CVE-2022-50729 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2022-50729, GHSA-xrp3-5xgj-7xgw, UBUNTU-CVE-2022-50729.