RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_info[]
Summary
| CVE | CVE-2026-139354 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-30 14:19:01 UTC |
| Updated | 2026-12-01 06:17:43 UTC |
| Description | In the Linux kernel, the following vulnerability has been resolved: RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_info[] wr_opcode_mask() indexes the global rxe_wr_opcode_info[] array with a caller-supplied opcode and no bounds check. For a user QP the WQE comes from an mmap'd SQ ring, so wqe->wr.opcode is an attacker-controlled __u32 read back by the requester (req_next_wqe() -> rxe_requester()); rxe_post_send() takes the qp->is_user branch and never runs validate_send_wr(), whose only opcode check is itself !wr_opcode_mask() (it indexes before it checks). rxe_wr_opcode_info[] has entries only up to IB_WR_REG_MR, so an out-of-range opcode reads out of bounds and the result is used as a mask and dereferenced; observed as a KASAN global-out-of-bounds "Read of size 4" and a wild-pointer oops. Return a zero mask for an out-of-range opcode, matching how validate_send_wr() already treats a zero mask (an invalid WR), so no path indexes the array out of bounds. |
Risk And Classification
Primary CVSS: v3.1 7.1 HIGH from 416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | Secondary | 7.1 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| 3.1 | CNA | DECLARED | 7.1 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
NoneAvailability
HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 8700e3e7c4857d28ebaa824509934556da0b3e76 678d7b3ef6b0e857b1d6291c67433ebbdacbdb37 git | Not specified |
| CNA | Linux | Linux | affected 8700e3e7c4857d28ebaa824509934556da0b3e76 628515523e9aa9c9e8d2c08c2bddb09e399906b4 git | Not specified |
| CNA | Linux | Linux | affected 8700e3e7c4857d28ebaa824509934556da0b3e76 8e2679b21986915ee7a53a65e83c4aebb670e8bd git | Not specified |
| CNA | Linux | Linux | affected 8700e3e7c4857d28ebaa824509934556da0b3e76 d62748818061f2c8bc91d529a36bd7ddfbb8587f git | Not specified |
| CNA | Linux | Linux | affected 8700e3e7c4857d28ebaa824509934556da0b3e76 d770b8769c38de78a0bda77aab84b38235d45719 git | Not specified |
| CNA | Linux | Linux | affected 8700e3e7c4857d28ebaa824509934556da0b3e76 fe6cd7c3d9698ae0a29fd831f26bbfa7f67bf959 git | Not specified |
| CNA | Linux | Linux | affected 8700e3e7c4857d28ebaa824509934556da0b3e76 4ff8efdd007cec66a46b1c05eff80148b26813d6 git | Not specified |
| CNA | Linux | Linux | affected 8700e3e7c4857d28ebaa824509934556da0b3e76 c887e53e1c852b88bd5442d1bf4717ee3e7aadda git | Not specified |
| CNA | Linux | Linux | affected 4.8 | Not specified |
| CNA | Linux | Linux | unaffected 4.8 semver | Not specified |
| CNA | Linux | Linux | unaffected 5.10.275 5.10.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15.226 5.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.1.193 6.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.163 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.119 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.65 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.3.6 7.3.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.4-rc1 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/8e2679b21986915ee7a53a65e83c4aebb670e8bd | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/628515523e9aa9c9e8d2c08c2bddb09e399906b4 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/678d7b3ef6b0e857b1d6291c67433ebbdacbdb37 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/d62748818061f2c8bc91d529a36bd7ddfbb8587f | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/fe6cd7c3d9698ae0a29fd831f26bbfa7f67bf959 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/4ff8efdd007cec66a46b1c05eff80148b26813d6 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/d770b8769c38de78a0bda77aab84b38235d45719 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/c887e53e1c852b88bd5442d1bf4717ee3e7aadda | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.