What’s Vulnerable › Vulnerabilities
CVE-2022-50059: ceph: don't leak snap_rwsem in handle_cap_grant
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-06-18 · updated 2026-10-15
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.
Affected products
- Linux kernel: from 5.8 before 5.10.138; from 5.11 before 5.15.63; from 5.16 before 5.19.4 — fixed in 5.10.138, 5.15.63, 5.19.4
How to fix
Upgrade to a fixed version: Linux kernel 5.10.138, 5.15.63, 5.19.4. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/58dd4385577ed7969b80cdc9e2a31575aba6c712
- https://git.kernel.org/stable/c/a090cc69699ec2d11b5e34cee8c61f0d4b0068cb
- https://git.kernel.org/stable/c/aee18421bda6bf12a7cba6a3d7751c0e1cfd0094
- https://git.kernel.org/stable/c/f546faa216d0f53a42ca73ba1fd8c48765b22d77
Get alerted when CVE-2022-50059 or the next vulnerability affects your stack