{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50671","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2025-12-09T01:26:45.991Z","datePublished":"2025-12-09T01:29:22.950Z","dateUpdated":"2026-08-05T08:59:20.301Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-05T08:59:20.301Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rxe: Fix \"kernel NULL pointer dereference\" error\n\nWhen rxe_queue_init in the function rxe_qp_init_req fails,\nboth qp->req.task.func and qp->req.task.arg are not initialized.\n\nBecause of creation of qp fails, the function rxe_create_qp will\ncall rxe_qp_do_cleanup to handle allocated resource.\n\nBefore calling __rxe_do_task, both qp->req.task.func and\nqp->req.task.arg should be checked."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - Soft RoCE (UDP/4791) backs network RDMA servers such as ksmbd SMB Direct and nvmet-rdma; on RDMA_CM CONNECT_REQUEST those ULPs create an IB_QPT_RC QP through rxe_create_qp, so a remote peer drives the vulnerable create/cleanup path.\nAC:L - A remote peer can open many Soft-RoCE RC connections until rxe_queue_init's vmalloc_user fails (ENOMEM), then the next create hits rxe_qp_do_cleanup with qp->req.task.func == NULL and oopses deterministically; resource exhaustion and the failing create are attacker-controlled.\nPR:N - QP creation for ksmbd smbdirect and nvmet-rdma occurs on RDMA_CM CONNECT_REQUEST before any ULP authentication, so an unauthenticated network peer reaches the bug.\nUI:N - Exploitation needs only attacker-initiated RDMA CM connections (or local uverbs create_qp); no victim mount, click, or other interaction is required.\nS:U - The NULL function-pointer call crashes the host kernel within the same security authority and does not cross a VM, IOMMU, or sandbox boundary.\nC:N - The fault is a pure NULL instruction fetch (task->func == NULL because the QP was kzalloc'd and rxe_init_task never ran) with no UAF, OOB read, or other disclosure primitive.\nI:N - No memory is written or corrupted before the oops; there is no arbitrary write, type confusion, or control-flow hijack path from this bug alone.\nA:H - The NULL dereference produces a kernel oops/panic on the create-failure cleanup path (__rxe_do_task) and can be re-triggered by further connection attempts after resource exhaustion."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/sw/rxe/rxe_qp.c"],"versions":[{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"48cd7098e71735ccafa0b3cf27c53924f9cb5b2f","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"eca119693010032d6cc6e7e9b4fb2c363c7e12ce","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"9c5dd6993c794703e74c6ba17ac78ca0211ef940","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"0d773c58d702f0a7c16ee8d69617fd2c28350795","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"cdce36a88def550773142a34ef727a830cad96a8","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"f2f405af70e6f0419e718d23fa304798a5405c41","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"bb33fa65da77f5f02dbee6f25cebaeedfcd70028","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"3b8752f086eb6865cc3662ad13249b03024501e5","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"a625ca30eff806395175ebad3ac1399014bdb280","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/sw/rxe/rxe_qp.c"],"versions":[{"version":"4.8","status":"affected"},{"version":"0","lessThan":"4.8","status":"unaffected","versionType":"semver"},{"version":"4.9.331","lessThanOrEqual":"4.9.*","status":"unaffected","versionType":"semver"},{"version":"4.14.296","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.262","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.220","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.150","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.75","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.19.17","lessThanOrEqual":"5.19.*","status":"unaffected","versionType":"semver"},{"version":"6.0.3","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"4.9.331"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"4.14.296"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"4.19.262"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"5.4.220"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"5.10.150"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"5.15.75"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"5.19.17"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"6.0.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"6.1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/48cd7098e71735ccafa0b3cf27c53924f9cb5b2f"},{"url":"https://git.kernel.org/stable/c/eca119693010032d6cc6e7e9b4fb2c363c7e12ce"},{"url":"https://git.kernel.org/stable/c/9c5dd6993c794703e74c6ba17ac78ca0211ef940"},{"url":"https://git.kernel.org/stable/c/0d773c58d702f0a7c16ee8d69617fd2c28350795"},{"url":"https://git.kernel.org/stable/c/cdce36a88def550773142a34ef727a830cad96a8"},{"url":"https://git.kernel.org/stable/c/f2f405af70e6f0419e718d23fa304798a5405c41"},{"url":"https://git.kernel.org/stable/c/bb33fa65da77f5f02dbee6f25cebaeedfcd70028"},{"url":"https://git.kernel.org/stable/c/3b8752f086eb6865cc3662ad13249b03024501e5"},{"url":"https://git.kernel.org/stable/c/a625ca30eff806395175ebad3ac1399014bdb280"}],"title":"RDMA/rxe: Fix \"kernel NULL pointer dereference\" error","x_generator":{"engine":"bippy-1.2.0"}}}}