# CVE-2023-54038: Bluetooth: hci_conn: return ERR_PTR instead of NULL when there is no link

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-12-24T10:56:04.623Z
- Modified: 2026-06-17T06:46:41.563Z
- Assigned by: Linux

## Description

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

Bluetooth: hci_conn: return ERR_PTR instead of NULL when there is no link

hci_connect_sco currently returns NULL when there is no link (i.e. when
hci_conn_link() returns NULL).

sco_connect() expects an ERR_PTR in case of any error (see line 266 in
sco.c). Thus, hcon set as NULL passes through to sco_conn_add(), which
tries to get hcon->hdev, resulting in dereferencing a NULL pointer as
reported by syzkaller.

The same issue exists for iso_connect_cis() calling hci_connect_cis().

Thus, make hci_connect_sco() and hci_connect_cis() return ERR_PTR
instead of NULL.

(As written by CVE List.)

## Affected

- Linux Linux: from 06149746e7203d5ffe2d6faf9799ee36203aa8b8 before 357ab53c83a5322437fa434e9a9e3e0bafe6b383; from 06149746e7203d5ffe2d6faf9799ee36203aa8b8 before b4066eb04bb67e7ff66e5aaab0db4a753f37eaad; f72fc94a17d45be98aecfd59c39b5b24a6a342e2; from 6.3.8 before 6.4; 6.4 (not affected: before 6.4; from 6.4.7 up to 6.4.*; from 6.5 up to *)

## References

- <https://git.kernel.org/stable/c/357ab53c83a5322437fa434e9a9e3e0bafe6b383>
- <https://git.kernel.org/stable/c/b4066eb04bb67e7ff66e5aaab0db4a753f37eaad>

## Sources

- CVE List: [CVE-2023-54038](https://www.cve.org/CVERecord?id=CVE-2023-54038), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2023-54038](https://nvd.nist.gov/vuln/detail/CVE-2023-54038), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-54038 · Whole record: https://cve.day/CVE-2023-54038.json · Rebuilt by cve.day 2026-11-25T22:58:35.150Z
