# CVE-2026-81038: Bluetooth OTS server discloses uninitialized stack memory in failed Calculate Checksum responses

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; 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.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-617, CWE-908
- **Published:** 2026-10-26T16:08:50.091Z
- **Modified:** 2026-11-04T05:19:03.580Z

## Who should check

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

## Description

The Object Transfer Service server builds its Object Action Control Point (OACP) response indication in oacp\_ind\_send() (subsys/bluetooth/services/ots/ots\_oacp.c). Before this fix the four-byte Checksum Value field was appended whenever the requested op code was BT\_GATT\_OTS\_OACP\_PROC\_CHECKSUM\_CALC, regardless of the result code. The response payload is a bare, uninitialized four-byte stack buffer declared with NET\_BUF\_SIMPLE\_DEFINE(resp\_param, sizeof(uint32\_t)) in bt\_gatt\_ots\_oacp\_write(), and it is filled only on the success path of oacp\_checksum\_proc\_validate(). On every failure path the buffer is still empty, so net\_buf\_simple\_pull\_le32() was invoked on a zero-length buffer.

The OACP characteristic and its client characteristic configuration descriptor are declared with BT\_GATT\_PERM\_WRITE and BT\_GATT\_PERM\_READ \| BT\_GATT\_PERM\_WRITE, so no pairing, encryption, or authentication is required. Any peer within radio range that can connect to a device running the OTS server can enable OACP indications and write a nine-byte Calculate Checksum command that fails validation — for example by issuing it with no object selected, which returns BT\_GATT\_OTS\_OACP\_RES\_INV\_OBJ. Because oacp\_command\_decode() accepts the Calculate Checksum op code unconditionally (it is not guarded by CONFIG\_BT\_OTS\_OACP\_CHECKSUM\_SUPPORT), builds without checksum support are reachable too: they answer BT\_GATT\_OTS\_OACP\_RES\_OPCODE\_NOT\_SUP and take the same bad path.

On builds with CONFIG\_ASSERT enabled, the zero-length pull trips the assertion inside net\_buf\_simple\_pull\_mem() and panics the device, giving a remotely triggered denial of service. On builds with assertions disabled there is no check: the pull returns the untouched stack array and four bytes of uninitialized stack memory are copied into the indication and transmitted to the peer, repeatable on every request. The disclosure is bounded to four bytes per request and the write stays inside the seven-byte res indication buffer, so there is no memory corruption; the impact is uninitialized-memory disclosure plus an availability loss in assertion-enabled configurations.

## Affected and fixed versions

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

Details: https://flawdb.com/CVE-2026-81038.md
Affected: zephyrproject zephyr >= 3.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-81038 being exploited?

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

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

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

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

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

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

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

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-7c9w-mhqw-5g86>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/36145a6f1164e2e0a18c8c83d5b1be6e7d3f6e23>

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

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