Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Zephyr TLS server with PSA backend
-
DeliveryOpen multiple simultaneous TLS connections
-
ExploitRace two threads onto credential_lock
-
ExecutionTrigger NULL dereference in uninitialized wait queue
-
ImpactKernel panic causes device reset
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Proper initialization
|
| Exploitation Conditions | Exploitation requires two independent prerequisites both to be true simultaneously. First, the target Zephyr firmware must have been compiled with CONFIG_TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE=y, a non-default opt-in Kconfig option that selects the PSA Protected Storage / TF-M backend over the default volatile RAM backend. Second, at least two execution contexts must contend on credential_lock at the same time - this occurs during concurrent incoming TLS handshakes (routine for any multi-connection TLS server) or when a credential management operation (add/get/delete) races with an active handshake. No authentication is required from the attacker; initiating multiple TLS connections simultaneously is sufficient. Exploitation is limited by: the non-default build configuration, single-threaded or serialized deployments being immune, and the requirement for concurrent scheduling (AC:H). Devices that process one TLS handshake at a time and do not perform concurrent credential operations will never encounter contention and are not exploitable in practice. |
| Impact | The CVSS 3.1 vector AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H (score 5.9) is consistent with the technical description: the attack is network-reachable but requires a concurrent-access race (AC:H), needs no credentials from the attacker, and results in full availability loss with no confidentiality or integrity impact. AC:H may slightly overstate practical difficulty for TLS servers routinely handling multiple simultaneous connections, as the race is fully deterministic once triggered - there is no heap-layout or timing sensitivity beyond concurrent scheduling. No EPSS data was provided, and the issue is not in CISA KEV. No public exploit or proof-of-concept exists. The non-default build configuration (CONFIG_TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE=y) meaningfully narrows the exposed population to PSA Protected Storage / TF-M platforms. For affected deployments running concurrent TLS servers, real-world risk is higher than the mid-range score implies, because the fault is determinstic and requires no exploit sophistication - only concurrent connections. |
| Exploit ScenarioDerived | A remote client initiates multiple simultaneous TLS connections to a Zephyr-based IoT device or gateway running with CONFIG_TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE=y, such as a constrained sensor hub or industrial controller. Two Zephyr threads attempt to acquire credential_lock concurrently during handshake credential loading; the second thread is pended by z_pend_curr() onto the uninitialized wait queue, dereferences a NULL tail pointer, and the kernel panics, resetting the device. No public exploit code exists, but the crash is fully deterministic once contention occurs - any client that can open concurrent TLS connections can trigger it. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 12, 2026
Concurrent TLS handshakes on Zephyr RTOS devices built with CONFIG_TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE cause a deterministic kernel panic and device reset via a NULL pointer dereference in the uninitialized credential mutex wait queue. The PSA Protected Storage credential backend in all affected Zephyr builds declared its serialization mutex without proper initialization, leaving its dlist sentinels as NULL; the fault triggers only on first contention but is fully deterministic once two threads race to acquire the lock. No public exploit has been identified and the issue is not in CISA KEV, though no exploit sophistication is required beyond opening multiple simultaneous TLS connections.
RemediationAI
Apply the upstream fix from commit 29581d586f3d68ec8bb1448b522e5470d4a06aa9 (https://github.com/zephyrproject-rtos/zephyr/commit/29581d586f3d68ec8bb1448b522e5470d4a06aa9), which is a one-line change replacing static struct k_mutex credential_lock; with static K_MUTEX_DEFINE(credential_lock); in subsys/net/lib/tls_credentials/tls_credentials_trusted.c. An upstream fix is confirmed by commit reference, but no specific tagged release version was identified in the available data - verify the fix is included in your target Zephyr SDK or release tag before deploying. As a compensating control, disabling CONFIG_TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE and reverting to the default volatile RAM credential backend eliminates the vulnerable code path entirely; the trade-off is loss of PSA Protected Storage and TF-M integration, meaning credentials will not persist across reboots. Restricting the TLS server to process one handshake at a time (single-threaded credential access) would also prevent the race but is operationally impractical for most server deployments.
Affected VersionsENISA
Affected Packages
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
CWE-665 (Improper Initialization) in the Zephyr kernel networking subsystem. The file subsys/net/lib/tls_credentials/tls_credentials_trusted.c declared its mutex as static struct k_mutex credential_lock;, which zero-fills the struct at program start but does not install the self-referential dlist head/tail sentinel pointers that Zephyr's k_mutex implementation requires. K_MUTEX_DEFINE() or k_mutex_init() perform this initialization. The uncontended (fast) lock path never accesses the wait queue, so the defect is entirely latent in single-threaded or low-concurrency usage. Under contention, k_mutex_lock() calls z_pend_curr(), which invokes sys_dlist_append() on the wait queue and dereferences the NULL tail pointer (tail->next = node), faulting the kernel. Affected CPE: cpe:2.3:a:zephyrproject:zephyr:*:*:*:*:*:*:*:* with CONFIG_TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE=y; the default volatile RAM backend initializes its mutex correctly via K_MUTEX_DEFINE and is unaffected.
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
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
AV:N because remote TLS clients trigger contention; AC:H for the concurrent-access race requirement; PR:N as no attacker credentials needed; A:H for deterministic kernel reset.
Primary rating from Vendor (zephyr).
CVSS VectorVendor: zephyr
DescriptionCVE.org
The PSA Protected Storage credential backend (subsys/net/lib/tls_credentials/tls_credentials_trusted.c) declared its credential-store mutex as a plain zero-filled static struct k_mutex credential_lock; and never called k_mutex_init() on it. A statically zero-filled k_mutex has an uninitialized wait queue (its dlist head/tail are NULL instead of the self-referential sentinels that k_mutex_init/K_MUTEX_DEFINE install). The uncontended lock path does not touch the wait queue, so the defect is latent and serialized use behaves correctly.
When two execution contexts contend on the lock, k_mutex_lock() pends the blocking thread on the wait queue via z_pend_curr(), which calls sys_dlist_append() on the zeroed list and dereferences a NULL tail pointer (tail->next = node), faulting the kernel. The lock is held during TLS handshake credential loading and by all credential add/get/delete operations, so a deployment performing concurrent TLS handshakes (for example a server handling multiple simultaneous connections from a remote peer) or a credential-management operation concurrent with a handshake can trigger the dereference.
The impact is a denial of service: a deterministic kernel panic / device reset on the first contention. There is no memory corruption beyond the NULL dereference and no confidentiality or integrity impact; mutual exclusion on the fast path remains correct. Exposure is limited to builds with CONFIG_TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE enabled (PSA Protected Storage / TF-M platforms); the default volatile RAM backend initializes its lock correctly and is unaffected.
The fix initializes the mutex statically with K_MUTEX_DEFINE(credential_lock), providing a valid wait queue so the contended path no longer touches a NULL list.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),
An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on
Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit
Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS
Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner
Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability
Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable
DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul
zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(
Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul
The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte
Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c
EUVD-2026-57067
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB