CVE-2022-50059

Source
https://cve.org/CVERecord?id=CVE-2022-50059
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50059.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50059
Downstream
Related
Published
2025-06-18T11:02:07.945Z
Modified
2026-05-18T05:55:18.489191070Z
Summary
ceph: don't leak snap_rwsem in handle_cap_grant
Details

In the Linux kernel, the following vulnerability has been resolved:

ceph: don't leak snaprwsem in handlecap_grant

When handlecapgrant 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50059.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.8.0
Fixed
5.10.138
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.63
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.19.4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50059.json"