# CVE-2023-54038: Bluetooth: hci\_conn: return ERR\_PTR instead of NULL when there is no link

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 11, 2026-11-28)
- **Published:** 2025-12-24T10:56:04.623Z
- **Modified:** 2026-06-17T06:46:41.563Z

## Who should check

- Anyone running Linux \>= 06149746e7203d5ffe2d6faf9799ee36203aa8b8, \< 357ab53c83a5322437fa434e9a9e3e0bafe6b383; \>= 06149746e7203d5ffe2d6faf9799ee36203aa8b8, \< b4066eb04bb67e7ff66e5aaab0db4a753f37eaad; f72fc94a17d45be98aecfd59c39b5b24a6a342e2; \>= 6.3.8, \< 6.4
- Anyone running Linux 6.4

## 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.

## Affected and fixed versions

- Linux: \>= 06149746e7203d5ffe2d6faf9799ee36203aa8b8, \< 357ab53c83a5322437fa434e9a9e3e0bafe6b383; \>= 06149746e7203d5ffe2d6faf9799ee36203aa8b8, \< b4066eb04bb67e7ff66e5aaab0db4a753f37eaad; f72fc94a17d45be98aecfd59c39b5b24a6a342e2; \>= 6.3.8, \< 6.4 (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- Upgrade Linux to 6.4 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-54038. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54038.md
Affected: Linux >= 06149746e7203d5ffe2d6faf9799ee36203aa8b8, < 357ab53c83a5322437fa434e9a9e3e0bafe6b383; >= 06149746e7203d5ffe2d6faf9799ee36203aa8b8, < b4066eb04bb67e7ff66e5aaab0db4a753f37eaad; f72fc94a17d45be98aecfd59c39b5b24a6a342e2; >= 6.3.8, < 6.4; Linux 6.4
Fixed in: Linux 357ab53c83a5322437fa434e9a9e3e0bafe6b383, Linux 6.4

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-54038 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 06149746e7203d5ffe2d6faf9799ee36203aa8b8, \< 357ab53c83a5322437fa434e9a9e3e0bafe6b383; \>= 06149746e7203d5ffe2d6faf9799ee36203aa8b8, \< b4066eb04bb67e7ff66e5aaab0db4a753f37eaad; f72fc94a17d45be98aecfd59c39b5b24a6a342e2; \>= 6.3.8, \< 6.4; Linux 6.4.

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

Yes. Fixed in Linux 357ab53c83a5322437fa434e9a9e3e0bafe6b383, Linux 6.4. Upgrade Linux to 6.4 or later.

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

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/357ab53c83a5322437fa434e9a9e3e0bafe6b383>
- other: <https://git.kernel.org/stable/c/b4066eb04bb67e7ff66e5aaab0db4a753f37eaad>

## 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-54038>

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