# CVE-2026-18748: Out-of-bounds read in Bluetooth Classic A2DP codec information element handling

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

- **Severity:** LOW 3.5
- **CVSS:** 3.5 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **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-26)
- **CWE:** CWE-125
- **Published:** 2026-10-21T18:19:29.937Z
- **Modified:** 2026-11-04T05:18:47.233Z

## Who should check

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

## Description

The Bluetooth Classic A2DP host stores a codec Information Element (IE) in struct bt\_a2dp\_codec\_ie, a one-byte len field plus a fixed 8-byte codec\_ie\[\] array. When an AVDTP peer sent a codec IE longer than 8 bytes, a2dp\_process\_config\_ind() in subsys/bluetooth/host/classic/a2dp.c copied only the first 8 bytes but assigned the full, attacker-chosen length to len, and then persisted that inconsistent structure into the application's struct bt\_a2dp\_stream via stream-\>codec\_config. bt\_a2dp\_get\_config\_cb() and bt\_a2dp\_set\_config\_cb() had the same truncate-the-copy-but-keep-the-length pattern.

Every later consumer trusts len. In particular the responder for an incoming AVDTP GET\_CONFIGURATION, a2dp\_get\_config\_ind(), executes net\_buf\_add\_mem(rsp\_buf, &ep-\>stream-\>codec\_config.codec\_ie\[0\], ep-\>stream-\>codec\_config.len), so a paired BR/EDR peer that first sends a SET\_CONFIGURATION carrying an oversized codec IE and then requests the configuration back causes the stack to read up to roughly 245 bytes past the end of the 8-byte array and transmit them in the response. codec\_config is the last member of struct bt\_a2dp\_stream, so the read runs into memory adjacent to the application's stream object. The same inconsistency is also handed to the config\_req(), reconfig\_req() and get\_config\_rsp() application callbacks, where a natural memcpy() of len bytes performs a further out-of-bounds read.

Reaching the on-air disclosure requires CONFIG\_BT\_CLASSIC with CONFIG\_BT\_A2DP, an AVDTP peer that has completed pairing (the AVDTP L2CAP channel requires BT\_SECURITY\_L2), and a local endpoint registered for a non-SBC codec — BT\_A2DP\_MPEG1/BT\_A2DP\_MPEG2/BT\_A2DP\_ATRAC/BT\_A2DP\_VENDOR via BT\_A2DP\_EP\_INIT() — because the SBC branch already pins the IE length to 4 bytes. The bt\_a2dp\_get\_config\_cb() response path has no such gate and hands the lying length to any application. There is no out-of-bounds write: the net\_buf tailroom check bounds the destination, so the impact is limited to disclosure of a bounded region of adjacent RAM to the peer.

The fix replaces the hardcoded BT\_A2DP\_MAX\_IE\_LENGTH with the configurable CONFIG\_BT\_A2DP\_CODEC\_MAX\_IE\_LEN (default 8, range 4–253), sizes codec\_ie\[\] from it, and rejects any received IE that exceeds it instead of silently truncating, so len can no longer exceed the number of valid bytes.

## Affected and fixed versions

- zephyrproject zephyr: \>= 4.3.0, \< 4.3.2; \>= 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-18748. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-18748.md
Affected: zephyrproject zephyr >= 4.3.0, < 4.3.2; >= 4.4.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.3.2, 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-18748 being exploited?

There is no confirmed exploitation: CVE-2026-18748 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-26).

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

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

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

zephyrproject zephyr \>= 4.3.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0.

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

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

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

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-6qq5-25mp-x5rg>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/c5f649f4714e625362fbaa93ffd7419f9c27342b>

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

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