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

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2025-06-18T11:02:07.945Z
- Modified: 2026-10-15T22:17:27.010Z
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 6f05b30ea063a2a05dda47a4105a69267ae5270f before aee18421bda6bf12a7cba6a3d7751c0e1cfd0094; from 6f05b30ea063a2a05dda47a4105a69267ae5270f before f546faa216d0f53a42ca73ba1fd8c48765b22d77; from 6f05b30ea063a2a05dda47a4105a69267ae5270f before a090cc69699ec2d11b5e34cee8c61f0d4b0068cb; from 6f05b30ea063a2a05dda47a4105a69267ae5270f before 58dd4385577ed7969b80cdc9e2a31575aba6c712; 5.8 (not affected: before 5.8; from 5.10.138 up to 5.10.*; from 5.15.63 up to 5.15.*; from 5.19.4 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.8 before 5.10.138; from 5.11 before 5.15.63; from 5.16 before 5.19.4

## Every score

- Linux: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/aee18421bda6bf12a7cba6a3d7751c0e1cfd0094> (patch)
- <https://git.kernel.org/stable/c/f546faa216d0f53a42ca73ba1fd8c48765b22d77> (patch)
- <https://git.kernel.org/stable/c/a090cc69699ec2d11b5e34cee8c61f0d4b0068cb> (patch)
- <https://git.kernel.org/stable/c/58dd4385577ed7969b80cdc9e2a31575aba6c712> (patch)

## Sources

- CVE List: [CVE-2022-50059](https://www.cve.org/CVERecord?id=CVE-2022-50059), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2022-50059](https://nvd.nist.gov/vuln/detail/CVE-2022-50059), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2022-50059 · Whole record: https://cve.day/CVE-2022-50059.json · Rebuilt by cve.day 2026-11-25T22:58:21.032Z
