{"id":"CVE-2026-139580","state":"PUBLISHED","title":"RDMA/rxe: unpublish the per-net tunnel socket before","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rxe: unpublish the per-net tunnel socket before\n\nKASAN reports a slab-use-after-free in ip6_route_output_flags()\nreached from rxe_find_route(), with the free in __sk_destruct() after\nrxe_sock_put(), and a user with CAP_NET_ADMIN can remove the device with\n\"rdma link del rxe0\" while RoCE v2 over IPv6 traffic keeps looking the\nsocket up.\n\nBUG: KASAN: slab-use-after-free in ip6_route_output_flags+0x300/0x360\nRead of size 4 at addr ffff888115ddd794 by task kworker/u32:6/309\nCall Trace:\n <TASK>\n dump_stack_lvl+0x53/0x70\n print_report+0xd0/0x630\n ? __pfx__raw_spin_lock_irqsave+0x10/0x10\n ? ip6_route_output_flags+0x300/0x360\n kasan_report+0xce/0x100\n ? ip6_route_output_flags+0x300/0x360\n ip6_route_output_flags+0x300/0x360\n ip6_dst_lookup_tail.constprop.0+0x76c/0xcc0\n ? ct_nmi_exit+0xc3/0xf0\n ip6_dst_lookup_flow+0xf5/0x1e0\n ? __pfx_ip6_dst_lookup_flow+0x10/0x10\n rxe_find_route+0x426/0xa30\n ? __kasan_slab_alloc+0x6e/0x70\n ? __pfx_rxe_find_route+0x10/0x10\n ? kmem_cache_alloc_node_noprof+0x141/0x370\n ? kmalloc_reserve+0x103/0x2b0\n ? rxe_icrc_generate+0x229/0x330\n ? __pfx___alloc_skb+0x10/0x10\n rxe_prepare+0x9e8/0x18b0\n ? rxe_init_packet+0x3c7/0x4f0\n rxe_requester+0x1a0f/0x51f0\n ? rxe_completer+0x1de9/0x38c0\n ? __pfx_rxe_completer+0x10/0x10\n ? __queue_work+0x43e/0x11f0\n ? __pfx_rxe_requester+0x10/0x10\n ? irqentry_exit+0xd2/0x640\n ? _raw_spin_lock_irqsave+0x85/0xe0\n ? __pfx__raw_spin_lock_irqsave+0x10/0x10\n ? __pfx_rxe_sender+0x10/0x10\n rxe_sender+0xe/0x30\n do_work+0x144/0x470\n process_one_work+0x633/0x1030\n ? assign_work+0x11d/0x370\n worker_thread+0x45b/0xd10\n ? __pfx_worker_thread+0x10/0x10\n kthread+0x2c6/0x3b0\n ? recalc_sigpending+0x15c/0x1e0\n ? __pfx_kthread+0x10/0x10\n ret_from_fork+0x36e/0x5a0\n ? __pfx_ret_from_fork+0x10/0x10\n ? __switch_to+0x572/0xdd0\n ? __pfx_kthread+0x10/0x10\n ret_from_fork_asm+0x1a/0x30\n </TASK>\n\nAllocated by task 146020:\n kasan_save_stack+0x33/0x60\n kasan_save_track+0x14/0x30\n __kasan_slab_alloc+0x6e/0x70\n kmem_cache_alloc_noprof+0x130/0x360\n sk_prot_alloc+0x56/0x210\n\nFix by clearing the per-net pointer before the last reference is dropped.","publishedAt":"2026-11-30T13:36:04.249Z","updatedAt":"2026-11-30T13:36:04.249Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f1327abd6abed031ae4146825c6b28bdd1456474","status":"affected","lessThan":"3708e0d1e7ae01f5a7981c8b64713ef0fe5b5955","versionType":"git"},{"version":"f1327abd6abed031ae4146825c6b28bdd1456474","status":"affected","lessThan":"4af07308d8227affa1710b392ba79af7e878073e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/sw/rxe/rxe_net.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.1","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/sw/rxe/rxe_net.c"]}],"references":["https://git.kernel.org/stable/c/3708e0d1e7ae01f5a7981c8b64713ef0fe5b5955","https://git.kernel.org/stable/c/4af07308d8227affa1710b392ba79af7e878073e"],"weaknesses":[],"ingestedAt":"2026-11-30T13:52:04.503Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139580.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139580","state":"PUBLISHED","datePublished":"2026-11-30T13:36:04.249Z","dateUpdated":"2026-11-30T13:36:04.249Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.941Z"},"containers":{"cna":{"title":"RDMA/rxe: unpublish the per-net tunnel socket before","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rxe: unpublish the per-net tunnel socket before\n\nKASAN reports a slab-use-after-free in ip6_route_output_flags()\nreached from rxe_find_route(), with the free in __sk_destruct() after\nrxe_sock_put(), and a user with CAP_NET_ADMIN can remove the device with\n\"rdma link del rxe0\" while RoCE v2 over IPv6 traffic keeps looking the\nsocket up.\n\nBUG: KASAN: slab-use-after-free in ip6_route_output_flags+0x300/0x360\nRead of size 4 at addr ffff888115ddd794 by task kworker/u32:6/309\nCall Trace:\n <TASK>\n dump_stack_lvl+0x53/0x70\n print_report+0xd0/0x630\n ? __pfx__raw_spin_lock_irqsave+0x10/0x10\n ? ip6_route_output_flags+0x300/0x360\n kasan_report+0xce/0x100\n ? ip6_route_output_flags+0x300/0x360\n ip6_route_output_flags+0x300/0x360\n ip6_dst_lookup_tail.constprop.0+0x76c/0xcc0\n ? ct_nmi_exit+0xc3/0xf0\n ip6_dst_lookup_flow+0xf5/0x1e0\n ? __pfx_ip6_dst_lookup_flow+0x10/0x10\n rxe_find_route+0x426/0xa30\n ? __kasan_slab_alloc+0x6e/0x70\n ? __pfx_rxe_find_route+0x10/0x10\n ? kmem_cache_alloc_node_noprof+0x141/0x370\n ? kmalloc_reserve+0x103/0x2b0\n ? rxe_icrc_generate+0x229/0x330\n ? __pfx___alloc_skb+0x10/0x10\n rxe_prepare+0x9e8/0x18b0\n ? rxe_init_packet+0x3c7/0x4f0\n rxe_requester+0x1a0f/0x51f0\n ? rxe_completer+0x1de9/0x38c0\n ? __pfx_rxe_completer+0x10/0x10\n ? __queue_work+0x43e/0x11f0\n ? __pfx_rxe_requester+0x10/0x10\n ? irqentry_exit+0xd2/0x640\n ? _raw_spin_lock_irqsave+0x85/0xe0\n ? __pfx__raw_spin_lock_irqsave+0x10/0x10\n ? __pfx_rxe_sender+0x10/0x10\n rxe_sender+0xe/0x30\n do_work+0x144/0x470\n process_one_work+0x633/0x1030\n ? assign_work+0x11d/0x370\n worker_thread+0x45b/0xd10\n ? __pfx_worker_thread+0x10/0x10\n kthread+0x2c6/0x3b0\n ? recalc_sigpending+0x15c/0x1e0\n ? __pfx_kthread+0x10/0x10\n ret_from_fork+0x36e/0x5a0\n ? __pfx_ret_from_fork+0x10/0x10\n ? __switch_to+0x572/0xdd0\n ? __pfx_kthread+0x10/0x10\n ret_from_fork_asm+0x1a/0x30\n </TASK>\n\nAllocated by task 146020:\n kasan_save_stack+0x33/0x60\n kasan_save_track+0x14/0x30\n __kasan_slab_alloc+0x6e/0x70\n kmem_cache_alloc_noprof+0x130/0x360\n sk_prot_alloc+0x56/0x210\n\nFix by clearing the per-net pointer before the last reference is dropped."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f1327abd6abed031ae4146825c6b28bdd1456474","status":"affected","lessThan":"3708e0d1e7ae01f5a7981c8b64713ef0fe5b5955","versionType":"git"},{"version":"f1327abd6abed031ae4146825c6b28bdd1456474","status":"affected","lessThan":"4af07308d8227affa1710b392ba79af7e878073e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/sw/rxe/rxe_net.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.1","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/sw/rxe/rxe_net.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/3708e0d1e7ae01f5a7981c8b64713ef0fe5b5955"},{"url":"https://git.kernel.org/stable/c/4af07308d8227affa1710b392ba79af7e878073e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:36:04.249Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}