CVE-2024-54460

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
11/01/2025
Last modified:
01/10/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> Bluetooth: iso: Fix circular lock in iso_listen_bis<br /> <br /> This fixes the circular locking dependency warning below, by<br /> releasing the socket lock before enterning iso_listen_bis, to<br /> avoid any potential deadlock with hdev lock.<br /> <br /> [ 75.307983] ======================================================<br /> [ 75.307984] WARNING: possible circular locking dependency detected<br /> [ 75.307985] 6.12.0-rc6+ #22 Not tainted<br /> [ 75.307987] ------------------------------------------------------<br /> [ 75.307987] kworker/u81:2/2623 is trying to acquire lock:<br /> [ 75.307988] ffff8fde1769da58 (sk_lock-AF_BLUETOOTH-BTPROTO_ISO)<br /> at: iso_connect_cfm+0x253/0x840 [bluetooth]<br /> [ 75.308021]<br /> but task is already holding lock:<br /> [ 75.308022] ffff8fdd61a10078 (&amp;hdev-&gt;lock)<br /> at: hci_le_per_adv_report_evt+0x47/0x2f0 [bluetooth]<br /> [ 75.308053]<br /> which lock already depends on the new lock.<br /> <br /> [ 75.308054]<br /> the existing dependency chain (in reverse order) is:<br /> [ 75.308055]<br /> -&gt; #1 (&amp;hdev-&gt;lock){+.+.}-{3:3}:<br /> [ 75.308057] __mutex_lock+0xad/0xc50<br /> [ 75.308061] mutex_lock_nested+0x1b/0x30<br /> [ 75.308063] iso_sock_listen+0x143/0x5c0 [bluetooth]<br /> [ 75.308085] __sys_listen_socket+0x49/0x60<br /> [ 75.308088] __x64_sys_listen+0x4c/0x90<br /> [ 75.308090] x64_sys_call+0x2517/0x25f0<br /> [ 75.308092] do_syscall_64+0x87/0x150<br /> [ 75.308095] entry_SYSCALL_64_after_hwframe+0x76/0x7e<br /> [ 75.308098]<br /> -&gt; #0 (sk_lock-AF_BLUETOOTH-BTPROTO_ISO){+.+.}-{0:0}:<br /> [ 75.308100] __lock_acquire+0x155e/0x25f0<br /> [ 75.308103] lock_acquire+0xc9/0x300<br /> [ 75.308105] lock_sock_nested+0x32/0x90<br /> [ 75.308107] iso_connect_cfm+0x253/0x840 [bluetooth]<br /> [ 75.308128] hci_connect_cfm+0x6c/0x190 [bluetooth]<br /> [ 75.308155] hci_le_per_adv_report_evt+0x27b/0x2f0 [bluetooth]<br /> [ 75.308180] hci_le_meta_evt+0xe7/0x200 [bluetooth]<br /> [ 75.308206] hci_event_packet+0x21f/0x5c0 [bluetooth]<br /> [ 75.308230] hci_rx_work+0x3ae/0xb10 [bluetooth]<br /> [ 75.308254] process_one_work+0x212/0x740<br /> [ 75.308256] worker_thread+0x1bd/0x3a0<br /> [ 75.308258] kthread+0xe4/0x120<br /> [ 75.308259] ret_from_fork+0x44/0x70<br /> [ 75.308261] ret_from_fork_asm+0x1a/0x30<br /> [ 75.308263]<br /> other info that might help us debug this:<br /> <br /> [ 75.308264] Possible unsafe locking scenario:<br /> <br /> [ 75.308264] CPU0 CPU1<br /> [ 75.308265] ---- ----<br /> [ 75.308265] lock(&amp;hdev-&gt;lock);<br /> [ 75.308267] lock(sk_lock-<br /> AF_BLUETOOTH-BTPROTO_ISO);<br /> [ 75.308268] lock(&amp;hdev-&gt;lock);<br /> [ 75.308269] lock(sk_lock-AF_BLUETOOTH-BTPROTO_ISO);<br /> [ 75.308270]<br /> *** DEADLOCK ***<br /> <br /> [ 75.308271] 4 locks held by kworker/u81:2/2623:<br /> [ 75.308272] #0: ffff8fdd66e52148 ((wq_completion)hci0#2){+.+.}-{0:0},<br /> at: process_one_work+0x443/0x740<br /> [ 75.308276] #1: ffffafb488b7fe48 ((work_completion)(&amp;hdev-&gt;rx_work)),<br /> at: process_one_work+0x1ce/0x740<br /> [ 75.308280] #2: ffff8fdd61a10078 (&amp;hdev-&gt;lock){+.+.}-{3:3}<br /> at: hci_le_per_adv_report_evt+0x47/0x2f0 [bluetooth]<br /> [ 75.308304] #3: ffffffffb6ba4900 (rcu_read_lock){....}-{1:2},<br /> at: hci_connect_cfm+0x29/0x190 [bluetooth]

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.8.12 (including) 6.12.6 (excluding)
cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:*