[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025061849-CVE-2022-50059-efa6@gregkh>
Date: Wed, 18 Jun 2025 13:02:04 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-50059: ceph: don't leak snap_rwsem in handle_cap_grant
From: Greg Kroah-Hartman <gregkh@...nel.org>
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.
The Linux kernel CVE team has assigned CVE-2022-50059 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.8 with commit 6f05b30ea063a2a05dda47a4105a69267ae5270f and fixed in 5.10.138 with commit aee18421bda6bf12a7cba6a3d7751c0e1cfd0094
Issue introduced in 5.8 with commit 6f05b30ea063a2a05dda47a4105a69267ae5270f and fixed in 5.15.63 with commit f546faa216d0f53a42ca73ba1fd8c48765b22d77
Issue introduced in 5.8 with commit 6f05b30ea063a2a05dda47a4105a69267ae5270f and fixed in 5.19.4 with commit a090cc69699ec2d11b5e34cee8c61f0d4b0068cb
Issue introduced in 5.8 with commit 6f05b30ea063a2a05dda47a4105a69267ae5270f and fixed in 6.0 with commit 58dd4385577ed7969b80cdc9e2a31575aba6c712
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2022-50059
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/ceph/caps.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/aee18421bda6bf12a7cba6a3d7751c0e1cfd0094
https://git.kernel.org/stable/c/f546faa216d0f53a42ca73ba1fd8c48765b22d77
https://git.kernel.org/stable/c/a090cc69699ec2d11b5e34cee8c61f0d4b0068cb
https://git.kernel.org/stable/c/58dd4385577ed7969b80cdc9e2a31575aba6c712
Powered by blists - more mailing lists