* [regression 6.1.y] 967473b1e8bb ("Bluetooth: L2CAP: Fix slab-use-after-free Read in l2cap_send_cmd") causes backtraces and non-working bluetooth
@ 2026-11-26 6:06 Salvatore Bonaccorso
2026-11-27 7:45 ` Dominique Martinet
0 siblings, 1 reply; 2+ messages in thread
From: Salvatore Bonaccorso @ 2026-11-26 6:06 UTC (permalink / raw)
To: Luiz Augusto von Dentz, Edward Adam Davis, Sasha Levin,
Marcel Holtmann
Cc: linux-bluetooth, regressions, stable, W. John White,
Péter Bátori, Mael Bras, tycho673, hanta, skiwithme,
Suvam Sen, Celimar
Control: forwarded -1 https://lore.kernel.org/regressions/179567271700.947722.15185762256491350563@eldamar.lan
Hi
In Debian we got a series of regression reports with after updating
the 6.1.y kernel to 6.1.192, the bugreports are bit hard to follow to
the amount of people contributing, they are right now:
https://bugs.debian.org/1154123
https://bugs.debian.org/1154206
https://bugs.debian.org/1154212
https://bugs.debian.org/1154648
https://bugs.debian.org/1154673
https://bugs.debian.org/1154866
https://bugs.debian.org/1154879
https://bugs.debian.org/1155192
The issue appers to be introduced by the backport of b4f82f9ed43a
("Bluetooth: L2CAP: Fix slab-use-after-free Read in l2cap_send_cmd")
to 6.1.y which landed at 967473b1e8bb6d941e034ec1f76de40ccf54a8cf. The
backtrace shown is involving:
[ 40.687744] list_del corruption, ffff8a27c10efe80->prev is LIST_POISON2 (dead000000000122)
[ 40.687829] kernel BUG at lib/list_debug.c:56!
[ 40.687865] invalid opcode: 0000 [#1] PREEMPT SMP PTI
[ 40.687900] CPU: 2 PID: 893 Comm: bluetoothd Kdump: loaded Tainted: G I 6.1.0-55-amd64 #1 Debian 6.1.192-1
[ 40.687960] Hardware name: /NUC6i7KYB, BIOS KYSKLi70.86A.0051.2018.0110.1800 01/10/2018
[ 40.688002] RIP: 0010:__list_del_entry_valid.cold+0x4b/0x6f
[ 40.688574] Call Trace:
[ 40.688594] <TASK>
[ 40.688614] hci_chan_del+0x18/0x90 [bluetooth]
[ 40.688745] l2cap_chan_put+0x106/0x130 [bluetooth]
[ 40.688890] l2cap_sock_release+0xca/0x100 [bluetooth]
[ 40.689038] __sock_release+0x3a/0xb0
[ 40.689070] sock_close+0x11/0x20
[ 40.689096] __fput+0x90/0x250
[ 40.689124] task_work_run+0x56/0x90
[ 40.689154] exit_to_user_mode_prepare+0x23d/0x240
[ 40.689191] syscall_exit_to_user_mode+0x17/0x40
[ 40.689226] do_syscall_64+0x69/0xb0
[ 40.689452] entry_SYSCALL_64_after_hwframe+0x6e/0xdb
[ 40.689845] </TASK>
But reverting the commit does not immediately seem to be an option as
this is as well the fix for CVE-2025-21969. Is there something broken
in the backport or a missing requisite?
Regards,
Salvatore
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [regression 6.1.y] 967473b1e8bb ("Bluetooth: L2CAP: Fix slab-use-after-free Read in l2cap_send_cmd") causes backtraces and non-working bluetooth
2026-11-26 6:06 [regression 6.1.y] 967473b1e8bb ("Bluetooth: L2CAP: Fix slab-use-after-free Read in l2cap_send_cmd") causes backtraces and non-working bluetooth Salvatore Bonaccorso
@ 2026-11-27 7:45 ` Dominique Martinet
0 siblings, 0 replies; 2+ messages in thread
From: Dominique Martinet @ 2026-11-27 7:45 UTC (permalink / raw)
To: Luiz Augusto von Dentz, Edward Adam Davis, Sasha Levin,
Marcel Holtmann
Cc: linux-bluetooth, regressions, stable, W. John White,
Péter Bátori, Mael Bras, tycho673, hanta, skiwithme,
Suvam Sen, Celimar
Salvatore Bonaccorso wrote on Thu, Nov 26, 2026 at 07:06:59AM +0100:
> [ 40.687744] list_del corruption, ffff8a27c10efe80->prev is LIST_POISON2 (dead000000000122)
> [ 40.687829] kernel BUG at lib/list_debug.c:56!
> [ 40.687865] invalid opcode: 0000 [#1] PREEMPT SMP PTI
> [ 40.687900] CPU: 2 PID: 893 Comm: bluetoothd Kdump: loaded Tainted: G I 6.1.0-55-amd64 #1 Debian 6.1.192-1
> [ 40.687960] Hardware name: /NUC6i7KYB, BIOS KYSKLi70.86A.0051.2018.0110.1800 01/10/2018
> [ 40.688002] RIP: 0010:__list_del_entry_valid.cold+0x4b/0x6f
> [ 40.688574] Call Trace:
> [ 40.688594] <TASK>
> [ 40.688614] hci_chan_del+0x18/0x90 [bluetooth]
This might be fixed by commit ab4eedb790ca ("Bluetooth: L2CAP: Fix
corrupted list in hci_chan_del") ?
Ah, now I see it even has
> Fixes: b4f82f9ed43a ("Bluetooth: L2CAP: Fix slab-use-after-free Read in l2cap_send_cmd")
and you're reporting about this very commit, so there's little doubt..!
That commit got backported to 6.12 but not 6.1, there's a merge conflict
but it's not too hard to resolve, I'll send the patch since I've done
the work.
(As far as I can see it's not queued at this point, sorry if someone
else has also been doing the same)
--
Dominique Martinet | Asmadeus
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-27 7:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 6:06 [regression 6.1.y] 967473b1e8bb ("Bluetooth: L2CAP: Fix slab-use-after-free Read in l2cap_send_cmd") causes backtraces and non-working bluetooth Salvatore Bonaccorso
2026-11-27 7:45 ` Dominique Martinet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox