Skip to main content

Zephyr RTOS EUVDEUVD-2026-57067

| CVE-2026-12233 MEDIUM
Improper Initialization (CWE-665)
2026-08-12 zephyr
5.9
CVSS 3.1 · Vendor: zephyr
View

Attack ChainAIDerived

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

  1. Access
    Identify Zephyr TLS server with PSA backend
  2. Delivery
    Open multiple simultaneous TLS connections
  3. Exploit
    Race two threads onto credential_lock
  4. Execution
    Trigger NULL dereference in uninitialized wait queue
  5. Impact
    Kernel 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.

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

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

Alert me

AnalysisAIv1 – 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

Zephyr 3.2.0 <4.4.2

Affected Packages

euvd zephyr fix: 4.4.2

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

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

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:P/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
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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

EPSS Score
31.0%
Prevalence
Low
niche embedded RTOS; affected PSA config non-default
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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 31.0%
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

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.

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