Thread View: linux.debian.kernel
1 messages
1 total messages
Started by Jan Teluch
Mon, 30 Nov 2026 08:30
Bug#1155887: krfcommd BUG "list_del corruption" in hci_chan_del from rfcomm_session_del since 6.1.191 (regression from 6.1.190)
Author: Jan Teluch
Date: Mon, 30 Nov 2026 08:30
Date: Mon, 30 Nov 2026 08:30
115 lines
8760 bytes
8760 bytes
Package: src:linux
Version: 6.1.192-2
Severity: important
Tags: upstream
Hello,
Since upgrading from linux-image-6.1.0-54-amd64 (6.1.190-1) to
linux-image-6.1.0-56-amd64 (6.1.192-2), the krfcommd kernel thread crashes
with a list_del corruption BUG in hci_chan_del(), called from
rfcomm_session_del(). It has happened on every boot since then, always
with an identical trace: twice on 6.1.0-56 (2026-11-20 and 2026-11-27,
each about 2h45m after boot) and once on 6.1.0-57 (2026-11-28, about 7h
after boot). With 6.1.0-54 the same machine ran 22 days with the same
workload and had no such crash.
6.1.0-57-amd64 (6.1.192-3) is affected too. It has the same upstream base,
and its only new change is the nfsd CVE-2026-99362 fix.
Setup
-----
- Debian 12 bookworm, amd64, Supermicro X11SPi-TF
- Bluetooth adapter: USB CSR dongle 0a12:0001 (BT 4.0, btusb)
- bluez 5.66
- Asterisk 22.8.2 with chan_mobile, which connects to an Android phone
(Pixel 8 Pro) over RFCOMM (HFP). chan_mobile reconnects whenever the phone
drops the link, and when the phone has an active call it reconnects and
disconnects every ~30 seconds.
- Taint OE comes from vboxdrv/vboxnetflt/vboxnetadp and nf_conntrack_rtsp.
None of them is involved in the Bluetooth stack.
Crash (2026-11-27, 6.1.0-56; the ones from 2026-11-20 on 6.1.0-56 and
2026-11-28 on 6.1.0-57 are identical apart from addresses and CPU)
---------------------------------------------------------------------------
list_del corruption, ffff8941c3d39940->prev is LIST_POISON2 (dead000000000122)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:56!
invalid opcode: 0000 [#1] PREEMPT SMP PTI
CPU: 14 PID: 2777 Comm: krfcommd Tainted: G OE 6.1.0-56-amd64 #1 Debian 6.1.192-2
Hardware name: [reseller string trimmed] Super Server/X11SPi-TF, BIOS 4.4 07/15/2024
RIP: 0010:__list_del_entry_valid.cold+0x4b/0x6f
Code: fe ff 0f 0b 48 89 f2 48 89 fe 48 c7 c7 40 b5 5a b3 e8 8a 9a fe ff 0f 0b 48 89 fe 48 89 ca 48 c7 c7 08 b5 5a b3 e8 76 9a fe ff <0f> 0b 48 89 fe 48 c7 c7 d0 b4 5a b3 e8 65 9a fe ff 0f 0b 48 89 fe
RSP: 0018:ffffcdc183ffbdd8 EFLAGS: 00010246
RAX: 000000000000004e RBX: ffff8941c3d39940 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff894d801a03e0 RDI: ffff894d801a03e0
RBP: ffff893ecf3f5800 R08: 0000000000000000 R09: ffffcdc183ffbc70
R10: 0000000000000003 R11: ffffffffb3cd4448 R12: 00000000ffffff90
R13: ffff893ea1e172f0 R14: ffff893ea1e15e18 R15: ffff8940b2900a00
FS: 0000000000000000(0000) GS:ffff894d80180000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f35601dce50 CR3: 0000000373410004 CR4: 00000000007726e0
PKRU: 55555554
Call Trace:
<TASK>
hci_chan_del+0x18/0x90 [bluetooth]
l2cap_chan_put+0x106/0x130 [bluetooth]
l2cap_sock_release+0xca/0x100 [bluetooth]
sock_release+0x1d/0x70
rfcomm_session_del+0x50/0x90 [rfcomm]
rfcomm_run+0x5dc/0x1af0 [rfcomm]
? _raw_spin_rq_lock_irqsave+0x20/0x20
? rfcomm_send_rpn+0x1b0/0x1b0 [rfcomm]
kthread+0xd7/0x100
? kthread_complete_and_exit+0x20/0x20
ret_from_fork+0x1f/0x30
</TASK>
Modules linked in: uas usb_storage mptcp_diag sctp_diag tcp_diag udp_diag raw_diag inet_diag unix_diag af_packet_diag netlink_diag nf_conntrack_netlink xt_nat veth xt_conntrack xt_MASQUERADE bridge stp llc xfrm_user xfrm_algo xt_set ip_set nft_chain_nat xt_addrtype rfcomm vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) cpufreq_conservative cpufreq_ondemand cpufreq_userspace sctp ip6_udp_tunnel udp_tunnel ipt_REJECT nf_reject_ipv4 cpufreq_powersave xt_tcpudp nft_compat overlay cmac algif_hash algif_skcipher af_alg bnep binfmt_misc ipmi_ssif intel_rapl_msr intel_rapl_common intel_uncore_frequency intel_uncore_frequency_common btusb isst_if_common btrtl btbcm skx_edac skx_edac_common btintel nfit btmtk libnvdimm bluetooth x86_pkg_temp_thermal intel_powerclamp coretemp ghash_clmulni_intel sha256_ssse3 sha1_ssse3 sha3_generic jitterentropy_rng sha512_ssse3 sha512_generic irdma aesni_intel ctr crypto_simd cryptd drbg rapl ftdi_sio joydev ansi_cprng ice usbserial ecdh_generic rfkill ecc intel_cst
ate ib_uverbs iTCO_wdt mei_me intel_pmc_bxt ioatdma iTCO_vendor_support intel_uncore ib_core acpi_ipmi pcspkr watchdog mei intel_pch_thermal dca ipmi_si ipmi_devintf ipmi_msghandler acpi_power_meter acpi_pad evdev sg nf_tables nfsd nfnetlink nf_nat_rtsp(OE) nf_conntrack_rtsp(OE) auth_rpcgss nf_nat nfs_acl nf_conntrack lockd nf_defrag_ipv6 nf_defrag_ipv4 quota_v2 grace quota_tree msr i2c_dev parport_pc ppdev sunrpc lp parport dm_mod fuse loop efi_pstore configfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 hid_generic usbhid hid raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c crc32c_generic raid0 multipath linear raid1 md_mod sd_mod t10_pi crc64_rocksoft crc64 crc_t10dif crct10dif_generic ast xhci_pci i2c_algo_bit xhci_hcd drm_vram_helper drm_ttm_helper ttm drm_kms_helper ahci libahci libata drm crct10dif_pclmul i40e crct10dif_common usbcore crc32_pclmul scsi_mod crc32c_intel i2c_i801 lpc_ich i2c_smbus usb_common scsi_common butt
on
---[ end trace 0000000000000000 ]---
In all three crashes R12 is 0xffffff90 (-112, EHOSTDOWN). It may be the error
the session is being closed with, i.e. the remote link went away.
Consequence
-----------
krfcommd dies while it holds rfcomm_mutex. From then on every RFCOMM
connect() blocks forever in D state. Asterisk's chan_mobile thread has been
stuck like this since the crash:
[<0>] rfcomm_dlc_open+0x50/0x340 [rfcomm]
[<0>] rfcomm_sock_connect+0x12c/0x200 [rfcomm]
[<0>] __sys_connect+0xa4/0xd0
[<0>] __x64_sys_connect+0x14/0x20
[<0>] do_syscall_64+0x5d/0xb0
[<0>] entry_SYSCALL_64_after_hwframe+0x6e/0xd8
All RFCOMM is unusable and the rfcomm module cannot be unloaded, so only a
reboot recovers.
Suspected cause
---------------
6.1.191 brought several RFCOMM/HCI changes that touch exactly this path.
None of them is in 6.1.190:
- Bluetooth: RFCOMM: connect the session socket without rfcomm_mutex
(CVE-2026-99009)
- Bluetooth: hci_core: Serialize ACL scheduling with channel deletion
(CVE-2026-98735)
- Bluetooth: RFCOMM: Fix initial port reference race (CVE-2026-98739)
- Bluetooth: RFCOMM: free the skb when the DLC has no owner
(CVE-2026-99010)
The first one is my main suspect. rfcomm_dlc_open() now drops rfcomm_mutex
while it connects the session socket, and releases that socket if another
opener created a session in the meantime. During upstream review of that
patch, the maintainer noted that the socket being closed during this
window has to be handled
(https://ratatoskr.run/linux-bluetooth/2026/09/17559596). I have not
confirmed this by bisecting.
I cannot trigger the crash on demand, but it showed up within 3 to 7 hours
of every boot of 6.1.0-56 and 6.1.0-57 so far. This is a production machine, so I cannot
run test kernels or bisect on it.
After downgrading kernel to 6.1.0-54, RFCOMM runs without any issues whatsoever for several days again.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads