CVE-2026-139375

Source
https://cve.org/CVERecord?id=CVE-2026-139375
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139375.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139375
Downstream
Published
2026-11-30T13:34:10Z
Modified
2026-11-30T15:02:28Z
Summary
Bluetooth: 6lowpan: Drain RCU readers on registration failure
Details

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

Bluetooth: 6lowpan: Drain RCU readers on registration failure

A lowpan_btle_dev is embedded in its net_device allocation and must remain alive until readers of bt_6lowpan_devices have left their RCU sections. setup_netdev() publishes it before registration, but its error path only unlinks it before calling free_netdev().

If a second controller's registration fails while multicast is sent on an existing 6LoWPAN interface, send_mcast_pkt() can already have selected the new entry. It reads entry->netdev before checking which interface owns it. An early failure, such as allocating the device's name node, leaves NETREG_UNINITIALIZED, so free_netdev() releases the storage immediately.

The following ordering frees the selected entry before the reader loads its netdev field:

Adapter creation (controller B) Multicast on controller A setup_netdev() list_add_rcu() rcu_read_lock() select B's entry lowpan_register_netdev() fails list_del_rcu() free_netdev() read entry->netdev rcu_read_unlock()

Removing the list node does not wait for that reader, and devices_lock does not serialize the multicast reader. The subsequent field load is a use-after-free, reported by KASAN in bt_xmit().

Wait for an RCU grace period after dropping devices_lock and before free_netdev(). This keeps the failed adapter allocated until traversals that could have selected it complete. The callback is already sleepable, and the wait happens outside the list spinlock.

KASAN report as below:

==================================================================
BUG: KASAN: slab-use-after-free in bt_xmit+0x1d06/0x21e0
Read of size 8 at addr ffff88810ef45030 by task python3/556

Call Trace:
 <TASK>
 dump_stack_lvl+0x93/0xd0
 print_report+0xce/0x630
 ? bt_xmit+0x1d06/0x21e0
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? __virt_addr_valid+0x20d/0x410
 ? bt_xmit+0x1d06/0x21e0
 kasan_report+0xe0/0x110
 ? bt_xmit+0x1d06/0x21e0
 bt_xmit+0x1d06/0x21e0
 ? __pfx_bt_xmit+0x10/0x10
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? lock_acquire+0x17b/0x2f0
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? lock_is_held_type+0x8f/0x100
 ? dev_hard_start_xmit+0x187/0x660
 ? __pfx_bt_xmit+0x10/0x10
 dev_hard_start_xmit+0x187/0x660
 sch_direct_xmit+0x153/0x850
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? __pfx_sch_direct_xmit+0x10/0x10
 ? do_raw_spin_lock+0x130/0x270
 ? __pfx_do_raw_spin_lock+0x10/0x10
 ? lock_is_held_type+0x8f/0x100
 __dev_queue_xmit+0x3111/0x3aa0
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? look_up_lock_class+0x59/0x130
 ? register_lock_class+0x41/0x790
 ? __pfx___dev_queue_xmit+0x10/0x10
 ? __lock_acquire+0x466/0x2260
 ? find_held_lock+0x2b/0x80
 ? ___neigh_create+0x1690/0x2540
 ? __local_bh_enable_ip+0xa6/0x120
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? lockdep_hardirqs_on_prepare+0xea/0x1a0
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? lock_acquire+0x17b/0x2f0
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? find_held_lock+0x2b/0x80
 ? ip6_finish_output2+0x8be/0x1840
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? neigh_connected_output+0x39f/0x4e0
 ? srso_alias_return_thunk+0x5/0xfbef5
 neigh_connected_output+0x33f/0x4e0
 ip6_finish_output2+0x8be/0x1840
 ip6_finish_output+0x424/0xd50
 ip6_output+0x210/0x640
 ? __pfx_ip6_mr_output+0x10/0x10
 ip6_local_out+0x193/0x1c0
 ip6_send_skb+0xfb/0x3e0
 udp_v6_send_skb+0x6e1/0x1180
 udpv6_sendmsg+0x1f9b/0x2a00
 ? get_random_u32+0xaf/0x640
 ? __pfx_udpv6_sendmsg+0x10/0x10
 ? lock_release+0xc8/0x280
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? lockdep_hardirqs_on_prepare+

---truncated---

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139375.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5857d1dbae7d5bf4219efc39996ad002362a2951
Fixed
49cfbd23f20a29a53ac407410b0959eb8673c757
Fixed
e790719381d50db342dc1378310918500031a549
Fixed
e5871d9c90120dd6966665a10ebfaf7171143afd
Fixed
7b6680b21010caddd7733c789ecb0b1bc57e3f72
Fixed
f2b313789153a30f69af6aac21e887b033b05532
Fixed
ebbddce5db33966fb07af8b4dd15c06aeb6990ef
Fixed
6c6341939a19a6834989ac0679b978f1cecd07e8
Fixed
ebba800d140b580540ad55f670d943e4a7edaffd

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139375.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.3.0
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139375.json"