CVE-2026-139691

RDMA/rxe: Use validated num_sge in local buffer

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

RDMA/rxe: Use validated num_sge in local buffer

For both SRQ and non-SRQ receive paths, the WQE is copied into a local
buffer to provide a kernel-owned, validated copy. While calculating the
memcpy size from the validated num_sge prevents overflow during the
copy, memcpy() itself still copies num_sge from shared memory.

A concurrent userspace modification before or during memcpy() leaves
an unvalidated num_sge in the local buffer, leading to potential
out-of-bounds reads in rxe_resp_check_length() and copy_data() causing:

BUG: KASAN: slab-out-of-bounds in rxe_receiver+0x8109/0x9ec0 [rdma_rxe]
Read of size 4 at addr ffff88812c4867f8 by task kworker/u9:6/361
Workqueue: rxe_wq do_work [rdma_rxe]
Call Trace:
rxe_receiver+0x8109/0x9ec0 [rdma_rxe]
do_work+0x149/0x610 [rdma_rxe]
process_one_work+0x726/0x10a0

The buggy address belongs to the object at ffff88812c486000
which belongs to the cache kmalloc-part-13-2k of size 2048
The buggy address is located 0 bytes to the right of
allocated 2040-byte region [ffff88812c486000, ffff88812c4867f8)

Explicitly assign the validated num_sge to the local buffer after the
copy to prevent this race.

Analysis

AI-generated

Technical impact

A race condition exists in the RDMA/rxe receive paths that allows a concurrent userspace modification of the num_sge field during the memcpy of the WQE to a kernel‑owned buffer. Because the copy uses the unvalidated num_sge, the local buffer may contain an invalid length. This leads to out‑of‑bounds reads in rxe_resp_check_length() and copy_data(), which can expose arbitrary kernel memory to the attacker and may enable privilege escalation.

Affected Systems

All Linux kernel installations that include the RDMA/rxe module are potentially impacted. The vulnerability applies to both SRQ and non‑SRQ receive paths, regardless of kernel release, until the patch that assigns the validated num_sge after the copy is applied.

Risk and Exploitability

The CVSS score is not available in the data provided, and the EPSS score is not reported, so the exploitation probability cannot be quantified. The vulnerability is not listed in the CISA KEV catalog. Because the attack requires a race condition between a userspace RDMA application and the kernel’s rdma_rxe module, the attack vector is likely local or through a trusted RDMA device. Exploitation would involve forging or manipulating the num_sge value to read beyond the allocated buffer in kernel space, potentially leaking sensitive data. Given the lack of known public exploits and the need for a race, the risk is moderate but should be mitigated promptly.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest kernel update that includes the patch assigning the validated num_sge after memcpy
  • Verify that the rdma_rxe kernel module is built and loaded only on systems that require RDMA over RoCE/Ethernet
  • If a timely patch is unavailable, consider disabling the RDMA/rxe module or blocking RDMA traffic to prevent the race from occurring

Generated by OpenCVE AI on December 1, 2026 at 01:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-125
CWE-362
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: RDMA/rxe: Use validated num_sge in local buffer For both SRQ and non-SRQ receive paths, the WQE is copied into a local buffer to provide a kernel-owned, validated copy. While calculating the memcpy size from the validated num_sge prevents overflow during the copy, memcpy() itself still copies num_sge from shared memory. A concurrent userspace modification before or during memcpy() leaves an unvalidated num_sge in the local buffer, leading to potential out-of-bounds reads in rxe_resp_check_length() and copy_data() causing: BUG: KASAN: slab-out-of-bounds in rxe_receiver+0x8109/0x9ec0 [rdma_rxe] Read of size 4 at addr ffff88812c4867f8 by task kworker/u9:6/361 Workqueue: rxe_wq do_work [rdma_rxe] Call Trace: rxe_receiver+0x8109/0x9ec0 [rdma_rxe] do_work+0x149/0x610 [rdma_rxe] process_one_work+0x726/0x10a0 The buggy address belongs to the object at ffff88812c486000 which belongs to the cache kmalloc-part-13-2k of size 2048 The buggy address is located 0 bytes to the right of allocated 2040-byte region [ffff88812c486000, ffff88812c4867f8) Explicitly assign the validated num_sge to the local buffer after the copy to prevent this race.
Title RDMA/rxe: Use validated num_sge in local buffer
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-125

    Out-of-bounds Read

  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM