{"id":"CVE-2026-139358","aliases":["CVE-2026-139358"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/rxe: reject IB_WR_REG_MR from user QPs in rxe_reg_fast_mr()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:34:01.333Z","modified":"2026-12-01T06:17:43.777Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8700e3e7c4857d28ebaa824509934556da0b3e76","fixed":"a11ebd6481098dd62ddc18efaed25bf20668c65c","status":"affected"},{"type":"git","introduced":"8700e3e7c4857d28ebaa824509934556da0b3e76","fixed":"2c39f5ae8ab7b99b160d1da29b7a9a4c17805981","status":"affected"},{"type":"git","introduced":"8700e3e7c4857d28ebaa824509934556da0b3e76","fixed":"92ef85e25134bfbcaecf124b7ff614440921efc0","status":"affected"},{"type":"git","introduced":"8700e3e7c4857d28ebaa824509934556da0b3e76","fixed":"8e7532fab9a8082606fc22f02f825bb51a864221","status":"affected"},{"type":"git","introduced":"8700e3e7c4857d28ebaa824509934556da0b3e76","fixed":"82db6c71c0a83a745f806ae84a76197087f5ed08","status":"affected"},{"type":"git","introduced":"8700e3e7c4857d28ebaa824509934556da0b3e76","fixed":"8ea50bd26a8b7629e2f946330317d7c2a8ca5b60","status":"affected"},{"type":"git","introduced":"8700e3e7c4857d28ebaa824509934556da0b3e76","fixed":"33afe9909f213d8bb8e80f0b93382dde0f56e2c7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.8","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/a11ebd6481098dd62ddc18efaed25bf20668c65c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2c39f5ae8ab7b99b160d1da29b7a9a4c17805981","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/92ef85e25134bfbcaecf124b7ff614440921efc0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8e7532fab9a8082606fc22f02f825bb51a864221","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/82db6c71c0a83a745f806ae84a76197087f5ed08","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8ea50bd26a8b7629e2f946330317d7c2a8ca5b60","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/33afe9909f213d8bb8e80f0b93382dde0f56e2c7","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139358","url":"https://www.cve.org/CVERecord?id=CVE-2026-139358","licence":"CVE Terms of Use","modified":"2026-12-01T05:42:30.917Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139358","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139358","licence":"Public domain","modified":"2026-12-01T06:17:43.777Z"}],"updatedAt":"2026-12-01T06:32:17.147Z","epss":{"score":0.00187,"percentile":0.08726,"date":"2026-12-01T12:00:22.000Z"}}