# CVE-2026-87044: Memory leak in the Mbed TLS crypto shim on failed cipher/AEAD operations leads to remotely triggered crypto denial of service

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

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; 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.34% (percentile 20, 2026-11-28)
- **CWE:** CWE-401
- **Published:** 2026-11-04T06:09:09.782Z
- **Modified:** 2026-11-09T22:18:56.527Z

## Who should check

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

## Description

The Mbed TLS crypto shim driver in drivers/crypto/crypto\_mbedtls\_shim.c drives PSA multipart cipher and AEAD operations. In mbedtls\_cbc() and mbedtls\_aead(), every error path after a successful psa\_cipher\_encrypt\_setup() / psa\_aead\_decrypt\_setup() returned directly without calling psa\_cipher\_abort() / psa\_aead\_abort(). Because the abort is the only thing that reaches mbedtls\_cipher\_free(), each failed operation permanently leaked the heap-allocated mbedtls\_aes\_context (roughly 288 bytes) that setup had allocated from Mbed TLS's fixed static heap (\_mbedtls\_heap\[CONFIG\_MBEDTLS\_HEAP\_SIZE\], default 512 bytes). With CONFIG\_PSA\_CRYPTO\_PROVIDER\_TFM the leaked object is instead a finite secure-partition multipart-operation slot.

The failure is chosen by an unauthenticated attacker. With CONFIG\_NET\_L2\_IEEE802154\_SECURITY backed by this driver, ieee802154\_decrypt\_auth() in subsys/net/l2/ieee802154/ieee802154\_security.c invokes cipher\_ccm\_op() on every received secured frame, with no authentication ahead of the MIC check. A device in radio range can transmit a stream of syntactically valid 802.15.4 frames carrying a bogus MIC; each one makes psa\_aead\_verify() fail and leaks a block. The CBC path is reachable the same way through the OSDP secure channel, where CONFIG\_OSDP\_SC\_ENABLED selects this shim and osdp\_encrypt() / osdp\_decrypt() leave out\_buf\_max unset, so every operation fails inside psa\_cipher\_update().

Exhausting the Mbed TLS heap — which the default configuration reaches after a couple of failed operations, and any realistic configuration reaches in well under a second of frames — makes all subsequent mbedtls\_calloc() calls fail. Every later cryptographic operation in the image then fails permanently, including link-layer security and any TLS/DTLS sharing the same heap, until the device is rebooted. There is no memory corruption or information disclosure: frames with an invalid MIC are still rejected, so the impact is limited to availability.

The fix routes all post-setup failures in mbedtls\_cbc() and mbedtls\_aead() through a common error: label that calls the matching PSA abort before returning. Setup failures need no change, since the PSA core aborts the operation itself when setup fails.

## 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-87044. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-87044.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-87044 being exploited?

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

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

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

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

zephyrproject zephyr \>= 4.4.0, \< 4.5.0.

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

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

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-r8x3-637f-c986>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/8e7e9e9bf9f0b1a7acd12ef3d6d38473b1ce6d43>

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

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