{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139354","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.928Z","datePublished":"2026-11-30T13:33:59.126Z","dateUpdated":"2026-12-01T05:42:25.203Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:42:25.203Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_info[]\n\nwr_opcode_mask() indexes the global rxe_wr_opcode_info[] array with\na caller-supplied opcode and no bounds check. For a user QP the WQE\ncomes from an mmap'd SQ ring, so wqe->wr.opcode is an\nattacker-controlled __u32 read back by the requester\n(req_next_wqe() -> rxe_requester()); rxe_post_send() takes the\nqp->is_user branch and never runs validate_send_wr(), whose only\nopcode check is itself !wr_opcode_mask() (it indexes before it\nchecks). rxe_wr_opcode_info[] has entries only up to IB_WR_REG_MR,\nso an out-of-range opcode reads out of bounds and the result is used\nas a mask and dereferenced; observed as a KASAN global-out-of-bounds\n\"Read of size 4\" and a wild-pointer oops.\n\nReturn a zero mask for an out-of-range opcode, matching how\nvalidate_send_wr() already treats a zero mask (an invalid WR), so no\npath indexes the array out of bounds."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bad index is wqe->wr.opcode, which a local process writes into its own mmap'd rxe SQ ring (vmalloc_user/remap_vmalloc_range) before calling ibv_post_send. No remote peer supplies the WQE opcode, and kernel ULPs go through validate_send_wr() with valid opcodes.\nAC:L - Once an rxe link exists, the attacker drives the whole sequence: create a QP, move it to RTS over a loopback to its own GID, write an out-of-range opcode into the ring and post. req_next_wqe() then runs wr_opcode_mask() on that opcode every time. There is no race and no state outside the attacker's control.\nPR:L - /dev/infiniband/uverbs* is mode 0666 (uverbs_devnode), and creating an RC/UC/UD QP or calling modify_qp needs no capability. An unprivileged local user can reach rxe_post_send(), whose qp->is_user branch skips validate_send_wr().\nUI:N - The attacker triggers the bug entirely with its own uverbs calls and its own ring contents. No other user has to act.\nS:U - The out-of-bounds read and the crash both happen inside the same kernel that the local user is attacking. No VM, IOMMU or sandbox boundary is crossed.\nC:H - rxe_wr_opcode_info[(int)opcode].mask[qp_type] reads 4 bytes at a chosen offset up to ±80 GiB from a module global. req_next_wqe() stores the result in wqe->mask, a uapi field in the user-mapped SQ ring, so the attacker can read it back after the -EINVAL error completion. Repeating this leaks kernel image and module .data/.bss.\nI:N - The OOB value is only written into the attacker's own ring. A forged WR_LOCAL_OP_MASK reaches rxe_do_local_ops() with the u8-truncated opcode, which is the same REG_MR/BIND_MW/LOCAL_INV an RC QP can already post. The completer reads wqe->mask, a field the user already controls. The bug adds no kernel write.\nA:H - An opcode whose target address is unmapped makes wr_opcode_mask() fault in the rxe send task, giving the wild-pointer oops reported in the commit. Before rxe moved to a workqueue, that task was a tasklet running in softirq context, where the oops is fatal. Any unprivileged uverbs user can repeat it at will."}]}],"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_loc.h"],"versions":[{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"678d7b3ef6b0e857b1d6291c67433ebbdacbdb37","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"628515523e9aa9c9e8d2c08c2bddb09e399906b4","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"8e2679b21986915ee7a53a65e83c4aebb670e8bd","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"d62748818061f2c8bc91d529a36bd7ddfbb8587f","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"d770b8769c38de78a0bda77aab84b38235d45719","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"fe6cd7c3d9698ae0a29fd831f26bbfa7f67bf959","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"4ff8efdd007cec66a46b1c05eff80148b26813d6","status":"affected","versionType":"git"},{"version":"8700e3e7c4857d28ebaa824509934556da0b3e76","lessThan":"c887e53e1c852b88bd5442d1bf4717ee3e7aadda","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_loc.h"],"versions":[{"version":"4.8","status":"affected"},{"version":"0","lessThan":"4.8","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","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.10.275"},{"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/678d7b3ef6b0e857b1d6291c67433ebbdacbdb37"},{"url":"https://git.kernel.org/stable/c/628515523e9aa9c9e8d2c08c2bddb09e399906b4"},{"url":"https://git.kernel.org/stable/c/8e2679b21986915ee7a53a65e83c4aebb670e8bd"},{"url":"https://git.kernel.org/stable/c/d62748818061f2c8bc91d529a36bd7ddfbb8587f"},{"url":"https://git.kernel.org/stable/c/d770b8769c38de78a0bda77aab84b38235d45719"},{"url":"https://git.kernel.org/stable/c/fe6cd7c3d9698ae0a29fd831f26bbfa7f67bf959"},{"url":"https://git.kernel.org/stable/c/4ff8efdd007cec66a46b1c05eff80148b26813d6"},{"url":"https://git.kernel.org/stable/c/c887e53e1c852b88bd5442d1bf4717ee3e7aadda"}],"title":"RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_info[]","x_generator":{"engine":"bippy-1.2.0"}}}}