{"id":"CVE-2026-139354","aliases":["CVE-2026-139354"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_info[]","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:33:59.126Z","modified":"2026-12-01T06:17:43.017Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"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:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8700e3e7c4857d28ebaa824509934556da0b3e76","fixed":"678d7b3ef6b0e857b1d6291c67433ebbdacbdb37","status":"affected"},{"type":"git","introduced":"8700e3e7c4857d28ebaa824509934556da0b3e76","fixed":"628515523e9aa9c9e8d2c08c2bddb09e399906b4","status":"affected"},{"type":"git","introduced":"8700e3e7c4857d28ebaa824509934556da0b3e76","fixed":"8e2679b21986915ee7a53a65e83c4aebb670e8bd","status":"affected"},{"type":"git","introduced":"8700e3e7c4857d28ebaa824509934556da0b3e76","fixed":"d62748818061f2c8bc91d529a36bd7ddfbb8587f","status":"affected"},{"type":"git","introduced":"8700e3e7c4857d28ebaa824509934556da0b3e76","fixed":"d770b8769c38de78a0bda77aab84b38235d45719","status":"affected"},{"type":"git","introduced":"8700e3e7c4857d28ebaa824509934556da0b3e76","fixed":"fe6cd7c3d9698ae0a29fd831f26bbfa7f67bf959","status":"affected"},{"type":"git","introduced":"8700e3e7c4857d28ebaa824509934556da0b3e76","fixed":"4ff8efdd007cec66a46b1c05eff80148b26813d6","status":"affected"},{"type":"git","introduced":"8700e3e7c4857d28ebaa824509934556da0b3e76","fixed":"c887e53e1c852b88bd5442d1bf4717ee3e7aadda","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.10.275","lastAffected":"5.10.*","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/678d7b3ef6b0e857b1d6291c67433ebbdacbdb37","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/628515523e9aa9c9e8d2c08c2bddb09e399906b4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8e2679b21986915ee7a53a65e83c4aebb670e8bd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d62748818061f2c8bc91d529a36bd7ddfbb8587f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d770b8769c38de78a0bda77aab84b38235d45719","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fe6cd7c3d9698ae0a29fd831f26bbfa7f67bf959","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4ff8efdd007cec66a46b1c05eff80148b26813d6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c887e53e1c852b88bd5442d1bf4717ee3e7aadda","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139354","url":"https://www.cve.org/CVERecord?id=CVE-2026-139354","licence":"CVE Terms of Use","modified":"2026-12-01T05:42:25.203Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139354","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139354","licence":"Public domain","modified":"2026-12-01T06:17:43.017Z"}],"updatedAt":"2026-12-01T06:32:27.679Z","epss":{"score":0.00182,"percentile":0.08161,"date":"2026-12-01T12:00:22.000Z"}}