{"id":"CVE-2026-87044","summary":"Memory leak in the Mbed TLS crypto shim on failed cipher/AEAD operations leads to remotely triggered crypto denial of service","details":"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.\n\nThe 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().\n\nExhausting 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.\n\nThe 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.","aliases":["GHSA-r8x3-637f-c986"],"modified":"2026-11-11T07:24:34.446813574Z","published":"2026-11-04T06:09:09.782Z","database_specific":{"cna_assigner":"zephyr","cwe_ids":["CWE-401"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/87xxx/CVE-2026-87044.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/87xxx/CVE-2026-87044.json"},{"type":"ADVISORY","url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-r8x3-637f-c986"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-87044"},{"type":"FIX","url":"https://github.com/zephyrproject-rtos/zephyr/commit/8e7e9e9bf9f0b1a7acd12ef3d6d38473b1ce6d43"},{"type":"PACKAGE","url":"https://github.com/zephyrproject-rtos/zephyr"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/zephyrproject-rtos/zephyr","events":[{"introduced":"684c9e8f32e4373a21098559f748f06915f950c9"},{"fixed":"41d10b59730406bbab4ca9f1fbbe9e96aafb4966"},{"fixed":"8e7e9e9bf9f0b1a7acd12ef3d6d38473b1ce6d43"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"4.4.0"},{"fixed":"4.5.0"}]},{"range":[{"fixed":"8e7e9e9bf9f0b1a7acd12ef3d6d38473b1ce6d43"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v4.4.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-87044.json","vanir_signatures":[{"signature_type":"Function","signature_version":"v1","source":"https://github.com/zephyrproject-rtos/zephyr/commit/8e7e9e9bf9f0b1a7acd12ef3d6d38473b1ce6d43","target":{"file":"drivers/crypto/crypto_mbedtls_shim.c","function":"mbedtls_cbc"},"deprecated":false,"digest":{"length":1406,"function_hash":"112005331300787960962340296425531197668"},"id":"CVE-2026-87044-39097267"},{"target":{"file":"drivers/crypto/crypto_mbedtls_shim.c","function":"mbedtls_aead"},"deprecated":false,"digest":{"length":1994,"function_hash":"195253884022637768427077984454606612216"},"id":"CVE-2026-87044-5939372b","signature_type":"Function","signature_version":"v1","source":"https://github.com/zephyrproject-rtos/zephyr/commit/8e7e9e9bf9f0b1a7acd12ef3d6d38473b1ce6d43"},{"id":"CVE-2026-87044-83896b8c","signature_type":"Line","signature_version":"v1","source":"https://github.com/zephyrproject-rtos/zephyr/commit/8e7e9e9bf9f0b1a7acd12ef3d6d38473b1ce6d43","target":{"file":"drivers/crypto/crypto_mbedtls_shim.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["352738971284393317786476123300791106","70173940830172176825159883839055040963","285744652235826692132076250192114060040","180408863916921155641177034253097591677","80405717639123471768265284662172585858","15972431126725520838000997495505084636","43986030561098205071691627739782950899","118994886201155083773261083809217194893","248270148793587396747344896959230776383","197405111495850055041471981461470953909","175846317275211654775744372575237379857","222861733778791645425934101191977937708","5365570016825520131959155983744140860","233317783627724320688894175535823235557","243291254437834581056859367826527711317","73557289634936829155187432090761998819","87081787520082372926159996180180599056","54734231666910063600370739402296185516","190543631299962533359482733153610651901","90653335920763941284602845001385823897","92081753998702523488136106087241269747","297333963109054698282911116548091651994","318154073054367439505495596208914445304","152067509890966359899118525107217792472","147395926693552401739967749716585138883","203048362186599673019753706146755274219","137485751627362964110220048848583963381","74734671514249763332758223576809652354","127508552759463128871465940768923775416","268009597309473829487109636206674565349","15038591936328403154851602559418651636","110161987138115001125947377861192979335","897258778236155289707847361614647093","72252296649979789653227284737143454277","241095207290288271535210142795598060962","72506002590119007529248326844389650689","26745970921169902393090059711214708296","29426490352530062737839062519201173342","256730476460325398049612942760278483423","115346862303616574185787891284836099868","193441341204616759957530671808221381642","114641799126694277324043971087004302768","17038508577048407006413434684871742260","330407173424189152928546351813981091853","247897161189972360865502350806943267435"]}}],"vanir_signatures_modified":"2026-11-11T07:24:34Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}