Bug 2348045 (CVE-2022-49089) - CVE-2022-49089 kernel: IB/rdmavt: add lock to call to rvt_error_qp to prevent a race condition
Summary: CVE-2022-49089 kernel: IB/rdmavt: add lock to call to rvt_error_qp to prevent...
Keywords:
Status: NEW
Alias: CVE-2022-49089
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:15 UTC by OSIDB Bzimport
Modified: 2025-06-30 16:20 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:15:43 UTC
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.

Comment 1 Avinash Hanwate 2025-02-26 19:27:17 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022658-CVE-2022-49089-2a32@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.