# CVE-2022-49089: IB/rdmavt: add lock to call to rvt_error_qp to prevent a race condition

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-02-26T01:54:45.743Z
- Modified: 2026-10-15T22:17:22.763Z
- Weaknesses: CWE-362, CWE-667
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

IB/rdmavt: add lock to call to rvt_error_qp to prevent a race condition

The documentation of the function rvt_error_qp says both r_lock and s_lock
need to be held when calling that function.  It also asserts using lockdep
that both of those locks are held.  However, the commit I referenced in
Fixes accidentally makes the call to rvt_error_qp in rvt_ruc_loopback no
longer covered by r_lock.  This results in the lockdep assertion failing
and also possibly in a race condition.

(As written by CVE List.)

## Affected

- Linux Linux: from d757c60eca9b22f4d108929a24401e0fdecda0b1 before 8a50937227c385a477177c9ffa122b4230e40666; from d757c60eca9b22f4d108929a24401e0fdecda0b1 before 43c2d7890ecabe527448a6c391fb2d9a5e6bbfe0; from d757c60eca9b22f4d108929a24401e0fdecda0b1 before 92f1947c0d26060e978b3a9f21f32ce7c8c9cca3; from d757c60eca9b22f4d108929a24401e0fdecda0b1 before 77ffb2495a41098f9d6a14f8aefde3188da75944; from d757c60eca9b22f4d108929a24401e0fdecda0b1 before 57800cc36e55db0547461c49acf5cd84c0f502b0; from d757c60eca9b22f4d108929a24401e0fdecda0b1 before 4d809f69695d4e7d1378b3a072fa9aef23123018; 25636de95557a95d54ac30be94af3748345a0a90; from 5.0.4 before 5.1; 5.1 (not affected: before 5.1; from 5.4.189 up to 5.4.*; from 5.10.111 up to 5.10.*; from 5.15.34 up to 5.15.*; from 5.16.20 up to 5.16.*; from 5.17.3 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: from 5.0.4 before 5.4.189; from 5.5 before 5.10.111; from 5.11 before 5.15.34; from 5.16 before 5.16.20; from 5.17 before 5.17.3; 5.18

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/8a50937227c385a477177c9ffa122b4230e40666> (patch)
- <https://git.kernel.org/stable/c/43c2d7890ecabe527448a6c391fb2d9a5e6bbfe0> (patch)
- <https://git.kernel.org/stable/c/92f1947c0d26060e978b3a9f21f32ce7c8c9cca3> (patch)
- <https://git.kernel.org/stable/c/77ffb2495a41098f9d6a14f8aefde3188da75944> (patch)
- <https://git.kernel.org/stable/c/57800cc36e55db0547461c49acf5cd84c0f502b0> (patch)
- <https://git.kernel.org/stable/c/4d809f69695d4e7d1378b3a072fa9aef23123018> (patch)

## Sources

- CVE List: [CVE-2022-49089](https://www.cve.org/CVERecord?id=CVE-2022-49089), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2022-49089](https://nvd.nist.gov/vuln/detail/CVE-2022-49089), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2022-49089 · Whole record: https://cve.day/CVE-2022-49089.json · Rebuilt by cve.day 2026-11-25T22:58:20.164Z
