{"id":"CVE-2022-49089","summary":"IB/rdmavt: add lock to call to rvt_error_qp to prevent a race condition","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nIB/rdmavt: add lock to call to rvt_error_qp to prevent a race condition\n\nThe documentation of the function rvt_error_qp says both r_lock and s_lock\nneed to be held when calling that function.  It also asserts using lockdep\nthat both of those locks are held.  However, the commit I referenced in\nFixes accidentally makes the call to rvt_error_qp in rvt_ruc_loopback no\nlonger covered by r_lock.  This results in the lockdep assertion failing\nand also possibly in a race condition.","modified":"2026-03-20T12:22:09.910590Z","published":"2025-02-26T01:54:45.743Z","related":["SUSE-SU-2025:0834-1","SUSE-SU-2025:1027-1","SUSE-SU-2025:1176-1","SUSE-SU-2025:1183-1","SUSE-SU-2025:1241-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49089.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/43c2d7890ecabe527448a6c391fb2d9a5e6bbfe0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4d809f69695d4e7d1378b3a072fa9aef23123018"},{"type":"WEB","url":"https://git.kernel.org/stable/c/57800cc36e55db0547461c49acf5cd84c0f502b0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/77ffb2495a41098f9d6a14f8aefde3188da75944"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8a50937227c385a477177c9ffa122b4230e40666"},{"type":"WEB","url":"https://git.kernel.org/stable/c/92f1947c0d26060e978b3a9f21f32ce7c8c9cca3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49089.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49089"},{"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":"d757c60eca9b22f4d108929a24401e0fdecda0b1"},{"fixed":"8a50937227c385a477177c9ffa122b4230e40666"},{"fixed":"43c2d7890ecabe527448a6c391fb2d9a5e6bbfe0"},{"fixed":"92f1947c0d26060e978b3a9f21f32ce7c8c9cca3"},{"fixed":"77ffb2495a41098f9d6a14f8aefde3188da75944"},{"fixed":"57800cc36e55db0547461c49acf5cd84c0f502b0"},{"fixed":"4d809f69695d4e7d1378b3a072fa9aef23123018"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"25636de95557a95d54ac30be94af3748345a0a90"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49089.json"}}],"schema_version":"1.7.5"}