CVE-2026-74378

RDMA/rxe: Fix TOCTOU heap overflow in get_srq_wqe

Published Aug 15, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

RDMA/rxe: Fix TOCTOU heap overflow in get_srq_wqe

get_srq_wqe() reads wqe->dma.num_sge from the shared receive queue
buffer, which is mapped into userspace. It validates num_sge against
max_sge, but then re-reads the same field to calculate the memcpy
size. A concurrent userspace thread can modify num_sge between
validation and use, causing a heap buffer overflow when copying the
WQE into qp->resp.srq_wqe.

Read num_sge into a local variable and use it for both the bounds
check and the size calculation.

Analysis

AI-generated

Technical impact

The RDMA/rxe module in the Linux kernel contains a time‑of‑check to time‑of‑use race condition within get_srq_wqe(). The function reads num_sge from a user‑mapped receive queue buffer, verifies it against max_sge, and then rereads num_sge to compute a memcpy size. If a concurrent userspace thread changes num_sge between the two reads, the kernel may copy more data into qp->resp.srq_wqe than the destination buffer can hold, causing a heap buffer overflow. An attacker who can control the RDMA buffer can use this overflow to corrupt kernel memory, potentially leading to privilege escalation or denial of service, as the affected code runs with kernel privileges.

Affected Systems

All Linux kernel builds that include the RDMA/rxe component are potentially affected until the fix that copies num_sge into a local variable is applied. The vulnerability description does not list specific kernel release numbers, so any kernel containing the vulnerable RDMA/rxe source should be considered at risk.

Risk and Exploitability

The CVSS score of 7.8 indicates a high severity flaw, while the EPSS score of < 1% suggests that exploitation is unlikely but still possible. The vulnerability is not in the CISA KEV catalog, so no public exploit evidence exists yet. The likely attack vector is local: a user‑space process with RDMA permission can manipulate the shared buffer to trigger the race. This inference is derived from the description; the input does not explicitly state the vector. If RDMA services are exposed over a network, a remote actor could potentially achieve the same effect by sending crafted RDMA packets, but this remains speculative based on the data provided.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that incorporates the RDMA/rxe get_srq_wqe fix
  • If an update cannot be applied immediately, rebuild or configure the kernel with CONFIG_RDMA_RXE=n to disable RDMA/rxe support, or unload the module if it is loaded
  • Restrict RDMA access to trusted users by removing the ‘rdma’ group from untrusted accounts or setting restrictive permissions on the RDMA kernel module

Generated by OpenCVE AI on August 22, 2026 at 01:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8917-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8918-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8961-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9029-1 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9192-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-119
CWE-362
Type Values Removed Values Added
Weaknesses CWE-119
CWE-362
Type Values Removed Values Added
Weaknesses CWE-119
CWE-504
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-119
CWE-504
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: RDMA/rxe: Fix TOCTOU heap overflow in get_srq_wqe get_srq_wqe() reads wqe->dma.num_sge from the shared receive queue buffer, which is mapped into userspace. It validates num_sge against max_sge, but then re-reads the same field to calculate the memcpy size. A concurrent userspace thread can modify num_sge between validation and use, causing a heap buffer overflow when copying the WQE into qp->resp.srq_wqe. Read num_sge into a local variable and use it for both the bounds check and the size calculation.
Title RDMA/rxe: Fix TOCTOU heap overflow in get_srq_wqe
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-131

    Incorrect Calculation of Buffer Size

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 16, 2026, 6:55 PM
Reserved
Aug 15, 2026, 5:44 AM
Status
Received
Published
Aug 15, 2026, 6:22 AM
Modified
Oct 16, 2026, 7:17 PM
Severity
Moderate
Public date
Aug 15, 2026, 12:00 AM