# CVE-2026-82388: Use of a released HFP HF object after a failed RFCOMM connect in the Bluetooth Classic host

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

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.25% (percentile 10, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2026-10-26T16:08:52.433Z
- **Modified:** 2026-10-26T18:34:17.050Z

## Who should check

- Anyone running zephyrproject zephyr \>= 4.4.0, \< 4.5.0

## Description

bt\_hfp\_hf\_connect() in subsys/bluetooth/host/classic/hfp\_hf.c allocates the per-connection HFP Hands-Free object with hfp\_hf\_create(), which starts an SDP discovery by passing the object's embedded hf-\>sdp\_param to bt\_sdp\_discover(). That call links the caller-owned parameter block into the SDP client's request list (session-\>reqs in subsys/bluetooth/host/classic/sdp.c). If the subsequent bt\_rfcomm\_dlc\_connect() then failed, the affected code wiped the entire object with (void)memset(new\_hf, 0, sizeof(\*new\_hf)) while that discovery was still outstanding, zeroing the sys\_snode\_t \_node that is still linked in the SDP client's list along with the request's func, uuid and pool pointers, and zeroing the hf-\>slc\_work work item that may already be queued on the system workqueue. The discovery could not be retracted instead: bt\_sdp\_discover\_cancel() is declared in include/zephyr/bluetooth/classic/sdp.h but has no implementation.

The failing branch is reachable with peer-supplied input. The documented use of bt\_hfp\_hf\_connect() is to pass the RFCOMM channel read out of the remote Audio Gateway's SDP record; neither bt\_sdp\_get\_proto\_param() nor bt\_hfp\_hf\_connect() range-checks that value, so a remote device advertising an HFP AG record with an RFCOMM channel outside 1-30 makes bt\_rfcomm\_dlc\_connect() return -EINVAL and drives the local device into the wipe. The same branch is reached without any application misuse when the remote peer controls connection timing, for example when the RFCOMM session is in BT\_RFCOMM\_STATE\_DISCONNECTING or the ACL is dropped between object creation and the RFCOMM call.

Once the object has been wiped, the Bluetooth host continues to use it: sdp\_client\_alloc\_buf() dereferences session-\>param-\>pool, which is now NULL, and the SDP receive paths call session-\>param-\>func() through a null function pointer, neither of which is NULL-checked. Because the wipe also clears hf-\>acl, the pool slot is considered free and a retry or an incoming HFP connection re-appends the same still-linked list node, turning session-\>reqs into a self-referential list that the host's list walkers never leave. The result is a fault or an unrecoverable hang in the Bluetooth host thread; the stray indirect call is through an all-zero pointer whose target the attacker does not control, so the practical impact is denial of service.

The fix keeps the object allocated and marks it with a new BT\_HFP\_HF\_FLAG\_RELEASING flag, letting bt\_hfp\_hf\_discover\_cb() release it once the discovery completes instead of destroying it under the SDP client. Only builds with CONFIG\_BT\_CLASSIC and CONFIG\_BT\_HFP\_HF enabled are affected.

## Affected and fixed versions

- zephyrproject zephyr: \>= 4.4.0, \< 4.5.0 (cvelist)

## Mitigation

- Upgrade zephyr to 4.5.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-82388.md
Affected: zephyrproject zephyr >= 4.4.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.5.0

Steps:
1. Search this machine and project for zephyrproject zephyr: 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-2026-82388 being exploited?

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

### How serious is CVE-2026-82388?

Medium: CVSS 5.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-82388?

zephyrproject zephyr \>= 4.4.0, \< 4.5.0.

### Is there a fix for CVE-2026-82388?

Yes. Fixed in zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.

### How do I check if I'm affected by CVE-2026-82388?

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

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-398x-f7rq-5jj9>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/6119da5d632594131304dec85000a75dc17743d2>

## 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-2026-82388>

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