CVE-2024-54460: Bluetooth: iso: Fix circular lock in iso_listen_bis

Published Jan 11, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: iso: Fix circular lock in isolistenbis

This fixes the circular locking dependency warning below, by releasing the socket lock before enterning isolistenbis, to avoid any potential deadlock with hdev lock.

[ 75.307983] ====================================================== [ 75.307984] WARNING: possible circular locking dependency detected [ 75.307985] 6.12.0-rc6+ #22 Not tainted [ 75.307987] ------------------------------------------------------ [ 75.307987] kworker/u81:2/2623 is trying to acquire lock: [ 75.307988] ffff8fde1769da58 (sklock-AFBLUETOOTH-BTPROTOISO) at: isoconnectcfm+0x253/0x840 [bluetooth] [ 75.308021] but task is already holding lock: [ 75.308022] ffff8fdd61a10078 (&hdev->lock) at: hcileperadvreportevt+0x47/0x2f0 [bluetooth] [ 75.308053] which lock already depends on the new lock.

[ 75.308054] the existing dependency chain (in reverse order) is: [ 75.308055] -> #1 (&hdev->lock){+.+.}-{3:3}: [ 75.308057] mutexlock+0xad/0xc50 [ 75.308061] mutexlocknested+0x1b/0x30 [ 75.308063] isosocklisten+0x143/0x5c0 [bluetooth] [ 75.308085] syslistensocket+0x49/0x60 [ 75.308088] x64syslisten+0x4c/0x90 [ 75.308090] x64syscall+0x2517/0x25f0 [ 75.308092] dosyscall64+0x87/0x150 [ 75.308095] entrySYSCALL64afterhwframe+0x76/0x7e [ 75.308098] -> #0 (sklock-AFBLUETOOTH-BTPROTOISO){+.+.}-{0:0}: [ 75.308100] lockacquire+0x155e/0x25f0 [ 75.308103] lockacquire+0xc9/0x300 [ 75.308105] locksocknested+0x32/0x90 [ 75.308107] isoconnectcfm+0x253/0x840 [bluetooth] [ 75.308128] hciconnectcfm+0x6c/0x190 [bluetooth] [ 75.308155] hcileperadvreportevt+0x27b/0x2f0 [bluetooth] [ 75.308180] hcilemetaevt+0xe7/0x200 [bluetooth] [ 75.308206] hcieventpacket+0x21f/0x5c0 [bluetooth] [ 75.308230] hcirxwork+0x3ae/0xb10 [bluetooth] [ 75.308254] processonework+0x212/0x740 [ 75.308256] workerthread+0x1bd/0x3a0 [ 75.308258] kthread+0xe4/0x120 [ 75.308259] retfromfork+0x44/0x70 [ 75.308261] retfromforkasm+0x1a/0x30 [ 75.308263] other info that might help us debug this:

[ 75.308264] Possible unsafe locking scenario:

[ 75.308264] CPU0 CPU1 [ 75.308265] ---- ---- [ 75.308265] lock(&hdev->lock); [ 75.308267] lock(sklock- AFBLUETOOTH-BTPROTOISO); [ 75.308268] lock(&hdev->lock); [ 75.308269] lock(sklock-AFBLUETOOTH-BTPROTOISO); [ 75.308270] DEADLOCK

[ 75.308271] 4 locks held by kworker/u81:2/2623: [ 75.308272] #0: ffff8fdd66e52148 ((wqcompletion)hci0#2){+.+.}-{0:0}, at: processonework+0x443/0x740 [ 75.308276] #1: ffffafb488b7fe48 ((workcompletion)(&hdev->rxwork)), at: processonework+0x1ce/0x740 [ 75.308280] #2: ffff8fdd61a10078 (&hdev->lock){+.+.}-{3:3} at: hcileperadvreportevt+0x47/0x2f0 [bluetooth] [ 75.308304] #3: ffffffffb6ba4900 (rcureadlock){....}-{1:2}, at: hciconnectcfm+0x29/0x190 [bluetooth]

Other sources

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: iso: Fix circular lock in isolistenbis

This fixes the circular locking dependency warning below, by releasing the socket lock before enterning isolistenbis, to avoid any potential deadlock with hdev lock.

[ 75.307983] ====================================================== [ 75.307984] WARNING: possible circular locking dependency detected [ 75.307985] 6.12.0-rc6+ #22 Not tainted [ 75.307987] ------------------------------------------------------ [ 75.307987] kworker/u81:2/2623 is trying to acquire lock: [ 75.307988] ffff8fde1769da58 (sklock-AFBLUETOOTH-BTPROTOISO) at: isoconnectcfm+0x253/0x840 [bluetooth] [ 75.308021] but task is already holding lock: [ 75.308022] ffff8fdd61a10078 (&hdev->lock) at: hcileperadvreportevt+0x47/0x2f0 [bluetooth] [ 75.308053] which lock already depends on the new lock.

[ 75.308054] the existing dependency chain (in reverse order) is: [ 75.308055] -> #1 (&hdev->lock){+.+.}-{3:3}: [ 75.308057] mutexlock+0xad/0xc50 [ 75.308061] mutexlocknested+0x1b/0x30 [ 75.308063] isosocklisten+0x143/0x5c0 [bluetooth] [ 75.308085] syslistensocket+0x49/0x60 [ 75.308088] x64syslisten+0x4c/0x90 [ 75.308090] x64syscall+0x2517/0x25f0 [ 75.308092] dosyscall64+0x87/0x150 [ 75.308095] entrySYSCALL64afterhwframe+0x76/0x7e [ 75.308098] -> #0 (sklock-AFBLUETOOTH-BTPROTOISO){+.+.}-{0:0}: [ 75.308100] lockacquire+0x155e/0x25f0 [ 75.308103] lockacquire+0xc9/0x300 [ 75.308105] locksocknested+0x32/0x90 [ 75.308107] isoconnectcfm+0x253/0x840 [bluetooth] [ 75.308128] hciconnectcfm+0x6c/0x190 [bluetooth] [ 75.308155] hcileperadvreportevt+0x27b/0x2f0 [bluetooth] [ 75.308180] hcilemetaevt+0xe7/0x200 [bluetooth] [ 75.308206] hcieventpacket+0x21f/0x5c0 [bluetooth] [ 75.308230] hcirxwork+0x3ae/0xb10 [bluetooth] [ 75.308254] processonework+0x212/0x740 [ 75.308256] workerthread+0x1bd/0x3a0 [ 75.308258] kthread+0xe4/0x120 [ 75.308259] retfromfork+0x44/0x70 [ 75.308261] retfromforkasm+0x1a/0x30 [ 75.308263] other info that might help us debug this:

[ 75.308264] Possible unsafe locking scenario:

[ 75.308264] CPU0 CPU1 [ 75.308265] ---- ---- [ 75.308265] lock(&hdev->lock); [ 75.308267] lock(sklock- AFBLUETOOTH-BTPROTOISO); [ 75.308268] lock(&hdev->lock); [ 75.308269] lock(sklock-AFBLUETOOTH-BTPROTOISO); [ 75.308270] DEADLOCK

[ 75.308271] 4 locks held by kworker/u81:2/2623: [ 75.308272] #0: ffff8fdd66e52148 ((wqcompletion)hci0#2){+.+.}-{0:0}, at: processonework+0x443/0x740 [ 75.308276] #1: ffffafb488b7fe48 ((workcompletion)(&hdev->rxwork)), at: processonework+0x1ce/0x740 [ 75.308280] #2: ffff8fdd61a10078 (&hdev->lock){+.+.}-{3:3} at: hcileperadvreportevt+0x47/0x2f0 [bluetooth] [ 75.308304] #3: ffffffffb6ba4900 (rcureadlock){....}-{1:2}, at: hciconnectcfm+0x29/0x190 [bluetooth]

NVD

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

Launchpad

Affected Software

4 affected componentsFixes available
Linux Linux kernel>=6.8.12<6.12.6
Linux Linux kernel=6.13-rc1
Linux Linux kernel=6.13-rc2
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1

Event History

Jan 11, 2025
CVE Published
via MITRE·12:29 PM
Data Sourced
via MITRE·12:29 PM
Description
Data Sourced
via Red Hat·01:02 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·01:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Mar 27, 2025
Data Sourced
via Launchpad·06:44 PM
Description
Apr 28, 2025
Data Sourced
via Ubuntu·06:50 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-54460?

CVE-2024-54460 has a moderate severity rating due to the potential for deadlock situations in Bluetooth functionality.

2

How do I fix CVE-2024-54460?

To resolve CVE-2024-54460, update your Linux kernel to a version later than 6.12.6 or apply the relevant patches that address the circular lock issue.

3

What versions of the Linux kernel are affected by CVE-2024-54460?

CVE-2024-54460 affects Linux kernel versions ranging from 6.8.12 to 6.12.6 and the release candidates 6.13-rc1 and 6.13-rc2.

4

Is CVE-2024-54460 related to Bluetooth functionality?

Yes, CVE-2024-54460 pertains specifically to a circular locking issue within the Bluetooth subsystem of the Linux kernel.

5

What potential impact does CVE-2024-54460 have on systems?

If exploited, CVE-2024-54460 could lead to functionality disruptions in Bluetooth communication due to possible deadlocks.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203