CVE-2022-50059 ceph: don't leak snap_rwsem in handle_cap_grant

High 7.5 Published Updated

A missing lock release in the Ceph filesystem code can cause a deadlock, leading to a denial of service in the Linux kernel.

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-50059?

CVE-2022-50059 is a high-severity denial of service vulnerability in Linux kernel, published on 18 Jun 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:

ceph: don't leak snap_rwsem in handle_cap_grant

When handle_cap_grant is called on an IMPORT op, then the snap_rwsem is held and the function is expected to release it before returning. It currently fails to do that in all cases which could lead to a deadlock.

Which versions are affected by CVE-2022-50059?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-50059?

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-50059 being exploited?

There is no known exploitation of CVE-2022-50059 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-50059, GHSA-99r2-mp2r-q25r, UBUNTU-CVE-2022-50059.

Is CVE-2022-50059 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free