{"id":"CVE-2022-49089","revision":"69f6da047ddb49f890f76c4a6cb9ba14","records":[{"revision":"69f6da047ddb49f890f76c4a6cb9ba14","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2022-49089","aliases":[],"title":"IB/rdmavt: add lock to call to rvt_error_qp to prevent a race condition","description":"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.","state":0,"publishedAt":"2025-02-26T01:54:45.743+00:00","modifiedAt":"2026-10-15T21:21:06.53+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/infiniband/sw/rdmavt/qp.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"d757c60eca9b22f4d108929a24401e0fdecda0b1\",\n                            \"lessThan\": \"8a50937227c385a477177c9ffa122b4230e40666\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"d757c60eca9b22f4d108929a24401e0fdecda0b1\",\n                            \"lessThan\": \"43c2d7890ecabe527448a6c391fb2d9a5e6bbfe0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"d757c60eca9b22f4d108929a24401e0fdecda0b1\",\n                            \"lessThan\": \"92f1947c0d26060e978b3a9f21f32ce7c8c9cca3\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"d757c60eca9b22f4d108929a24401e0fdecda0b1\",\n                            \"lessThan\": \"77ffb2495a41098f9d6a14f8aefde3188da75944\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"d757c60eca9b22f4d108929a24401e0fdecda0b1\",\n                            \"lessThan\": \"57800cc36e55db0547461c49acf5cd84c0f502b0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"d757c60eca9b22f4d108929a24401e0fdecda0b1\",\n                            \"lessThan\": \"4d809f69695d4e7d1378b3a072fa9aef23123018\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"25636de95557a95d54ac30be94af3748345a0a90\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"5.0.4\",\n                            \"lessThan\": \"5.1\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/infiniband/sw/rdmavt/qp.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"5.1\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"5.1\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.4.189\",\n                            \"lessThanOrEqual\": \"5.4.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.10.111\",\n                            \"lessThanOrEqual\": \"5.10.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.15.34\",\n                            \"lessThanOrEqual\": \"5.15.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.16.20\",\n                            \"lessThanOrEqual\": \"5.16.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.17.3\",\n                            \"lessThanOrEqual\": \"5.17.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.18\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/8a50937227c385a477177c9ffa122b4230e40666","https://git.kernel.org/stable/c/43c2d7890ecabe527448a6c391fb2d9a5e6bbfe0","https://git.kernel.org/stable/c/92f1947c0d26060e978b3a9f21f32ce7c8c9cca3","https://git.kernel.org/stable/c/77ffb2495a41098f9d6a14f8aefde3188da75944","https://git.kernel.org/stable/c/57800cc36e55db0547461c49acf5cd84c0f502b0","https://git.kernel.org/stable/c/4d809f69695d4e7d1378b3a072fa9aef23123018"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2022-49089","license":"CVE Program Terms of Use","key":"cve-program:CVE-2022-49089","identifiers":["CVE-2022-49089"]},"retained":false,"historicalAffected":[]}],"coverage":[]}