Home

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.

PUBLISHED Reserved 2025-12-24 | Published 2025-12-24 | Updated 2025-12-24 | Assigner Linux

Product status

Default status
unaffected

06149746e7203d5ffe2d6faf9799ee36203aa8b8 (git) before 357ab53c83a5322437fa434e9a9e3e0bafe6b383
affected

06149746e7203d5ffe2d6faf9799ee36203aa8b8 (git) before b4066eb04bb67e7ff66e5aaab0db4a753f37eaad
affected

f72fc94a17d45be98aecfd59c39b5b24a6a342e2 (git)
affected

Default status
affected

6.4
affected

Any version before 6.4
unaffected

6.4.7 (semver)
unaffected

6.5 (original_commit_for_fix)
unaffected

References

git.kernel.org/...c/357ab53c83a5322437fa434e9a9e3e0bafe6b383

git.kernel.org/...c/b4066eb04bb67e7ff66e5aaab0db4a753f37eaad

cve.org (CVE-2023-54038)

nvd.nist.gov (CVE-2023-54038)

Download JSON

Data based on CVE®. Copyright © 1999-2025, The MITRE Corporation. All rights reserved.