{"id":"CVE-2022-50059","summary":"ceph: don't leak snap_rwsem in handle_cap_grant","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: don't leak snap_rwsem in handle_cap_grant\n\nWhen handle_cap_grant is called on an IMPORT op, then the snap_rwsem is\nheld and the function is expected to release it before returning. It\ncurrently fails to do that in all cases which could lead to a deadlock.","modified":"2026-04-03T13:14:44.570869990Z","published":"2025-06-18T11:02:07.945Z","related":["SUSE-SU-2025:02264-1","SUSE-SU-2025:02308-1","SUSE-SU-2025:02320-1","SUSE-SU-2025:02321-1","SUSE-SU-2025:02322-1","SUSE-SU-2025:02537-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50059.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/58dd4385577ed7969b80cdc9e2a31575aba6c712"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a090cc69699ec2d11b5e34cee8c61f0d4b0068cb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/aee18421bda6bf12a7cba6a3d7751c0e1cfd0094"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f546faa216d0f53a42ca73ba1fd8c48765b22d77"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50059.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50059"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6f05b30ea063a2a05dda47a4105a69267ae5270f"},{"fixed":"aee18421bda6bf12a7cba6a3d7751c0e1cfd0094"},{"fixed":"f546faa216d0f53a42ca73ba1fd8c48765b22d77"},{"fixed":"a090cc69699ec2d11b5e34cee8c61f0d4b0068cb"},{"fixed":"58dd4385577ed7969b80cdc9e2a31575aba6c712"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50059.json"}}],"schema_version":"1.7.5"}