{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139358","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.929Z","datePublished":"2026-11-30T13:34:01.333Z","dateUpdated":"2026-12-01T05:42:30.917Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:42:30.917Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rxe: reject IB_WR_REG_MR from user QPs in rxe_reg_fast_mr()\n\nIB_WR_REG_MR is documented as kernel-only (\"can not be issued by\nuserspace\"), but nothing enforces it.\nrxe_wr_opcode_info[IB_WR_REG_MR] sets WR_LOCAL_OP_MASK for IB_QPT_RC,\na QP type userspace can create, so a user QP that writes\nopcode = IB_WR_REG_MR into its mmap'd SQ ring reaches\nrxe_do_local_ops() -> rxe_reg_fast_mr(). That function then trusts\nthe ring-supplied fields:\n\n\tstruct rxe_mr *mr = to_rmr(wqe->wr.wr.reg.mr);\n\t...\n\tif (unlikely(mr->state != RXE_MR_STATE_FREE))    /* deref */\n\t...\n\tmr->access = access;                             /* write */\n\nFor a user QP wqe->wr.wr.reg.mr is a fully attacker-chosen pointer,\nso this is an arbitrary-kernel-address dereference (arbitrary read\nconfirmed, oops). No existing check distinguishes a user QP on this\npath.\n\nReject IB_WR_REG_MR for user QPs before dereferencing the supplied\npointer."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bad ib_mr pointer is written by a local process into its own mmap'd rxe send queue (wr.wr.reg.mr) and kicked via IB_USER_VERBS_CMD_POST_SEND on /dev/infiniband/uverbsN; IB_WR_REG_MR is a local work request, not a RoCE wire opcode, so no remote peer can supply it.\nAC:L - The attacker opens uverbs, creates PD/CQ and an RC QP, moves it to RTS, writes opcode=IB_WR_REG_MR plus a chosen pointer into the SQ slot and posts; req_next_wqe() sets WR_LOCAL_OP_MASK from the opcode and rxe_do_local_ops() calls rxe_reg_fast_mr() deterministically, with no race and no victim state.\nPR:L - uverbs_devnode() creates the uverbs node as 0666, and ib_uverbs create_qp/modify_qp/post_send need no capability for IB_QPT_RC, so any local user on a host with a configured Soft-RoCE device reaches rxe_reg_fast_mr() with is_user QPs.\nUI:N - The attacker drives the whole sequence on their own QP and ring; no other user has to mount, open or otherwise act.\nS:U - The dereference and writes happen in the host kernel's rxe requester on behalf of the local process; no VM, guest-to-host or IOMMU boundary is crossed.\nC:H - In affected 5.10.y the REG_MR path copies ib_mr.iova into rxe_mem.iova through the user pointer, and the attacker-chosen writes can be turned into a kernel read; the checked 5.15.y rxe_reg_fast_mr() also pr_warn()s mr->lkey read from the chosen address.\nI:H - Affected 5.10.y (rxe_requester) writes state, attacker access and attacker lkey/rkey through to_rmr(wqe->wr.wr.reg.mr) with no checks, an arbitrary kernel write; mainline rxe_reg_fast_mr() performs the same writes once a forged object passes the state/pd/lkey checks.\nA:H - rxe_reg_fast_mr() dereferences mr->state at a fully attacker-chosen address, so a non-canonical or unmapped pointer reliably oopses the kernel; it can be repeated with fresh QPs."}]}],"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_mr.c"],"versions":[{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"a11ebd6481098dd62ddc18efaed25bf20668c65c","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"2c39f5ae8ab7b99b160d1da29b7a9a4c17805981","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"92ef85e25134bfbcaecf124b7ff614440921efc0","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"8e7532fab9a8082606fc22f02f825bb51a864221","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"82db6c71c0a83a745f806ae84a76197087f5ed08","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"8ea50bd26a8b7629e2f946330317d7c2a8ca5b60","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"33afe9909f213d8bb8e80f0b93382dde0f56e2c7","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_mr.c"],"versions":[{"version":"4.8","status":"affected"},{"version":"0","lessThan":"4.8","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","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":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/a11ebd6481098dd62ddc18efaed25bf20668c65c"},{"url":"https://git.kernel.org/stable/c/2c39f5ae8ab7b99b160d1da29b7a9a4c17805981"},{"url":"https://git.kernel.org/stable/c/92ef85e25134bfbcaecf124b7ff614440921efc0"},{"url":"https://git.kernel.org/stable/c/8e7532fab9a8082606fc22f02f825bb51a864221"},{"url":"https://git.kernel.org/stable/c/82db6c71c0a83a745f806ae84a76197087f5ed08"},{"url":"https://git.kernel.org/stable/c/8ea50bd26a8b7629e2f946330317d7c2a8ca5b60"},{"url":"https://git.kernel.org/stable/c/33afe9909f213d8bb8e80f0b93382dde0f56e2c7"}],"title":"RDMA/rxe: reject IB_WR_REG_MR from user QPs in rxe_reg_fast_mr()","x_generator":{"engine":"bippy-1.2.0"}}}}