All reports
Medium

kernel: ceph: don't leak snap_rwsem in handle_cap_grant

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-50059

Probability of exploitation in the next 30 days: 0.46%

FIRST EPSS · 2026-11-21

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.

A flaw was found in the Linux kernel. When the handle_cap_grant function is called during an IMPORT operation, the snap_rwsem (a semaphore for snapshot read-write operations) is acquired but not always released. This resource leak can lead to a system deadlock, resulting in a Denial of Service (DoS) for affected systems.