Bug 2373477 (CVE-2022-50127) - CVE-2022-50127 kernel: RDMA/rxe: Fix error unwind in rxe_create_qp()
Summary: CVE-2022-50127 kernel: RDMA/rxe: Fix error unwind in rxe_create_qp()
Keywords:
Status: NEW
Alias: CVE-2022-50127
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-06-18 12:04 UTC by OSIDB Bzimport
Modified: 2025-06-20 10:09 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:04:45 UTC
In the Linux kernel, the following vulnerability has been resolved:

RDMA/rxe: Fix error unwind in rxe_create_qp()

In the function rxe_create_qp(), rxe_qp_from_init() is called to
initialize qp, internally things like the spin locks are not setup until
rxe_qp_init_req().

If an error occures before this point then the unwind will call
rxe_cleanup() and eventually to rxe_qp_do_cleanup()/rxe_cleanup_task()
which will oops when trying to access the uninitialized spinlock.

Move the spinlock initializations earlier before any failures.

Comment 1 Avinash Hanwate 2025-06-20 01:23:30 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061813-CVE-2022-50127-df59@gregkh/T


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