Technical impact
The vulnerability is a memory leak (CWE-401) in the Mbed TLS crypto shim used by Zephyr. When a PSA multipart cipher or AEAD operation fails after successful setup, the driver neglects to call the corresponding PSA abort, allowing the allocated cryptographic context to remain on the heap. This leak is small (about 288 bytes per failure) but, because the heap is limited to 512 bytes in the default configuration, a very small number of repeated failures will exhaust the heap. No memory corruption or data disclosure occurs; the only consequence is that subsequent cryptographic operations—including link‑layer security and TLS/DTLS—fail permanently until the device is rebooted.
Affected Systems
The flaw affects Zephyr OS builds that enable the Mbed TLS crypto shim driver, specifically those that use PSA multipart cipher and AEAD functions. It is triggered in configurations that support IEEE 802.15.4 link‑layer security (CONFIG_NET_L2_IEEE802154_SECURITY) and in OSDP secure channel implementations (CONFIG_OSDP_SC_ENABLED). The affected code is drivers/crypto/crypto_mbedtls_shim.c, and the default heap size is 512 bytes, though any realistic configuration will reach exhaustion within a second of failure frames.
Risk and Exploitability
The CVSS score is 6.5 and the EPSS score is not provided; the vulnerability is not listed in CISA KEV. A straightforward, unauthenticated attacker can exploit it by sending a small stream of syntactically valid 802.15.4 frames with bogus MICs or OSDP frames that cause AEAD or cipher operations to fail. Each failure leaks a heap block; after a handful of frames the heap is exhausted, causing all later cryptographic calls to fail. The impact is purely availability, as the device will remain non‑functional for cryptographic operations until reboot.