# CVE-2026-13213: Bluetooth HAS: NULL-pointer dereference DoS when a bonded peer reconnects before bt\_has\_register

> 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-476
- **Published:** 2026-08-24T17:10:37.182Z
- **Modified:** 2026-11-04T05:18:41.340Z

## Who should check

- Anyone running zephyrproject zephyr \>= 3.6.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2

## Description

The Hearing Access Service (HAS) GATT server in subsys/bluetooth/audio/has.c installs a connection-callback set unconditionally via BT\_CONN\_CB\_DEFINE, so security\_changed() runs for every connection that establishes security even before the application has called bt\_has\_register(). The service attribute pointers hearing\_aid\_features\_attr, preset\_control\_point\_attr, and active\_preset\_index\_attr remain NULL until bt\_has\_register() resolves them and sets has.registered.

With CONFIG\_BT\_SETTINGS, settings\_set\_cb() restores each bonded client's persisted context at boot and unconditionally sets context-\>flags to BONDED\_CLIENT\_INIT\_FLAGS (non-zero). When a previously bonded peer reconnects and re-establishes security during the startup window before bt\_has\_register() has been called, security\_changed() sees the non-zero flags and schedules notify\_work\_handler, which calls bt\_gatt\_is\_subscribed() with a still-NULL attribute pointer. That triggers an assertion (\_\_ASSERT(attr, ...) in bt\_gatt\_is\_subscribed()), or a NULL dereference of attr-\>uuid when assertions are compiled out.

The result is a remotely triggerable (Bluetooth, adjacent) crash of the HAS peripheral. Exploitation requires the peer to have previously bonded with the device and to reconnect within the boot-time race window before the application registers the service; a peer that reconnects persistently can prolong the outage. Impact is denial of service only, with no memory corruption or information disclosure.

The fix adds an early if (!has.registered) { return; } guard in security\_changed(), so no notification work is scheduled until the GATT service is registered and its attribute pointers are valid.

## Affected and fixed versions

- zephyrproject zephyr: \>= 3.6.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-13213.md
Affected: zephyrproject zephyr >= 3.6.0, < 4.3.2; >= 4.4.0, < 4.4.2
Fixed in: zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.4.2

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

There is no confirmed exploitation: CVE-2026-13213 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-13213?

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-13213?

zephyrproject zephyr \>= 3.6.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2.

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

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

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

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-9rj8-3fvm-cc9f>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/cb2329e090755abde8e57cf1c12aa2b9ca41a6a2>

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

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