# CVE-2026-139580: RDMA/rxe: unpublish the per-net tunnel socket before

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

> **AI summary (AI-generated, claude-haiku-5-5):** A local user with CAP\_NET\_ADMIN can trigger a use-after-free in the Linux kernel RDMA/rxe driver by removing the device while RoCE v2 over IPv6 traffic still uses the tunnel socket.

## Who should check

- Anyone running Linux \>= f1327abd6abed031ae4146825c6b28bdd1456474, \< 3708e0d1e7ae01f5a7981c8b64713ef0fe5b5955; \>= f1327abd6abed031ae4146825c6b28bdd1456474, \< 4af07308d8227affa1710b392ba79af7e878073e
- Anyone running Linux 7.1

## Description

In the Linux kernel, the following vulnerability has been resolved:

RDMA/rxe: unpublish the per-net tunnel socket before

KASAN reports a slab-use-after-free in ip6\_route\_output\_flags()
reached from rxe\_find\_route(), with the free in \_\_sk\_destruct() after
rxe\_sock\_put(), and a user with CAP\_NET\_ADMIN can remove the device with
"rdma link del rxe0" while RoCE v2 over IPv6 traffic keeps looking the
socket up.

BUG: KASAN: slab-use-after-free in ip6\_route\_output\_flags+0x300/0x360
Read of size 4 at addr ffff888115ddd794 by task kworker/u32:6/309
Call Trace:
 \<TASK\>
 dump\_stack\_lvl+0x53/0x70
 print\_report+0xd0/0x630
 ? \_\_pfx\_\_raw\_spin\_lock\_irqsave+0x10/0x10
 ? ip6\_route\_output\_flags+0x300/0x360
 kasan\_report+0xce/0x100
 ? ip6\_route\_output\_flags+0x300/0x360
 ip6\_route\_output\_flags+0x300/0x360
 ip6\_dst\_lookup\_tail.constprop.0+0x76c/0xcc0
 ? ct\_nmi\_exit+0xc3/0xf0
 ip6\_dst\_lookup\_flow+0xf5/0x1e0
 ? \_\_pfx\_ip6\_dst\_lookup\_flow+0x10/0x10
 rxe\_find\_route+0x426/0xa30
 ? \_\_kasan\_slab\_alloc+0x6e/0x70
 ? \_\_pfx\_rxe\_find\_route+0x10/0x10
 ? kmem\_cache\_alloc\_node\_noprof+0x141/0x370
 ? kmalloc\_reserve+0x103/0x2b0
 ? rxe\_icrc\_generate+0x229/0x330
 ? \_\_pfx\_\_\_alloc\_skb+0x10/0x10
 rxe\_prepare+0x9e8/0x18b0
 ? rxe\_init\_packet+0x3c7/0x4f0
 rxe\_requester+0x1a0f/0x51f0
 ? rxe\_completer+0x1de9/0x38c0
 ? \_\_pfx\_rxe\_completer+0x10/0x10
 ? \_\_queue\_work+0x43e/0x11f0
 ? \_\_pfx\_rxe\_requester+0x10/0x10
 ? irqentry\_exit+0xd2/0x640
 ? \_raw\_spin\_lock\_irqsave+0x85/0xe0
 ? \_\_pfx\_\_raw\_spin\_lock\_irqsave+0x10/0x10
 ? \_\_pfx\_rxe\_sender+0x10/0x10
 rxe\_sender+0xe/0x30
 do\_work+0x144/0x470
 process\_one\_work+0x633/0x1030
 ? assign\_work+0x11d/0x370
 worker\_thread+0x45b/0xd10
 ? \_\_pfx\_worker\_thread+0x10/0x10
 kthread+0x2c6/0x3b0
 ? recalc\_sigpending+0x15c/0x1e0
 ? \_\_pfx\_kthread+0x10/0x10
 ret\_from\_fork+0x36e/0x5a0
 ? \_\_pfx\_ret\_from\_fork+0x10/0x10
 ? \_\_switch\_to+0x572/0xdd0
 ? \_\_pfx\_kthread+0x10/0x10
 ret\_from\_fork\_asm+0x1a/0x30
 \</TASK\>

Allocated by task 146020:
 kasan\_save\_stack+0x33/0x60
 kasan\_save\_track+0x14/0x30
 \_\_kasan\_slab\_alloc+0x6e/0x70
 kmem\_cache\_alloc\_noprof+0x130/0x360
 sk\_prot\_alloc+0x56/0x210

Fix by clearing the per-net pointer before the last reference is dropped.

## Affected and fixed versions

- Linux: \>= f1327abd6abed031ae4146825c6b28bdd1456474, \< 3708e0d1e7ae01f5a7981c8b64713ef0fe5b5955; \>= f1327abd6abed031ae4146825c6b28bdd1456474, \< 4af07308d8227affa1710b392ba79af7e878073e (cvelist)
- Linux: 7.1 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 4af07308d8227affa1710b392ba79af7e878073e or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-139580.md
Affected: Linux >= f1327abd6abed031ae4146825c6b28bdd1456474, < 3708e0d1e7ae01f5a7981c8b64713ef0fe5b5955; >= f1327abd6abed031ae4146825c6b28bdd1456474, < 4af07308d8227affa1710b392ba79af7e878073e; Linux 7.1
Fixed in: Linux 3708e0d1e7ae01f5a7981c8b64713ef0fe5b5955, Linux 4af07308d8227affa1710b392ba79af7e878073e

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-139580 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= f1327abd6abed031ae4146825c6b28bdd1456474, \< 3708e0d1e7ae01f5a7981c8b64713ef0fe5b5955; \>= f1327abd6abed031ae4146825c6b28bdd1456474, \< 4af07308d8227affa1710b392ba79af7e878073e; Linux 7.1.

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

Yes. Fixed in Linux 3708e0d1e7ae01f5a7981c8b64713ef0fe5b5955, Linux 4af07308d8227affa1710b392ba79af7e878073e. Upgrade Linux to 4af07308d8227affa1710b392ba79af7e878073e or later.

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

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/3708e0d1e7ae01f5a7981c8b64713ef0fe5b5955>
- other: <https://git.kernel.org/stable/c/4af07308d8227affa1710b392ba79af7e878073e>

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

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