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.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aee18421bda6bf12a7cba6a3d7751c0e1cfd0094",
"target": {
"file": "fs/ceph/caps.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50059-811af212",
"digest": {
"threshold": 0.9,
"line_hashes": [
"168399889354911174599465832803962614232",
"5393276526989597759173715358680988922",
"271349429387925517138715744184977411105",
"114350068790567532059571062037978250396",
"335870783891954381231667274053531666468",
"171852167734056966478975965474213632580",
"317139448478708592026478375545332851190",
"30660940928341841935654837700814765545",
"126546717600591908535400870256036989856",
"179596991524566796220474994917233570069",
"330806391770220971033867600431384300700",
"246049162928623717510737026075485833176",
"37056730704877906933188312634425556051",
"182359034455847557537743385744749540258",
"5016262111672198163528606012604065117",
"235475521333135612427618335347966969413",
"235980520380002617459179253604296435225",
"166114391834428493292825424899735006965"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f546faa216d0f53a42ca73ba1fd8c48765b22d77",
"target": {
"file": "fs/ceph/caps.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50059-b0aa0ab0",
"digest": {
"threshold": 0.9,
"line_hashes": [
"168399889354911174599465832803962614232",
"5393276526989597759173715358680988922",
"271349429387925517138715744184977411105",
"114350068790567532059571062037978250396",
"335870783891954381231667274053531666468",
"171852167734056966478975965474213632580",
"317139448478708592026478375545332851190",
"30660940928341841935654837700814765545",
"126546717600591908535400870256036989856",
"179596991524566796220474994917233570069",
"330806391770220971033867600431384300700",
"246049162928623717510737026075485833176",
"37056730704877906933188312634425556051",
"182359034455847557537743385744749540258",
"5016262111672198163528606012604065117",
"235475521333135612427618335347966969413",
"235980520380002617459179253604296435225",
"166114391834428493292825424899735006965"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a090cc69699ec2d11b5e34cee8c61f0d4b0068cb",
"target": {
"file": "fs/ceph/caps.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50059-e9dad723",
"digest": {
"threshold": 0.9,
"line_hashes": [
"168399889354911174599465832803962614232",
"5393276526989597759173715358680988922",
"271349429387925517138715744184977411105",
"114350068790567532059571062037978250396",
"335870783891954381231667274053531666468",
"171852167734056966478975965474213632580",
"317139448478708592026478375545332851190",
"30660940928341841935654837700814765545",
"126546717600591908535400870256036989856",
"179596991524566796220474994917233570069",
"330806391770220971033867600431384300700",
"246049162928623717510737026075485833176",
"37056730704877906933188312634425556051",
"182359034455847557537743385744749540258",
"5016262111672198163528606012604065117",
"235475521333135612427618335347966969413",
"235980520380002617459179253604296435225",
"166114391834428493292825424899735006965"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@58dd4385577ed7969b80cdc9e2a31575aba6c712",
"target": {
"file": "fs/ceph/caps.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50059-f0d66428",
"digest": {
"threshold": 0.9,
"line_hashes": [
"168399889354911174599465832803962614232",
"5393276526989597759173715358680988922",
"271349429387925517138715744184977411105",
"114350068790567532059571062037978250396",
"335870783891954381231667274053531666468",
"171852167734056966478975965474213632580",
"317139448478708592026478375545332851190",
"30660940928341841935654837700814765545",
"126546717600591908535400870256036989856",
"179596991524566796220474994917233570069",
"330806391770220971033867600431384300700",
"246049162928623717510737026075485833176",
"37056730704877906933188312634425556051",
"182359034455847557537743385744749540258",
"5016262111672198163528606012604065117",
"235475521333135612427618335347966969413",
"235980520380002617459179253604296435225",
"166114391834428493292825424899735006965"
]
},
"signature_type": "Line"
}
]