{"api_version":"1","generated_at":"2026-11-30T15:13:34+00:00","cve":"CVE-2026-139380","urls":{"html":"https://cve.report/CVE-2026-139380","api":"https://cve.report/api/cve/CVE-2026-139380.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139380","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139380"},"summary":{"title":"Bluetooth: 6LoWPAN: Use RCU-safe device list removal","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: 6LoWPAN: Use RCU-safe device list removal\n\nRCU readers of bt_6lowpan_devices must be able to follow an adapter's\nforward link until their read-side critical section ends. The entries\nare published with list_add_rcu(), but device_event() removes an entry\non NETDEV_UNREGISTER with list_del(), poisoning that link.\n\nWhen an adapter is being unregistered and 6LoWPAN is enabled, a\n6lowpan_control debugfs write with an existing LE L2CAP connection can\nenter lookup_peer() after unregister's first synchronize_net(). If the\nconnection has no peer on that adapter, the reader must advance to the\nnext list entry. Neither RTNL nor devices_lock excludes this RCU reader.\n\nThe last peer's chan_close_cb() schedules delete_netdev(), which reaches\nunregister_netdevice_many_notify() through unregister_dev() and\nlowpan_unregister_netdev(). The following ordering is possible:\n\n  Unregister worker                 Control writer\n  -----------------                 --------------\n  synchronize_net() returns\n                                    lowpan_control_write()\n                                    lookup_peer(): rcu_read_lock()\n                                    reach adapter; no matching peer\n  device_event(): devices_lock\n  list_del(&entry->list)\n  spin_unlock(&devices_lock)\n                                    follow poisoned next link\n                                    read invalid adapter address\n  post-notifier synchronize_net()\n    waits for the reader\n\nThis invalid pointer access can fault in lookup_peer(). The first grace\nperiod drains existing readers but permits new ones to start, and the\nlater grace period cannot prevent the intervening poisoned-link access.\n\nUse list_del_rcu() under the existing devices_lock to preserve the\nforward link for readers that already reached the adapter. The existing\npost-notifier synchronize_net() waits for those readers before netdevice\nteardown frees the private storage containing lowpan_btle_dev.\n\nKASAN report as below:\n\n    [...]\n    [   45.867526] Oops: general protection fault, probably for non-canonical address 0xfbd59c0000000023: 0000 [#1] SMP KASAN NOPTI\n    [   45.869489] KASAN: maybe wild-memory-access in range [0xdead000000000118-0xdead00000000011f]\n    [   45.870981] CPU: 1 UID: 0 PID: 646 Comm: sh Not tainted 7.2.0-rc6-pmb-bt-functional-v1+ #4 PREEMPT(lazy)\n    [   45.872609] Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014\n    [   45.874380] RIP: 0010:lookup_peer+0x1ba/0x320\n    [   45.875067] Code: 48 89 d9 ba 04 00 00 00 4c 89 fe bf a0 06 00 00 e8 2b e8 ad fb e9 56 ff ff ff e8 01 1e c3 fb 49 8d 7f 18 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 4a 01 00 00 4d 8b 47 18 4c 89 f1 ba 04 00 00 00\n    [   45.878206] RSP: 0018:ffff888114d67b90 EFLAGS: 00010212\n    [   45.879106] RAX: 1bd5a00000000023 RBX: 0000000000000000 RCX: ffffffff85c1d19f\n    [   45.880334] RDX: ffff88810dc35700 RSI: 0000000000000000 RDI: dead000000000118\n    [   45.881455] RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000001\n    [   45.882546] R10: ffffffff893d3057 R11: ffff88810dc35700 R12: ffff88810a690000\n    [   45.883839] R13: ffff888115451038 R14: ffff88810a690000 R15: dead000000000100\n    [   45.885186] FS:  00007fa889bac780(0000) GS:ffff8881fd852000(0000) knlGS:0000000000000000\n    [   45.886539] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033\n    [   45.887527] CR2: 00007ffe304f2f80 CR3: 0000000104f64005 CR4: 0000000000770ef0\n    [   45.888687] PKRU: 55555554\n    [   45.889183] Call Trace:\n    [   45.889666]  <TASK>\n    [   45.890061]  lowpan_control_write+0x445/0x9e0\n    [   45.890854]  ? __pfx_lowpan_control_write+0x10/0x10\n    [   45.891738]  ? srso_alias_return_thunk+0x5/0xfbef5\n    [   45.892603]  ? srso_alias_return_thunk+0x5/0xfbef5\n    [   45.893383]  ? __debugfs_file_get+0x1bd/0x7f0\n    [   45.894057]  ? srso_alias_return_thunk+0x5/0x\n---truncated---","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:05","updated_at":"2026-11-30 14:19:05"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/79fce23a5d49929f091a23a23cbac8a818c14c8e","name":"https://git.kernel.org/stable/c/79fce23a5d49929f091a23a23cbac8a818c14c8e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/74f6eebd5d505be362852b003d4da78dd6ea41a8","name":"https://git.kernel.org/stable/c/74f6eebd5d505be362852b003d4da78dd6ea41a8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8c27d7d06e21ba9455ddae4e14f364c57f095cba","name":"https://git.kernel.org/stable/c/8c27d7d06e21ba9455ddae4e14f364c57f095cba","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ee65c667a8d138fa75fc998b6df1a5af60b9032b","name":"https://git.kernel.org/stable/c/ee65c667a8d138fa75fc998b6df1a5af60b9032b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7da83a04109b6115f7ac1fe5c9bf0deeb6956319","name":"https://git.kernel.org/stable/c/7da83a04109b6115f7ac1fe5c9bf0deeb6956319","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/93fd93c28f30fdd2a61a95d2739c2c51d4b6d9cd","name":"https://git.kernel.org/stable/c/93fd93c28f30fdd2a61a95d2739c2c51d4b6d9cd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/09b70addc63b6a12523031e8778f59188ff0e9c0","name":"https://git.kernel.org/stable/c/09b70addc63b6a12523031e8778f59188ff0e9c0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a901025d38ceca77f8bfe15ae9223c0d082992a0","name":"https://git.kernel.org/stable/c/a901025d38ceca77f8bfe15ae9223c0d082992a0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139380","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139380","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 90305829635d90a5053ec99a261035b4ce0a2649 93fd93c28f30fdd2a61a95d2739c2c51d4b6d9cd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 90305829635d90a5053ec99a261035b4ce0a2649 a901025d38ceca77f8bfe15ae9223c0d082992a0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 90305829635d90a5053ec99a261035b4ce0a2649 09b70addc63b6a12523031e8778f59188ff0e9c0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 90305829635d90a5053ec99a261035b4ce0a2649 74f6eebd5d505be362852b003d4da78dd6ea41a8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 90305829635d90a5053ec99a261035b4ce0a2649 ee65c667a8d138fa75fc998b6df1a5af60b9032b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 90305829635d90a5053ec99a261035b4ce0a2649 79fce23a5d49929f091a23a23cbac8a818c14c8e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 90305829635d90a5053ec99a261035b4ce0a2649 7da83a04109b6115f7ac1fe5c9bf0deeb6956319 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 90305829635d90a5053ec99a261035b4ce0a2649 8c27d7d06e21ba9455ddae4e14f364c57f095cba git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.19","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 3.19 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/bluetooth/6lowpan.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"93fd93c28f30fdd2a61a95d2739c2c51d4b6d9cd","status":"affected","version":"90305829635d90a5053ec99a261035b4ce0a2649","versionType":"git"},{"lessThan":"a901025d38ceca77f8bfe15ae9223c0d082992a0","status":"affected","version":"90305829635d90a5053ec99a261035b4ce0a2649","versionType":"git"},{"lessThan":"09b70addc63b6a12523031e8778f59188ff0e9c0","status":"affected","version":"90305829635d90a5053ec99a261035b4ce0a2649","versionType":"git"},{"lessThan":"74f6eebd5d505be362852b003d4da78dd6ea41a8","status":"affected","version":"90305829635d90a5053ec99a261035b4ce0a2649","versionType":"git"},{"lessThan":"ee65c667a8d138fa75fc998b6df1a5af60b9032b","status":"affected","version":"90305829635d90a5053ec99a261035b4ce0a2649","versionType":"git"},{"lessThan":"79fce23a5d49929f091a23a23cbac8a818c14c8e","status":"affected","version":"90305829635d90a5053ec99a261035b4ce0a2649","versionType":"git"},{"lessThan":"7da83a04109b6115f7ac1fe5c9bf0deeb6956319","status":"affected","version":"90305829635d90a5053ec99a261035b4ce0a2649","versionType":"git"},{"lessThan":"8c27d7d06e21ba9455ddae4e14f364c57f095cba","status":"affected","version":"90305829635d90a5053ec99a261035b4ce0a2649","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/bluetooth/6lowpan.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"3.19"},{"lessThan":"3.19","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"3.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"3.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"3.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"3.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"3.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"3.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"3.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"3.19","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: 6LoWPAN: Use RCU-safe device list removal\n\nRCU readers of bt_6lowpan_devices must be able to follow an adapter's\nforward link until their read-side critical section ends. The entries\nare published with list_add_rcu(), but device_event() removes an entry\non NETDEV_UNREGISTER with list_del(), poisoning that link.\n\nWhen an adapter is being unregistered and 6LoWPAN is enabled, a\n6lowpan_control debugfs write with an existing LE L2CAP connection can\nenter lookup_peer() after unregister's first synchronize_net(). If the\nconnection has no peer on that adapter, the reader must advance to the\nnext list entry. Neither RTNL nor devices_lock excludes this RCU reader.\n\nThe last peer's chan_close_cb() schedules delete_netdev(), which reaches\nunregister_netdevice_many_notify() through unregister_dev() and\nlowpan_unregister_netdev(). The following ordering is possible:\n\n  Unregister worker                 Control writer\n  -----------------                 --------------\n  synchronize_net() returns\n                                    lowpan_control_write()\n                                    lookup_peer(): rcu_read_lock()\n                                    reach adapter; no matching peer\n  device_event(): devices_lock\n  list_del(&entry->list)\n  spin_unlock(&devices_lock)\n                                    follow poisoned next link\n                                    read invalid adapter address\n  post-notifier synchronize_net()\n    waits for the reader\n\nThis invalid pointer access can fault in lookup_peer(). The first grace\nperiod drains existing readers but permits new ones to start, and the\nlater grace period cannot prevent the intervening poisoned-link access.\n\nUse list_del_rcu() under the existing devices_lock to preserve the\nforward link for readers that already reached the adapter. The existing\npost-notifier synchronize_net() waits for those readers before netdevice\nteardown frees the private storage containing lowpan_btle_dev.\n\nKASAN report as below:\n\n    [...]\n    [   45.867526] Oops: general protection fault, probably for non-canonical address 0xfbd59c0000000023: 0000 [#1] SMP KASAN NOPTI\n    [   45.869489] KASAN: maybe wild-memory-access in range [0xdead000000000118-0xdead00000000011f]\n    [   45.870981] CPU: 1 UID: 0 PID: 646 Comm: sh Not tainted 7.2.0-rc6-pmb-bt-functional-v1+ #4 PREEMPT(lazy)\n    [   45.872609] Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014\n    [   45.874380] RIP: 0010:lookup_peer+0x1ba/0x320\n    [   45.875067] Code: 48 89 d9 ba 04 00 00 00 4c 89 fe bf a0 06 00 00 e8 2b e8 ad fb e9 56 ff ff ff e8 01 1e c3 fb 49 8d 7f 18 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 4a 01 00 00 4d 8b 47 18 4c 89 f1 ba 04 00 00 00\n    [   45.878206] RSP: 0018:ffff888114d67b90 EFLAGS: 00010212\n    [   45.879106] RAX: 1bd5a00000000023 RBX: 0000000000000000 RCX: ffffffff85c1d19f\n    [   45.880334] RDX: ffff88810dc35700 RSI: 0000000000000000 RDI: dead000000000118\n    [   45.881455] RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000001\n    [   45.882546] R10: ffffffff893d3057 R11: ffff88810dc35700 R12: ffff88810a690000\n    [   45.883839] R13: ffff888115451038 R14: ffff88810a690000 R15: dead000000000100\n    [   45.885186] FS:  00007fa889bac780(0000) GS:ffff8881fd852000(0000) knlGS:0000000000000000\n    [   45.886539] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033\n    [   45.887527] CR2: 00007ffe304f2f80 CR3: 0000000104f64005 CR4: 0000000000770ef0\n    [   45.888687] PKRU: 55555554\n    [   45.889183] Call Trace:\n    [   45.889666]  <TASK>\n    [   45.890061]  lowpan_control_write+0x445/0x9e0\n    [   45.890854]  ? __pfx_lowpan_control_write+0x10/0x10\n    [   45.891738]  ? srso_alias_return_thunk+0x5/0xfbef5\n    [   45.892603]  ? srso_alias_return_thunk+0x5/0xfbef5\n    [   45.893383]  ? __debugfs_file_get+0x1bd/0x7f0\n    [   45.894057]  ? srso_alias_return_thunk+0x5/0x\n---truncated---"}],"providerMetadata":{"dateUpdated":"2026-11-30T13:34:13.313Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/93fd93c28f30fdd2a61a95d2739c2c51d4b6d9cd"},{"url":"https://git.kernel.org/stable/c/a901025d38ceca77f8bfe15ae9223c0d082992a0"},{"url":"https://git.kernel.org/stable/c/09b70addc63b6a12523031e8778f59188ff0e9c0"},{"url":"https://git.kernel.org/stable/c/74f6eebd5d505be362852b003d4da78dd6ea41a8"},{"url":"https://git.kernel.org/stable/c/ee65c667a8d138fa75fc998b6df1a5af60b9032b"},{"url":"https://git.kernel.org/stable/c/79fce23a5d49929f091a23a23cbac8a818c14c8e"},{"url":"https://git.kernel.org/stable/c/7da83a04109b6115f7ac1fe5c9bf0deeb6956319"},{"url":"https://git.kernel.org/stable/c/8c27d7d06e21ba9455ddae4e14f364c57f095cba"}],"title":"Bluetooth: 6LoWPAN: Use RCU-safe device list removal","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139380","datePublished":"2026-11-30T13:34:13.313Z","dateReserved":"2026-11-30T13:22:15.930Z","dateUpdated":"2026-11-30T13:34:13.313Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:05","lastModifiedDate":"2026-11-30 14:19:05","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139380","Ordinal":"1","Title":"Bluetooth: 6LoWPAN: Use RCU-safe device list removal","CVE":"CVE-2026-139380","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139380","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: 6LoWPAN: Use RCU-safe device list removal\n\nRCU readers of bt_6lowpan_devices must be able to follow an adapter's\nforward link until their read-side critical section ends. The entries\nare published with list_add_rcu(), but device_event() removes an entry\non NETDEV_UNREGISTER with list_del(), poisoning that link.\n\nWhen an adapter is being unregistered and 6LoWPAN is enabled, a\n6lowpan_control debugfs write with an existing LE L2CAP connection can\nenter lookup_peer() after unregister's first synchronize_net(). If the\nconnection has no peer on that adapter, the reader must advance to the\nnext list entry. Neither RTNL nor devices_lock excludes this RCU reader.\n\nThe last peer's chan_close_cb() schedules delete_netdev(), which reaches\nunregister_netdevice_many_notify() through unregister_dev() and\nlowpan_unregister_netdev(). The following ordering is possible:\n\n  Unregister worker                 Control writer\n  -----------------                 --------------\n  synchronize_net() returns\n                                    lowpan_control_write()\n                                    lookup_peer(): rcu_read_lock()\n                                    reach adapter; no matching peer\n  device_event(): devices_lock\n  list_del(&entry->list)\n  spin_unlock(&devices_lock)\n                                    follow poisoned next link\n                                    read invalid adapter address\n  post-notifier synchronize_net()\n    waits for the reader\n\nThis invalid pointer access can fault in lookup_peer(). The first grace\nperiod drains existing readers but permits new ones to start, and the\nlater grace period cannot prevent the intervening poisoned-link access.\n\nUse list_del_rcu() under the existing devices_lock to preserve the\nforward link for readers that already reached the adapter. The existing\npost-notifier synchronize_net() waits for those readers before netdevice\nteardown frees the private storage containing lowpan_btle_dev.\n\nKASAN report as below:\n\n    [...]\n    [   45.867526] Oops: general protection fault, probably for non-canonical address 0xfbd59c0000000023: 0000 [#1] SMP KASAN NOPTI\n    [   45.869489] KASAN: maybe wild-memory-access in range [0xdead000000000118-0xdead00000000011f]\n    [   45.870981] CPU: 1 UID: 0 PID: 646 Comm: sh Not tainted 7.2.0-rc6-pmb-bt-functional-v1+ #4 PREEMPT(lazy)\n    [   45.872609] Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014\n    [   45.874380] RIP: 0010:lookup_peer+0x1ba/0x320\n    [   45.875067] Code: 48 89 d9 ba 04 00 00 00 4c 89 fe bf a0 06 00 00 e8 2b e8 ad fb e9 56 ff ff ff e8 01 1e c3 fb 49 8d 7f 18 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 4a 01 00 00 4d 8b 47 18 4c 89 f1 ba 04 00 00 00\n    [   45.878206] RSP: 0018:ffff888114d67b90 EFLAGS: 00010212\n    [   45.879106] RAX: 1bd5a00000000023 RBX: 0000000000000000 RCX: ffffffff85c1d19f\n    [   45.880334] RDX: ffff88810dc35700 RSI: 0000000000000000 RDI: dead000000000118\n    [   45.881455] RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000001\n    [   45.882546] R10: ffffffff893d3057 R11: ffff88810dc35700 R12: ffff88810a690000\n    [   45.883839] R13: ffff888115451038 R14: ffff88810a690000 R15: dead000000000100\n    [   45.885186] FS:  00007fa889bac780(0000) GS:ffff8881fd852000(0000) knlGS:0000000000000000\n    [   45.886539] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033\n    [   45.887527] CR2: 00007ffe304f2f80 CR3: 0000000104f64005 CR4: 0000000000770ef0\n    [   45.888687] PKRU: 55555554\n    [   45.889183] Call Trace:\n    [   45.889666]  <TASK>\n    [   45.890061]  lowpan_control_write+0x445/0x9e0\n    [   45.890854]  ? __pfx_lowpan_control_write+0x10/0x10\n    [   45.891738]  ? srso_alias_return_thunk+0x5/0xfbef5\n    [   45.892603]  ? srso_alias_return_thunk+0x5/0xfbef5\n    [   45.893383]  ? __debugfs_file_get+0x1bd/0x7f0\n    [   45.894057]  ? srso_alias_return_thunk+0x5/0x\n---truncated---","Type":"Description","Title":"Bluetooth: 6LoWPAN: Use RCU-safe device list removal"}]}}}