{"id":"DEBIAN-CVE-2022-50135","details":"In the Linux kernel, the following vulnerability has been resolved:  RDMA/rxe: Fix BUG: KASAN: null-ptr-deref in rxe_qp_do_cleanup  The function rxe_create_qp calls rxe_qp_from_init. If some error occurs, the error handler of function rxe_qp_from_init will set both scq and rcq to NULL.  Then rxe_create_qp calls rxe_put to handle qp. In the end, rxe_qp_do_cleanup is called by rxe_put. rxe_qp_do_cleanup directly accesses scq and rcq before checking them. This will cause null-ptr-deref error.  The call graph is as below:  rxe_create_qp {   ...   rxe_qp_from_init {     ...   err1:     ...     qp-\u003ercq = NULL;  \u003c---rcq is set to NULL     qp-\u003escq = NULL;  \u003c---scq is set to NULL     ...   }  qp_init:   rxe_put{     ...     rxe_qp_do_cleanup {       ...       atomic_dec(&qp-\u003escq-\u003enum_wq); \u003c--- scq is accessed       ...       atomic_dec(&qp-\u003ercq-\u003enum_wq); \u003c--- rcq is accessed     } }","modified":"2026-08-27T23:04:24.215361559Z","published":"2025-06-18T11:15:43.387Z","upstream":["CVE-2022-50135"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2022-50135"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.2-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2022-50135.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.2-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2022-50135.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.2-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2022-50135.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}