Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139356

published high CVSS 3.1 · 7.1

RDMA/rxe: validate inline sge_offset in finish_packet() before indexing inline_data[]

Published
30 Nov 2026, 13:34:00 UTC
Updated
01 Dec 2026, 05:42:28 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux8700e3e7c4857d28ebaa824509934556da0b3e76 to < d7bc85182be87f8a4a5418f12e3378d790cae630 · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 5c231af4a0d14c125d7120f500ab71cd251cab36 · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 1706290f1a8de07a29c1b1e6bb61048699c578e2 · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < a99c5a54227ba60c4c8e26a570d6d724c39f6ae1 · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 01e79cab51d9a75815a57f5dfb7c8cefe8e88ea7 · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 1d77fd886b4757388246bb8ab2fb805b72ddaed0 · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 47a9c0338f2e0d4178d77b0d2f529fe1fde84642 · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.8 (affected) · 0 to < 4.8 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Pending Fix; Not Affected Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: RDMA/rxe: validate inline sge_offset in finish_packet() before indexing inline_data[] For a user QP, rxe_post_send() takes the qp->is_user branch and never runs init_send_wqe(), so dma.length/resid/num_sge/cur_sge/sge_offset all come straight from the mmap'd SQ ring. In the inline send path finish_packet() uses sge_offset directly as an index: u8 *tmp = &wqe->dma.inline_data[wqe->dma.sge_offset]; memcpy(payload_addr(pkt), tmp, payload); inline_data is a flex array whose capacity is qp->sq.max_inline, but sge_offset is a u32 from user space, so the source pointer is displaced arbitrarily past the WQE and the memcpy reads out of bounds. commit 126c757e4cd4 ("RDMA/rxe: Validate num_sge/cur_sge before indexing wqe->dma.sge[]") added num_sge/cur_sge checks on the send path but not sge_offset, the third attacker-controlled index in the same struct. Read sge_offset once with READ_ONCE() and bound it (and the payload that follows it) by qp->sq.max_inline before indexing, so the value that is validated is the value that is used.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.1 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Scenarios
en: AV:L - The bad wqe->dma.sge_offset is written by the local process into its mmap'd rxe send queue (rxe_init_sq, vmalloc_user); rxe_post_send() for qp->is_user only schedules send_task, and rxe_requester()->finish_packet() then uses it. Kernel QPs get sge_offset=0 from init_send_wqe(), and inbound RoCE packets never carry this field. AC:L - On a host with an rxe device, the attacker creates a QP, sets IB_SEND_INLINE, resid and an arbitrary u32 sge_offset in their own SQ slot, and calls IB_USER_VERBS_CMD_POST_SEND. finish_packet() indexes inline_data[sge_offset] with no race, no bound check and no victim state. PR:L - uverbs_devnode() creates /dev/infiniband/uverbsN with mode 0666, and creating a PD, CQ, RC/UD QP and AH and posting sends needs no capability, so any unprivileged local user can reach it. Creating the rxe link itself needs init-ns CAP_NET_ADMIN (RDMA_NL_ADMIN_PERM), but the attacker does not need to do that. UI:N - The attacker posts the malformed inline WQE on their own QP and receives the result on their own second QP. No other user has to act. S:U - The out-of-bounds memcpy runs in the host kernel's rxe requester worker on behalf of the local process. It does not cross a VM, guest-to-host or IOMMU boundary. C:H - memcpy(payload_addr(pkt), &inline_data[sge_offset], payload) reads up to one MTU (4096 bytes) from anywhere up to 4 GiB past the SQ in vmalloc space, which includes VMAP_STACK kernel stacks. That data is sent in a packet the attacker can loop back (RXE_LOOPBACK_MASK) to their own receive QP, giving a repeatable kernel memory read. I:N - The only write is into the skb that init_req_packet() allocates with paylen derived from the same payload, plus the resid and sge_offset updates inside the attacker's own WQE slot. The bug reads kernel memory out of bounds but never writes it. A:H - If sge_offset points at a vmalloc guard page or an unmapped range, the memcpy in finish_packet() page-faults and oopses the rxe worker. On older kernels this runs in tasklet (softirq) context and panics the host.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 8700e3e7c4857d28ebaa824509934556da0b3e76 to < d7bc85182be87f8a4a5418f12e3378d790cae630 (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < 5c231af4a0d14c125d7120f500ab71cd251cab36 (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < 1706290f1a8de07a29c1b1e6bb61048699c578e2 (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < a99c5a54227ba60c4c8e26a570d6d724c39f6ae1 (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < 01e79cab51d9a75815a57f5dfb7c8cefe8e88ea7 (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < 1d77fd886b4757388246bb8ab2fb805b72ddaed0 (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < 47a9c0338f2e0d4178d77b0d2f529fe1fde84642 (affected · git)Default: unaffected Linux · cna
Linux Linux 4.8 (affected)0 to < 4.8 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

7

Provider assertions

1

Linux · cna

RDMA/rxe: validate inline sge_offset in finish_packet() before indexing inline_data[]

Provenance

Schema
5.2
Searchable
yes
Content hash
cbb54c9335bc5a5994d416f0e279046db5bf614957a8741d57e51b1a9c921a5e
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected