# CVE-2026-139691: RDMA/rxe: Use validated num\_sge in local buffer

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:37:05.261Z
- **Modified:** 2026-11-30T14:19:58.520Z

> **AI summary (AI-generated, claude-haiku-5-5):** A local user with control of shared memory can race a WQE copy in the Linux kernel RDMA rxe driver, causing out-of-bounds memory reads via an unvalidated num\_sge value.

## Who should check

- Anyone running Linux \>= 3cfa2a3adc51b7c57729961a03446962ff10e3d2, \< bbadac94c3d51400182f6604e8cb721490713490; \>= cd19a6345e3727adafafa5954b58b13c92e13b80, \< 036a24afc6bd194cfbbe506ac6f4b6d11810192f; \>= 3e07ea9579dc9553d2285c26c2823931358aa3b8, \< d5f9a0ad940f1d7eb55e1397e668f8efb5c66f2a; \>= 02558c86b6b761063e9399e6b939984500327ef1, \< 718fe137c0057c7a56204e3a677de4f9dbacdd1d; \>= 22b8fbded65b8c441b634a185f8da67657df6c50, \< d53a8bf76833bdd93f643b0a715eb5b2b4ff06d6; \>= 22b8fbded65b8c441b634a185f8da67657df6c50, \< a4368022a3ac5324356ae8d88e3a42d115956fd6; c8db0e5ab0b6c540214c46c56aaac7cbcb0967fe; e48daa94ad2d406225b73491fc935064716f0ec7; b9800d7953d119bcc068c74587d48e4ba0313629; 2e60378fb3c8b51c94103bb40014c4fe38fa5033; …
- Anyone running Linux 7.2

## 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.

## Affected and fixed versions

- Linux: \>= 3cfa2a3adc51b7c57729961a03446962ff10e3d2, \< bbadac94c3d51400182f6604e8cb721490713490; \>= cd19a6345e3727adafafa5954b58b13c92e13b80, \< 036a24afc6bd194cfbbe506ac6f4b6d11810192f; \>= 3e07ea9579dc9553d2285c26c2823931358aa3b8, \< d5f9a0ad940f1d7eb55e1397e668f8efb5c66f2a; \>= 02558c86b6b761063e9399e6b939984500327ef1, \< 718fe137c0057c7a56204e3a677de4f9dbacdd1d; \>= 22b8fbded65b8c441b634a185f8da67657df6c50, \< d53a8bf76833bdd93f643b0a715eb5b2b4ff06d6; \>= 22b8fbded65b8c441b634a185f8da67657df6c50, \< a4368022a3ac5324356ae8d88e3a42d115956fd6; c8db0e5ab0b6c540214c46c56aaac7cbcb0967fe; e48daa94ad2d406225b73491fc935064716f0ec7; b9800d7953d119bcc068c74587d48e4ba0313629; 2e60378fb3c8b51c94103bb40014c4fe38fa5033; … (cvelist)
- Linux: 7.2 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139691. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139691.md
Affected: Linux >= 3cfa2a3adc51b7c57729961a03446962ff10e3d2, < bbadac94c3d51400182f6604e8cb721490713490; >= cd19a6345e3727adafafa5954b58b13c92e13b80, < 036a24afc6bd194cfbbe506ac6f4b6d11810192f; >= 3e07ea9579dc9553d2285c26c2823931358aa3b8, < d5f9a0ad940f1d7eb55e1397e668f8efb5c66f2a; >= 02558c86b6b761063e9399e…
Fixed in: Linux 036a24afc6bd194cfbbe506ac6f4b6d11810192f, Linux 718fe137c0057c7a56204e3a677de4f9dbacdd1d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139691 being exploited?

There is no confirmed exploitation: CVE-2026-139691 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139691?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139691?

Linux \>= 3cfa2a3adc51b7c57729961a03446962ff10e3d2, \< bbadac94c3d51400182f6604e8cb721490713490; \>= cd19a6345e3727adafafa5954b58b13c92e13b80, \< 036a24afc6bd194cfbbe506ac6f4b6d11810192f; \>= 3e07ea9579dc9553d2285c26c2823931358aa3b8, \< d5f9a0ad940f1d7eb55e1397e668f8efb5c66f2a; \>= 02558c86b6b761063e9399e6b939984500327ef1, \< 718fe137c0057c7a56204e3a677de4f9dbacdd1d; \>= 22b8fbded65b8c441b634a185f8da67657df6c50, \< d53a8bf76833bdd93f643b0a715eb5b2b4ff06d6; \>= 22b8fbded65b8c441b634a185f8da67657df6c50, \< a4368022a3ac5324356ae8d88e3a42d115956fd6; c8db0e5ab0b6c540214c46c56aaac7cbcb0967fe; e48daa94ad2d406225b73491fc935064716f0ec7; b9800d7953d119bcc068c74587d48e4ba0313629; 2e60378fb3c8b51c94103bb40014c4fe38fa5033; …; Linux 7.2.

### Is there a fix for CVE-2026-139691?

Yes. Fixed in Linux 036a24afc6bd194cfbbe506ac6f4b6d11810192f, Linux 718fe137c0057c7a56204e3a677de4f9dbacdd1d. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-139691?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/bbadac94c3d51400182f6604e8cb721490713490>
- other: <https://git.kernel.org/stable/c/036a24afc6bd194cfbbe506ac6f4b6d11810192f>
- other: <https://git.kernel.org/stable/c/d5f9a0ad940f1d7eb55e1397e668f8efb5c66f2a>
- other: <https://git.kernel.org/stable/c/718fe137c0057c7a56204e3a677de4f9dbacdd1d>
- other: <https://git.kernel.org/stable/c/d53a8bf76833bdd93f643b0a715eb5b2b4ff06d6>
- other: <https://git.kernel.org/stable/c/a4368022a3ac5324356ae8d88e3a42d115956fd6>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139691>

HTML: <https://flawdb.com/CVE-2026-139691> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139691>
