{"id":"CVE-2022-50127","summary":"RDMA/rxe: Fix error unwind in rxe_create_qp()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rxe: Fix error unwind in rxe_create_qp()\n\nIn the function rxe_create_qp(), rxe_qp_from_init() is called to\ninitialize qp, internally things like the spin locks are not setup until\nrxe_qp_init_req().\n\nIf an error occures before this point then the unwind will call\nrxe_cleanup() and eventually to rxe_qp_do_cleanup()/rxe_cleanup_task()\nwhich will oops when trying to access the uninitialized spinlock.\n\nMove the spinlock initializations earlier before any failures.","modified":"2026-04-03T13:14:34.677511080Z","published":"2025-06-18T11:02:54.332Z","related":["SUSE-SU-2025:02264-1","SUSE-SU-2025:02308-1","SUSE-SU-2025:02320-1","SUSE-SU-2025:02321-1","SUSE-SU-2025:02322-1","SUSE-SU-2025:02537-1","SUSE-SU-2025:03204-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50127.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1a63f24e724f677db1ab21251f4d0011ae0bb5b5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2ceeb04252e621c0b128ecc8fedbca922d11adba"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3c838ca6fbdb173102780d7bdf18f2f7d9e30979"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3ef491b26c720a87fcfbd78b7dc8eb83d9753fe6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b348e204a53103f51070513a7494da7c62ecbdaa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/db924bd8484c76558a4ac4c4b5aeb52e857f0341"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f05b7cf02123aaf99db78abfe638efefdbe15555"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fd5382c5805c4bcb50fd25b7246247d3f7114733"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50127.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50127"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8700e3e7c4857d28ebaa824509934556da0b3e76"},{"fixed":"3c838ca6fbdb173102780d7bdf18f2f7d9e30979"},{"fixed":"1a63f24e724f677db1ab21251f4d0011ae0bb5b5"},{"fixed":"b348e204a53103f51070513a7494da7c62ecbdaa"},{"fixed":"3ef491b26c720a87fcfbd78b7dc8eb83d9753fe6"},{"fixed":"2ceeb04252e621c0b128ecc8fedbca922d11adba"},{"fixed":"db924bd8484c76558a4ac4c4b5aeb52e857f0341"},{"fixed":"f05b7cf02123aaf99db78abfe638efefdbe15555"},{"fixed":"fd5382c5805c4bcb50fd25b7246247d3f7114733"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50127.json"}}],"schema_version":"1.7.5"}