CVE-2022-50127 RDMA/rxe: Fix error unwind in rxe_create_qp()

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel RDMA driver causes a system crash when an error occurs during queue pair creation.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-50127?

CVE-2022-50127 is a medium-severity vulnerability in Linux kernel, published on 18 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-908

Which versions are affected by CVE-2022-50127?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-50127?

Apply the vendor's patch.

Is CVE-2022-50127 being exploited?

There is no known exploitation of CVE-2022-50127 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-50127, GHSA-g27f-6634-78c3, UBUNTU-CVE-2022-50127.

Is CVE-2022-50127 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free