{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139375","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.930Z","datePublished":"2026-11-30T13:34:10.573Z","dateUpdated":"2026-12-01T05:42:38.053Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:42:38.053Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: 6lowpan: Drain RCU readers on registration failure\n\nA lowpan_btle_dev is embedded in its net_device allocation and must\nremain alive until readers of bt_6lowpan_devices have left their RCU\nsections. setup_netdev() publishes it before registration, but its\nerror path only unlinks it before calling free_netdev().\n\nIf a second controller's registration fails while multicast is sent\non an existing 6LoWPAN interface, send_mcast_pkt() can already have\nselected the new entry. It reads entry->netdev before checking which\ninterface owns it. An early failure, such as allocating the device's\nname node, leaves NETREG_UNINITIALIZED, so free_netdev() releases the\nstorage immediately.\n\nThe following ordering frees the selected entry before the reader\nloads its netdev field:\n\n  Adapter creation (controller B)       Multicast on controller A\n  setup_netdev()\n    list_add_rcu()\n                                       rcu_read_lock()\n                                       select B's entry\n    lowpan_register_netdev() fails\n    list_del_rcu()\n    free_netdev()\n                                       read entry->netdev\n                                       rcu_read_unlock()\n\nRemoving the list node does not wait for that reader, and\ndevices_lock does not serialize the multicast reader. The subsequent\nfield load is a use-after-free, reported by KASAN in bt_xmit().\n\nWait for an RCU grace period after dropping devices_lock and before\nfree_netdev(). This keeps the failed adapter allocated until traversals\nthat could have selected it complete. The callback is already sleepable,\nand the wait happens outside the list spinlock.\n\nKASAN report as below:\n\n    ==================================================================\n    BUG: KASAN: slab-use-after-free in bt_xmit+0x1d06/0x21e0\n    Read of size 8 at addr ffff88810ef45030 by task python3/556\n\n    Call Trace:\n     <TASK>\n     dump_stack_lvl+0x93/0xd0\n     print_report+0xce/0x630\n     ? bt_xmit+0x1d06/0x21e0\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __virt_addr_valid+0x20d/0x410\n     ? bt_xmit+0x1d06/0x21e0\n     kasan_report+0xe0/0x110\n     ? bt_xmit+0x1d06/0x21e0\n     bt_xmit+0x1d06/0x21e0\n     ? __pfx_bt_xmit+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? lock_acquire+0x17b/0x2f0\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? lock_is_held_type+0x8f/0x100\n     ? dev_hard_start_xmit+0x187/0x660\n     ? __pfx_bt_xmit+0x10/0x10\n     dev_hard_start_xmit+0x187/0x660\n     sch_direct_xmit+0x153/0x850\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __pfx_sch_direct_xmit+0x10/0x10\n     ? do_raw_spin_lock+0x130/0x270\n     ? __pfx_do_raw_spin_lock+0x10/0x10\n     ? lock_is_held_type+0x8f/0x100\n     __dev_queue_xmit+0x3111/0x3aa0\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? look_up_lock_class+0x59/0x130\n     ? register_lock_class+0x41/0x790\n     ? __pfx___dev_queue_xmit+0x10/0x10\n     ? __lock_acquire+0x466/0x2260\n     ? find_held_lock+0x2b/0x80\n     ? ___neigh_create+0x1690/0x2540\n     ? __local_bh_enable_ip+0xa6/0x120\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? lockdep_hardirqs_on_prepare+0xea/0x1a0\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? lock_acquire+0x17b/0x2f0\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? find_held_lock+0x2b/0x80\n     ? ip6_finish_output2+0x8be/0x1840\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? neigh_connected_output+0x39f/0x4e0\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     neigh_connected_output+0x33f/0x4e0\n     ip6_finish_output2+0x8be/0x1840\n     ip6_finish_output+0x424/0xd50\n     ip6_output+0x210/0x640\n     ? __pfx_ip6_mr_output+0x10/0x10\n     ip6_local_out+0x193/0x1c0\n     ip6_send_skb+0xfb/0x3e0\n     udp_v6_send_skb+0x6e1/0x1180\n     udpv6_sendmsg+0x1f9b/0x2a00\n     ? get_random_u32+0xaf/0x640\n     ? __pfx_udpv6_sendmsg+0x10/0x10\n     ? lock_release+0xc8/0x280\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? lockdep_hardirqs_on_prepare+\n---truncated---"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:A - The fixed function setup_netdev() runs from chan_ready_cb() when a remote LE peer's L2CAP_LE_CONN_REQ on the IPSP PSM (0x23) reaches listen_chan. The same peer can drive the racing readers over its own IPSP channel on a second controller (chan_recv_cb()->lookup_dev()), or via neighbour/MLD multicast that ends in send_mcast_pkt(). Bluetooth LE range makes this Adjacent.\nAC:H - Freeing the entry needs lowpan_register_netdev() to fail, e.g. a GFP_ATOMIC name-bitmap, name-node or ifindex allocation failure, or 32768 bt* names in init_net. Neither a remote peer nor an ordinary user can cause that on demand. The reader must also stall between loading the entry and its next load, and 6LoWPAN needs root to set the debugfs 6lowpan_enable on a host with two controllers.\nPR:N - bt_6lowpan_listen() creates listen_chan with l2cap_chan_set_defaults() security (BT_SECURITY_LOW), so smp_sufficient_security() in l2cap_le_connect_req() accepts an unpaired, unauthenticated LE peer. That peer reaches chan_ready_cb()/setup_netdev() and feeds data to chan_recv_cb().\nUI:N - No local user action is needed per attack. The peer opens the IPSP channels and sends the frames itself. Enabling 6LoWPAN is a standing admin setting and is counted under AC, not as a victim action.\nS:U - The freed lowpan_btle_dev/net_device and the corrupted state are in kernel memory, inside the same kernel security authority. No guest-host, IOMMU or sandbox boundary is crossed.\nC:H - This is a kmalloc-8k use-after-free of the net_device with the lowpan_btle_dev embedded in it. If the slot is reclaimed so that entry->hdev matches, lookup_dev() returns the freed entry. Its forged ->netdev and ->peers are then dereferenced in chan_recv_cb()/recv_pkt(), so the kernel reads through attacker-chosen pointers.\nI:H - Through a reclaimed entry, recv_pkt() writes dev->stats.rx_dropped/rx_bytes through a forged netdev pointer (an arbitrary increment), sets local_skb->dev to it and hands it to netif_rx(). chan_suspend_cb() does netif_stop_queue() on it. Together these give write and control-flow primitives.\nA:H - A reader that follows a reused or zeroed (init_on_free) list.next or netdev from the freed entry oopses in bt_xmit()/send_mcast_pkt() with BH disabled and the TX lock held, or in the hci_rx_work kworker. Either way it crashes the kernel or hangs networking, as the KASAN report shows."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/6lowpan.c"],"versions":[{"version":"5857d1dbae7d5bf4219efc39996ad002362a2951","lessThan":"49cfbd23f20a29a53ac407410b0959eb8673c757","status":"affected","versionType":"git"},{"version":"5857d1dbae7d5bf4219efc39996ad002362a2951","lessThan":"e790719381d50db342dc1378310918500031a549","status":"affected","versionType":"git"},{"version":"5857d1dbae7d5bf4219efc39996ad002362a2951","lessThan":"e5871d9c90120dd6966665a10ebfaf7171143afd","status":"affected","versionType":"git"},{"version":"5857d1dbae7d5bf4219efc39996ad002362a2951","lessThan":"7b6680b21010caddd7733c789ecb0b1bc57e3f72","status":"affected","versionType":"git"},{"version":"5857d1dbae7d5bf4219efc39996ad002362a2951","lessThan":"f2b313789153a30f69af6aac21e887b033b05532","status":"affected","versionType":"git"},{"version":"5857d1dbae7d5bf4219efc39996ad002362a2951","lessThan":"ebbddce5db33966fb07af8b4dd15c06aeb6990ef","status":"affected","versionType":"git"},{"version":"5857d1dbae7d5bf4219efc39996ad002362a2951","lessThan":"6c6341939a19a6834989ac0679b978f1cecd07e8","status":"affected","versionType":"git"},{"version":"5857d1dbae7d5bf4219efc39996ad002362a2951","lessThan":"ebba800d140b580540ad55f670d943e4a7edaffd","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/6lowpan.c"],"versions":[{"version":"4.3","status":"affected"},{"version":"0","lessThan":"4.3","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.3","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.3","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.3","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.3","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.3","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.3","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.3","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.3","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/49cfbd23f20a29a53ac407410b0959eb8673c757"},{"url":"https://git.kernel.org/stable/c/e790719381d50db342dc1378310918500031a549"},{"url":"https://git.kernel.org/stable/c/e5871d9c90120dd6966665a10ebfaf7171143afd"},{"url":"https://git.kernel.org/stable/c/7b6680b21010caddd7733c789ecb0b1bc57e3f72"},{"url":"https://git.kernel.org/stable/c/f2b313789153a30f69af6aac21e887b033b05532"},{"url":"https://git.kernel.org/stable/c/ebbddce5db33966fb07af8b4dd15c06aeb6990ef"},{"url":"https://git.kernel.org/stable/c/6c6341939a19a6834989ac0679b978f1cecd07e8"},{"url":"https://git.kernel.org/stable/c/ebba800d140b580540ad55f670d943e4a7edaffd"}],"title":"Bluetooth: 6lowpan: Drain RCU readers on registration failure","x_generator":{"engine":"bippy-1.2.0"}}}}