CVE-2022-49089

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

MEDIUM
4.7
CVSS Score
Published: February 26, 2025 at 01:54 AM UTC
Updated: October 15, 2026 at 10:17 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.7
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.0.4 ≤ v < 5.4.1895.11 ≤ v < 5.15.345.16 ≤ v < 5.16.205.17 ≤ v < 5.17.35.5 ≤ v < 5.10.11125636de95557a95d54ac30be94af3748345a0a905.0.45.185.18 rc1d757c60eca9b22f4d108929a24401e0fdecda0b1
Vendor states this is fixed in 43c2d7890ecabe527448a6c391fb2d9a5e6bbfe0 (fixed)
Vendor states this is fixed in 4d809f69695d4e7d1378b3a072fa9aef23123018 (fixed)
Vendor states this is fixed in 57800cc36e55db0547461c49acf5cd84c0f502b0 (fixed)
Vendor states this is fixed in 77ffb2495a41098f9d6a14f8aefde3188da75944 (fixed)
Vendor states this is fixed in 8a50937227c385a477177c9ffa122b4230e40666 (fixed)
Vendor states this is fixed in 92f1947c0d26060e978b3a9f21f32ce7c8c9cca3 (fixed)
Vendor states this is fixed in 5.1 (unaffected)
Vendor states this is fixed in 5.10.111 (unaffected)
Vendor states this is fixed in 5.15.34 (unaffected)
Vendor states this is fixed in 5.16.20 (unaffected)
Vendor states this is fixed in 5.17.3 (unaffected)
Vendor states this is fixed in 5.18 (unaffected)
Vendor states this is fixed in 5.4.189 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/43c2d7890ecabe527448a6c391fb2d9a5e6bbfe0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4d809f69695d4e7d1378b3a072fa9aef23123018
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/57800cc36e55db0547461c49acf5cd84c0f502b0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/77ffb2495a41098f9d6a14f8aefde3188da75944
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8a50937227c385a477177c9ffa122b4230e40666
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/92f1947c0d26060e978b3a9f21f32ce7c8c9cca3

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-362CWE-667

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card