Skip to main content

Zephyr RTOS EUVDEUVD-2026-116747

| CVE-2026-87044 MEDIUM
Memory Leak (CWE-401)
2026-11-04 zephyr
6.5
CVSS 3.1 · Vendor: zephyr
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Enter 802.15.4 radio range
  2. Delivery
    Transmit secured frames with bogus MIC
  3. Exploit
    psa_aead_verify() fails, abort skipped
  4. Execution
    Leaked AES context drains Mbed TLS heap
  5. Impact
    All device crypto fails until reboot

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
Exploitation Conditions

The device must run an affected Zephyr build (>= 4.4.0, < 4.5.0) whose crypto is backed by the Mbed TLS shim (CONFIG_CRYPTO_MBEDTLS_SHIM) AND must have at least one reachable consumer enabled: CONFIG_NET_L2_IEEE802154_SECURITY, where ieee802154_decrypt_auth() runs cipher_ccm_op() on every received secured frame before authentication (AEAD path), or CONFIG_OSDP_SC_ENABLED, where osdp_encrypt()/osdp_decrypt() leave out_buf_max unset so psa_cipher_update() fails every time (CBC path). For the 802.15.4 vector the attacker must be in radio range (adjacent), with no authentication required because the MIC failure is attacker-controlled. Limiting factors that reduce real-world exposure: the vulnerable 802.15.4-security or OSDP-secure-channel feature must be compiled in and active, and the attacker needs physical proximity or secure-channel reach; conversely, the default 512-byte Mbed TLS heap makes exhaustion trivial once those conditions hold.

Impact

This is a genuine but bounded issue: a remotely triggered cryptographic denial of service, not a high-severity remote-code-execution or disclosure flaw. The CVSS 6.5 (MEDIUM) vector CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H is internally consistent with the description - AV:A reflects that the attacker must be within 802.15.4 radio range (or on the OSDP secure channel), AC:L and PR:N/UI:N reflect that any device in range can drive the failure with no authentication because the MIC check runs before any authentication, and C:N/I:N/A:H correctly captures an availability-only impact (frames with a bad MIC are still rejected; there is no memory corruption or information disclosure). Exploitation status: no public exploit identified at time of analysis, and the CVE is not in CISA KEV. No EPSS score was supplied, so statistical exploitation likelihood cannot be weighed here - state this gap explicitly rather than assume it is low. The vuln.today decision label is 'this_month', indicating a real but non-emergency priority. The practical severity is amplified by the tiny attack cost: the default CONFIG_MBEDTLS_HEAP_SIZE of 512 bytes is smaller than two leaked ~288-byte AES contexts, so a couple of malformed frames exhaust the heap and permanently break all later crypto - including any TLS/DTLS sharing that heap - until reboot. The limiting factors keep this from being a top-tier priority: it requires adjacency and a specific Zephyr build (802.15.4 link-layer security or OSDP secure channel over the Mbed TLS shim), and it is availability-only.

Exploit ScenarioDerived

An attacker within 802.15.4 radio range of a vulnerable Zephyr device running IEEE 802.15.4 link-layer security transmits a stream of syntactically valid secured frames carrying a bogus MIC. Each frame makes psa_aead_verify() fail, and because the shim returns without calling psa_aead_abort(), a ~288-byte AES context is permanently leaked from the fixed 512-byte Mbed TLS heap; after only a couple of frames the heap is exhausted and every subsequent cryptographic operation fails until reboot. No public exploit is identified at time of analysis, and the low attack complexity (AC:L) and lack of required authentication (PR:N) make the DoS trivial to reproduce for anyone in range.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 04, 2026

Repeatedly failing AEAD and CBC operations in Zephyr RTOS 4.4.x (>= 4.4.0, < 4.5.0) permanently leak roughly 288 bytes of Mbed TLS's fixed static heap each time, because the Mbed TLS crypto shim in drivers/crypto/crypto_mbedtls_shim.c returns from error paths after a successful psa_aead_decrypt_setup()/psa_cipher_encrypt_setup() without ever calling psa_aead_abort()/psa_cipher_abort(). An unauthenticated attacker within 802.15.4 radio range can drain the default 512-byte heap in well under a second by transmitting syntactically valid secured frames with bogus MICs, after which every mbedtls_calloc() fails and all cryptography in the image - link-layer security and any TLS/DTLS sharing the same heap - stops working until the device is rebooted. There is no memory corruption or information disclosure (invalid-MIC frames are still rejected), so the impact is availability only; the flaw is not listed in CISA KEV, has no public exploit identified at time of analysis, and is addressed by routing all post-setup failures through a common error label that calls the matching PSA abort.

RemediationAI

Vendor-released patch: Zephyr 4.5.0, with the fix merged on main as PR #118027 (commit 8e7e9e9bf9f0b1a7acd12ef3d6d38473b1ce6d43) and backported to v4.4-branch as PR #119111; the patch adds an error: label in mbedtls_cbc() and mbedtls_aead() that calls psa_cipher_abort()/psa_aead_abort() before returning, so applying the 4.5.0 release or the v4.4-branch backport is the complete fix (advisory: https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-r8x3-637f-c986). Updating is the only complete remedy: builds that do not enable CONFIG_NET_L2_IEEE802154_SECURITY or CONFIG_OSDP_SC_ENABLED are not reachable through the two paths described, so omitting those features removes the exposure at the cost of dropping 802.15.4 link-layer security or the OSDP secure channel entirely; enlarging CONFIG_MBEDTLS_HEAP_SIZE only delays exhaustion of the bounded pool and leaves the leak in place, and rebooting merely restores cryptographic function temporarily until the attacker sends more frames.

Affected VersionsENISA

Zephyr 4.4.0 <4.5.0

Affected Packages

euvd zephyr fix: 4.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Zephyr's Mbed TLS crypto shim implements CBC and AEAD through the PSA multipart cipher API: a setup call allocates an mbedtls_aes_context (about 288 bytes) via mbedtls_calloc() from the fixed static pool _mbedtls_heap[CONFIG_MBEDTLS_HEAP_SIZE], which defaults to only 512 bytes (CONFIG_CRYPTO_MBEDTLS_SHIM selects MBEDTLS_ENABLE_HEAP and forces MBEDTLS_CIPHER_C, putting AEAD contexts on the heap as well). The abort call is the only path that reaches mbedtls_cipher_free()/mbedtls_ccm_free(), so every early return after a successful setup orphaned the allocation - a classic CWE-401 missing-release-of-memory leak. When CONFIG_PSA_CRYPTO_PROVIDER_TFM is used, the leaked resource is instead a finite secure-partition multipart-operation slot. The regression was introduced by commit cc65c9543b70 ("drivers: crypto: mbedtls_shim: replace legacy cipher API with PSA API", 2025-10-14), which migrated these functions from one-shot legacy cipher calls to PSA multipart operations without adding matching aborts; setup failures need no change because the PSA core self-aborts when setup fails. Two consumers make the leak attacker-drivable without authentication: ieee802154_decrypt_auth() calls cipher_ccm_op() on every received secured frame before the MIC is checked, so a bad MIC from the AEAD verify path leaks a block; and with CONFIG_OSDP_SC_ENABLED the shim is the default OSDP backend, where osdp_encrypt()/osdp_decrypt() never set out_buf_max so psa_cipher_update() fails with PSA_ERROR_BUFFER_TOO_SMALL on every call. Note that accompanying metadata tags referencing buffer overflow and information disclosure do not match the vendor analysis: the advisory explicitly states there is no memory corruption or disclosure and that the trigger mechanism is an unchecked error-path return, not a memory-safety violation.

Know when Zephyr gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (zephyr) PRIMARY 6.5 MEDIUM
AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 6.5 MEDIUM

Attacker must be in 802.15.4 radio range (AV:A) but needs no auth or user interaction because the MIC check precedes authentication (PR:N/UI:N); impact is availability-only crypto DoS (A:H, C:N/I:N).

3.1 AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (zephyr).

CVSS VectorVendor: zephyr

Attack Vector
Adjacent
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Medium
popular embedded RTOS, but vulnerable 802.15.4/OSDP crypto build is a subset
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Controlled
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Zephyr

View all
CVE-2023-4260 CRITICAL POC
10.0 Sep 27

Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),

CVE-2026-1678 CRITICAL POC
9.8 Mar 05

An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on

CVE-2023-5055 CRITICAL POC
9.8 Nov 21

Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit

CVE-2023-4257 CRITICAL POC
9.8 Oct 13

Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS

CVE-2023-3725 CRITICAL POC
9.8 Oct 06

Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner

CVE-2021-3323 CRITICAL POC
9.8 Oct 12

Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2021-3625 CRITICAL POC
9.8 Oct 05

Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable

CVE-2021-3319 CRITICAL POC
9.8 Oct 05

DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul

CVE-2018-1000800 CRITICAL POC
9.8 Sep 06

zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(

CVE-2023-4264 CRITICAL POC
9.6 Sep 27

Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul

CVE-2024-1638 CRITICAL POC
9.1 Feb 19

The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte

CVE-2023-5753 HIGH POC
8.8 Oct 25

Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy