Skip to content
FlawDB
Sign in

CVE-2026-139580

UNSCORED

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

AI summary AI generated

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.

Mitigation

  • Upgrade Linux to 4af07308d8227affa1710b392ba79af7e878073e or later.

Who should check

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

Vulnerability facts

Affected
Linux >= f1327abd6abed031ae4146825c6b28bdd1456474, < 3708e0d1e7ae01f5a7981c8b64713ef0fe5b5955; >= f1327abd6abed031ae4146825c6b28bdd1456474, < 4af07308d8227affa1710b392ba79af7e878073e; Linux 7.1
Fixed in
Linux 3708e0d1e7ae01f5a7981c8b64713ef0fe5b5955, Linux 4af07308d8227affa1710b392ba79af7e878073e
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
Published
Modified

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

Package / productAffectedFixedSource
Linux>= f1327abd6abed031ae4146825c6b28bdd1456474, < 3708e0d1e7ae01f5a7981c8b64713ef0fe5b5955; >= f1327abd6abed031ae4146825c6b28bdd1456474, < 4af07308d8227affa1710b392ba79af7e878073e—cvelist
Linux7.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

Technologies

References

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.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
MEDIUM 6.5CVE-2026-140063

Glib2: authenticated dos via pre-emptive 128mib read-buffer allocation in gdbusworker

Linux kernel+1
MEDIUM 5.1CVE-2026-140038

Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber

Linux kernel+1
HIGH 7.3CVE-2026-139801

KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM

Linux kernel
UNSCOREDCVE-2026-139800

9p/xen: drain response work after unbinding IRQ

Linux kernel
HIGH 7.0CVE-2026-139799

mm/shmem: hold off eviction in shmem_writeout()

Linux kernel
Sponsors