CVE-2022-50127

RDMA/rxe: Fix error unwind in rxe_create_qp()

MEDIUM
5.5
CVSS Score
Published: June 18, 2025 at 11:02 AM UTC
Updated: June 17, 2026 at 05:22 AM 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
MEDIUM5.5
Exploit prediction
EPSS 0.2%

Description

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.

Affected

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

4.15 ≤ v < 4.19.2564.20 ≤ v < 5.4.2114.8 ≤ v < 4.14.2914.8 ≤ v < 4.19.2564.8 ≤ v < 5.10.1374.8 ≤ v < 5.15.614.8 ≤ v < 5.18.184.8 ≤ v < 5.19.24.8 ≤ v < 5.4.2114.8 ≤ v < 6.05.11 ≤ v < 5.15.615.16 ≤ v < 5.18.185.19 ≤ v < 5.19.25.5 ≤ v < 5.10.1374.88700e3e7c4857d28ebaa824509934556da0b3e76
Vendor states this is fixed in 1a63f24e724f677db1ab21251f4d0011ae0bb5b5 (fixed)
Vendor states this is fixed in 2ceeb04252e621c0b128ecc8fedbca922d11adba (fixed)
Vendor states this is fixed in 3c838ca6fbdb173102780d7bdf18f2f7d9e30979 (fixed)
Vendor states this is fixed in 3ef491b26c720a87fcfbd78b7dc8eb83d9753fe6 (fixed)
Vendor states this is fixed in b348e204a53103f51070513a7494da7c62ecbdaa (fixed)
Vendor states this is fixed in db924bd8484c76558a4ac4c4b5aeb52e857f0341 (fixed)
Vendor states this is fixed in f05b7cf02123aaf99db78abfe638efefdbe15555 (fixed)
Vendor states this is fixed in fd5382c5805c4bcb50fd25b7246247d3f7114733 (fixed)
Vendor states this is fixed in 4.14.291 (unaffected)
Vendor states this is fixed in 4.19.256 (unaffected)
Vendor states this is fixed in 4.8 (unaffected)
Vendor states this is fixed in 5.10.137 (unaffected)
Vendor states this is fixed in 5.15.61 (unaffected)
Vendor states this is fixed in 5.18.18 (unaffected)
Vendor states this is fixed in 5.19.2 (unaffected)
Vendor states this is fixed in 5.4.211 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1a63f24e724f677db1ab21251f4d0011ae0bb5b5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2ceeb04252e621c0b128ecc8fedbca922d11adba
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3c838ca6fbdb173102780d7bdf18f2f7d9e30979
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3ef491b26c720a87fcfbd78b7dc8eb83d9753fe6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b348e204a53103f51070513a7494da7c62ecbdaa
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/db924bd8484c76558a4ac4c4b5aeb52e857f0341
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f05b7cf02123aaf99db78abfe638efefdbe15555
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fd5382c5805c4bcb50fd25b7246247d3f7114733

CVSS

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

Quick Info

StatusANALYZED
CWE
CWE-908

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