Hi,

Same oops here, and I think I have a likely candidate.

Upstream saw this exact crash in February 2025 (syzbot: "BUG: corrupted list in 
hci_chan_del (2)", list_del corruption, ->prev is LIST_POISON2, hci_chan_del <- 
l2cap_conn_put/l2cap_chan_put <- l2cap_sock_release). It was introduced by:

  b4f82f9ed4 ("Bluetooth: L2CAP: Fix slab-use-after-free Read in 
l2cap_send_cmd")

and fixed by:

  ab4eedb790ca ("Bluetooth: L2CAP: Fix corrupted list in hci_chan_del")
  Fixes: b4f82f9ed4 ("Bluetooth: L2CAP: Fix slab-use-after-free Read in 
l2cap_send_cmd")
  Reported-by: [email protected]

"Fix slab-use-after-free Read in l2cap_send_cmd" is one of the 6.1.191 
candidates listed earlier. If 6.1.191 picked it up without ab4eedb790ca, that 
would explain the regression. I have not checked the 6.1.y tree myself, and 
ab4eedb790ca reworks l2cap_conn locking (chan_lock -> conn->lock), so it may 
not apply cleanly to 6.1. Reverting the 6.1.191 backport could be the simpler 
option.

My system:
 - Lenovo ThinkPad T480, Debian 12 (bookworm), KDE Plasma
 - Bluetooth: Bus 001 Device 013: ID 8087:0a2b Intel Corp. Bluetooth wireless 
interface
 - Bose SoundLink headset (A2DP), bluez 5.66, PipeWire + WirePlumber
 - Tainted OE only by out-of-tree VirtualBox modules (vboxdrv)
 - Good: 6.1.0-54-amd64 (6.1.190-1)
 - Bad: 6.1.0-56-amd64 (6.1.192-2), bluetoothd killed every ~7 s

Trace (6.1.192-2):
  CPU: 2 PID: 5395 Comm: bluetoothd Tainted: G      D    OE      6.1.0-56-amd64 
#1  Debian 6.1.192-2
   hci_chan_del+0x18/0x90 [bluetooth]
   l2cap_chan_put+0x106/0x130 [bluetooth]
   l2cap_sock_release+0xca/0x100 [bluetooth]

I'm happy to test a patched kernel.

Thanks,
- CJD


Sent with Proton Mail secure email.

Reply via email to