{"api_version":"1","generated_at":"2026-12-01T06:50:24+00:00","cve":"CVE-2026-139354","urls":{"html":"https://cve.report/CVE-2026-139354","api":"https://cve.report/api/cve/CVE-2026-139354.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139354","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139354"},"summary":{"title":"RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_info[]","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:01","updated_at":"2026-12-01 06:17:43"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.1","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","data":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.1","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","data":{"baseScore":7.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/8e2679b21986915ee7a53a65e83c4aebb670e8bd","name":"https://git.kernel.org/stable/c/8e2679b21986915ee7a53a65e83c4aebb670e8bd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/628515523e9aa9c9e8d2c08c2bddb09e399906b4","name":"https://git.kernel.org/stable/c/628515523e9aa9c9e8d2c08c2bddb09e399906b4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/678d7b3ef6b0e857b1d6291c67433ebbdacbdb37","name":"https://git.kernel.org/stable/c/678d7b3ef6b0e857b1d6291c67433ebbdacbdb37","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d62748818061f2c8bc91d529a36bd7ddfbb8587f","name":"https://git.kernel.org/stable/c/d62748818061f2c8bc91d529a36bd7ddfbb8587f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/fe6cd7c3d9698ae0a29fd831f26bbfa7f67bf959","name":"https://git.kernel.org/stable/c/fe6cd7c3d9698ae0a29fd831f26bbfa7f67bf959","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4ff8efdd007cec66a46b1c05eff80148b26813d6","name":"https://git.kernel.org/stable/c/4ff8efdd007cec66a46b1c05eff80148b26813d6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d770b8769c38de78a0bda77aab84b38235d45719","name":"https://git.kernel.org/stable/c/d770b8769c38de78a0bda77aab84b38235d45719","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c887e53e1c852b88bd5442d1bf4717ee3e7aadda","name":"https://git.kernel.org/stable/c/c887e53e1c852b88bd5442d1bf4717ee3e7aadda","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139354","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139354","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 678d7b3ef6b0e857b1d6291c67433ebbdacbdb37 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 628515523e9aa9c9e8d2c08c2bddb09e399906b4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 8e2679b21986915ee7a53a65e83c4aebb670e8bd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 d62748818061f2c8bc91d529a36bd7ddfbb8587f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 d770b8769c38de78a0bda77aab84b38235d45719 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 fe6cd7c3d9698ae0a29fd831f26bbfa7f67bf959 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 4ff8efdd007cec66a46b1c05eff80148b26813d6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8700e3e7c4857d28ebaa824509934556da0b3e76 c887e53e1c852b88bd5442d1bf4717ee3e7aadda git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.8","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.8 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/infiniband/sw/rxe/rxe_loc.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"678d7b3ef6b0e857b1d6291c67433ebbdacbdb37","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"628515523e9aa9c9e8d2c08c2bddb09e399906b4","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"8e2679b21986915ee7a53a65e83c4aebb670e8bd","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"d62748818061f2c8bc91d529a36bd7ddfbb8587f","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"d770b8769c38de78a0bda77aab84b38235d45719","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"fe6cd7c3d9698ae0a29fd831f26bbfa7f67bf959","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"4ff8efdd007cec66a46b1c05eff80148b26813d6","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"},{"lessThan":"c887e53e1c852b88bd5442d1bf4717ee3e7aadda","status":"affected","version":"8700e3e7c4857d28ebaa824509934556da0b3e76","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/infiniband/sw/rxe/rxe_loc.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.8"},{"lessThan":"4.8","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"4.8","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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":{"baseScore":7.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","version":"3.1"},"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."}]}],"providerMetadata":{"dateUpdated":"2026-12-01T05:42:25.203Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139354","datePublished":"2026-11-30T13:33:59.126Z","dateReserved":"2026-11-30T13:22:15.928Z","dateUpdated":"2026-12-01T05:42:25.203Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:01","lastModifiedDate":"2026-12-01 06:17:43","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.2}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139354","Ordinal":"1","Title":"RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_inf","CVE":"CVE-2026-139354","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139354","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_inf"}]}}}