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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-06-18T11:02:54.332Z
- Modified: 2026-11-05T20:17:24.537Z
- Weaknesses: CWE-908
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 3c838ca6fbdb173102780d7bdf18f2f7d9e30979; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 1a63f24e724f677db1ab21251f4d0011ae0bb5b5; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before b348e204a53103f51070513a7494da7c62ecbdaa; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 3ef491b26c720a87fcfbd78b7dc8eb83d9753fe6; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before 2ceeb04252e621c0b128ecc8fedbca922d11adba; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before db924bd8484c76558a4ac4c4b5aeb52e857f0341; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before f05b7cf02123aaf99db78abfe638efefdbe15555; from 8700e3e7c4857d28ebaa824509934556da0b3e76 before fd5382c5805c4bcb50fd25b7246247d3f7114733; 4.8 (not affected: before 4.8; from 4.14.291 up to 4.14.*; from 4.19.256 up to 4.19.*; from 5.4.211 up to 5.4.*; from 5.10.137 up to 5.10.*; from 5.15.61 up to 5.15.*; from 5.18.18 up to 5.18.*; from 5.19.2 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 4.8 before 4.14.291; from 4.15 before 4.19.256; from 4.20 before 5.4.211; from 5.5 before 5.10.137; from 5.11 before 5.15.61; from 5.16 before 5.18.18; from 5.19 before 5.19.2

## References

- <https://git.kernel.org/stable/c/3c838ca6fbdb173102780d7bdf18f2f7d9e30979> (patch)
- <https://git.kernel.org/stable/c/1a63f24e724f677db1ab21251f4d0011ae0bb5b5> (patch)
- <https://git.kernel.org/stable/c/b348e204a53103f51070513a7494da7c62ecbdaa> (patch)
- <https://git.kernel.org/stable/c/3ef491b26c720a87fcfbd78b7dc8eb83d9753fe6> (patch)
- <https://git.kernel.org/stable/c/2ceeb04252e621c0b128ecc8fedbca922d11adba> (patch)
- <https://git.kernel.org/stable/c/db924bd8484c76558a4ac4c4b5aeb52e857f0341> (patch)
- <https://git.kernel.org/stable/c/f05b7cf02123aaf99db78abfe638efefdbe15555> (patch)
- <https://git.kernel.org/stable/c/fd5382c5805c4bcb50fd25b7246247d3f7114733> (patch)

## Sources

- CVE List: [CVE-2022-50127](https://www.cve.org/CVERecord?id=CVE-2022-50127), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2022-50127](https://nvd.nist.gov/vuln/detail/CVE-2022-50127), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2022-50127 · Whole record: https://cve.day/CVE-2022-50127.json · Rebuilt by cve.day 2026-11-25T22:58:21.066Z
