# CVE-2023-54164: Bluetooth: ISO: fix iso\_conn related locking and validity issues

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.0
- **CVSS:** 8.0 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.41% (percentile 27, 2026-11-26)
- **Published:** 2025-12-30T12:08:40.357Z
- **Modified:** 2026-10-15T22:17:53.947Z

## Who should check

- Anyone running Linux \>= c524f9561c657b8af26dd4f67092b8928261aa62, \< e969bfed84c1f88dc722a678ee08488e86f0ec1a; \>= 241f51931c35085449502c10f64fb3ecd6e02171, \< 88ad50f2b843a510bd7c922c0a4e2484aff9d645; \>= 241f51931c35085449502c10f64fb3ecd6e02171, \< d40ae85ee62e3666f45bc61864b22121346f88ef; 2539cbc625c560d5432e2f0fc04bfe4a889cf737; \>= 6.1.9, \< 6.1.42
- Anyone running Linux 6.2

## Description

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

Bluetooth: ISO: fix iso\_conn related locking and validity issues

sk-\>sk\_state indicates whether iso\_pi(sk)-\>conn is valid. Operations
that check/update sk\_state and access conn should hold lock\_sock,
otherwise they can race.

The order of taking locks is hci\_dev\_lock \> lock\_sock \> iso\_conn\_lock,
which is how it is in connect/disconnect\_cfm -\> iso\_conn\_del -\>
iso\_chan\_del.

Fix locking in iso\_connect\_cis/bis and sendmsg/recvmsg to take lock\_sock
around updating sk\_state and conn.

iso\_conn\_del must not occur during iso\_connect\_cis/bis, as it frees the
iso\_conn. Hold hdev-\>lock longer to prevent that.

This should not reintroduce the issue fixed in commit 241f51931c35
("Bluetooth: ISO: Avoid circular locking dependency"), since the we
acquire locks in order. We retain the fix in iso\_sock\_connect to release
lock\_sock before iso\_connect\_\* acquires hdev-\>lock.

Similarly for commit 6a5ad251b7cd ("Bluetooth: ISO: Fix possible
circular locking dependency"). We retain the fix in iso\_conn\_ready to
not acquire iso\_conn\_lock before lock\_sock.

iso\_conn\_add shall return iso\_conn with valid hcon. Make it so also when
reusing an old CIS connection waiting for disconnect timeout (see
\_\_iso\_sock\_close where conn-\>hcon is set to NULL).

Trace with iso\_conn\_del after iso\_chan\_add in iso\_connect\_cis:
===============================================================
iso\_sock\_create:771: sock 00000000be9b69b7
iso\_sock\_init:693: sk 000000004dff667e
iso\_sock\_bind:827: sk 000000004dff667e 70:1a:b8:98:ff:a2 type 1
iso\_sock\_setsockopt:1289: sk 000000004dff667e
iso\_sock\_setsockopt:1289: sk 000000004dff667e
iso\_sock\_setsockopt:1289: sk 000000004dff667e
iso\_sock\_connect:875: sk 000000004dff667e
iso\_connect\_cis:353: 70:1a:b8:98:ff:a2 -\> 28:3d:c2:4a:7e:da
hci\_get\_route:1199: 70:1a:b8:98:ff:a2 -\> 28:3d:c2:4a:7e:da
hci\_conn\_add:1005: hci0 dst 28:3d:c2:4a:7e:da
iso\_conn\_add:140: hcon 000000007b65d182 conn 00000000daf8625e
\_\_iso\_chan\_add:214: conn 00000000daf8625e
iso\_connect\_cfm:1700: hcon 000000007b65d182 bdaddr 28:3d:c2:4a:7e:da status 12
iso\_conn\_del:187: hcon 000000007b65d182 conn 00000000daf8625e, err 16
iso\_sock\_clear\_timer:117: sock 000000004dff667e state 3
    \<Note: sk\_state is BT\_BOUND (3), so iso\_connect\_cis is still
    running at this point\>
iso\_chan\_del:153: sk 000000004dff667e, conn 00000000daf8625e, err 16
hci\_conn\_del:1151: hci0 hcon 000000007b65d182 handle 65535
hci\_conn\_unlink:1102: hci0: hcon 000000007b65d182
hci\_chan\_list\_flush:2780: hcon 000000007b65d182
iso\_sock\_getsockopt:1376: sk 000000004dff667e
iso\_sock\_getname:1070: sock 00000000be9b69b7, sk 000000004dff667e
iso\_sock\_getname:1070: sock 00000000be9b69b7, sk 000000004dff667e
iso\_sock\_getsockopt:1376: sk 000000004dff667e
iso\_sock\_getname:1070: sock 00000000be9b69b7, sk 000000004dff667e
iso\_sock\_getname:1070: sock 00000000be9b69b7, sk 000000004dff667e
iso\_sock\_shutdown:1434: sock 00000000be9b69b7, sk 000000004dff667e, how 1
\_\_iso\_sock\_close:632: sk 000000004dff667e state 5 socket 00000000be9b69b7
     \<Note: sk\_state is BT\_CONNECT (5), even though iso\_chan\_del sets
     BT\_CLOSED (6). Only iso\_connect\_cis sets it to BT\_CONNECT, so it
     must be that iso\_chan\_del occurred between iso\_chan\_add and end of
     iso\_connect\_cis.\>
BUG: kernel NULL pointer dereference, address: 0000000000000000
PGD 8000000006467067 P4D 8000000006467067 PUD 3f5f067 PMD 0
Oops: 0000 \[\#1\] PREEMPT SMP PTI
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-1.fc38 04/01/2014
RIP: 0010:\_\_iso\_sock\_close (net/bluetooth/iso.c:664) bluetooth
===============================================================

Trace with iso\_conn\_del before iso\_chan\_add in iso\_connect\_cis:
===============================================================
iso\_connect\_cis:356: 70:1a:b8:98:ff:a2 -\> 28:3d:c2:4a:7e:da
...
iso\_conn\_add:140: hcon 0000000093bc551f conn 00000000768ae504
hci\_dev\_put:1487: hci0 orig refcnt 21
hci\_event\_packet:7607: hci0: e
---truncated---

## Affected and fixed versions

- Linux: \>= c524f9561c657b8af26dd4f67092b8928261aa62, \< e969bfed84c1f88dc722a678ee08488e86f0ec1a; \>= 241f51931c35085449502c10f64fb3ecd6e02171, \< 88ad50f2b843a510bd7c922c0a4e2484aff9d645; \>= 241f51931c35085449502c10f64fb3ecd6e02171, \< d40ae85ee62e3666f45bc61864b22121346f88ef; 2539cbc625c560d5432e2f0fc04bfe4a889cf737; \>= 6.1.9, \< 6.1.42 (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- Upgrade Linux to 6.1.42 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-54164. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54164.md
Affected: Linux >= c524f9561c657b8af26dd4f67092b8928261aa62, < e969bfed84c1f88dc722a678ee08488e86f0ec1a; >= 241f51931c35085449502c10f64fb3ecd6e02171, < 88ad50f2b843a510bd7c922c0a4e2484aff9d645; >= 241f51931c35085449502c10f64fb3ecd6e02171, < d40ae85ee62e3666f45bc61864b22121346f88ef; 2539cbc625c560d5432e2f0fc0…
Fixed in: Linux 88ad50f2b843a510bd7c922c0a4e2484aff9d645, Linux 6.1.42

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-54164 being exploited?

There is no confirmed exploitation: CVE-2023-54164 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.41% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-54164?

High: CVSS 8.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-54164?

Linux \>= c524f9561c657b8af26dd4f67092b8928261aa62, \< e969bfed84c1f88dc722a678ee08488e86f0ec1a; \>= 241f51931c35085449502c10f64fb3ecd6e02171, \< 88ad50f2b843a510bd7c922c0a4e2484aff9d645; \>= 241f51931c35085449502c10f64fb3ecd6e02171, \< d40ae85ee62e3666f45bc61864b22121346f88ef; 2539cbc625c560d5432e2f0fc04bfe4a889cf737; \>= 6.1.9, \< 6.1.42; Linux 6.2.

### Is there a fix for CVE-2023-54164?

Yes. Fixed in Linux 88ad50f2b843a510bd7c922c0a4e2484aff9d645, Linux 6.1.42. Upgrade Linux to 6.1.42 or later.

### How do I check if I'm affected by CVE-2023-54164?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/e969bfed84c1f88dc722a678ee08488e86f0ec1a>
- other: <https://git.kernel.org/stable/c/88ad50f2b843a510bd7c922c0a4e2484aff9d645>
- other: <https://git.kernel.org/stable/c/d40ae85ee62e3666f45bc61864b22121346f88ef>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-54164>

HTML: <https://flawdb.com/CVE-2023-54164> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-54164>
