Skip to main content

Zephyr RTOS CVE-2026-87043

| EUVDEUVD-2026-116746 MEDIUM
Use of Insufficiently Random Values (CWE-330)
2026-11-04 zephyr
4.8
CVSS 3.1 · Vendor: zephyr
View

Attack ChainAIDerived

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

  1. Access
    Reach affected Zephyr device over network
  2. Exploit
    Collect predictable randoms (TCP ISN, CoAP tokens, nonces)
  3. Execution
    Predict values or read leaked stale bytes
  4. Impact
    Spoof/hijack session or disclose memory

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Cryptographic random values
Exploitation Conditions

Exploitation requires the entropy device to be in the 'not ready' state on the target, which arises in two ways: (1) a caller invokes the non-cryptographic sys_rand_get()/sys_rand32_get() before the entropy device initializes - entropy drivers init at PRE_KERNEL_1 with CONFIG_ENTROPY_INIT_PRIORITY default 50, while kernel objects init at priority 30, so earlier initializers observe an unready device; or (2) an entropy driver's init hook fails at boot (entropy_stm32 on an RNG clock-control error, entropy_psa_crypto when psa_crypto_init() fails, or entropy_nrf_cracen/entropy_esp32/entropy_virtio), which makes the degraded state permanent for that boot. Only Zephyr builds in the range >= 4.4.0, < 4.5.0 are affected. The flaw is confined to the non-cryptographic path; sys_csrand_get()/the CSPRNG path still propagates errors and is unaffected. The strongest limiting factor is that the attacker cannot induce the unready state - they can only observe and exploit it where it already occurs. Direct on-the-wire memory disclosure additionally requires the relevant feature to be in use (SSH packet padding, netmidi2 session nonce, or a DTLS connection ID specifically on builds compiled without CONFIG_CSPRNG_ENABLED).

Impact

This is a genuine but conditional, moderate-risk issue rather than a high-priority emergency. The CVSS 3.1 base score is 4.8 (medium) with vector AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N: it is network-reachable with no authentication or user interaction, but AC:H correctly reflects that exploitation depends on a precondition the attacker cannot create - the advisory explicitly states 'An attacker cannot induce the unready state.' No EPSS score was provided, so exploitation-probability cannot be quantified. The CVE is NOT in CISA KEV and no public exploit was identified (the only references are the fix commit and the GHSA advisory, which are remediation artifacts, not proof-of-concept code), so there is no evidence of active or weaponized exploitation. The vendor decision label is 'this_month' (patch within the month), consistent with a real-but-not-critical defect. Impact is split low/low: low confidentiality (stale stack/heap bytes disclosed on the wire via SSH padding, netmidi2 nonce, or DTLS CID on builds without CONFIG_CSPRNG_ENABLED) and low integrity (predictable TCP ISNs, constant CoAP tokens, degraded DHCP transaction IDs and WebSocket masking keys enabling spoofing/injection). The dominant risk-limiting factor is the trigger condition: the flaw only manifests where the entropy device is not ready, which requires either early-boot callers (entropy inits at PRE_KERNEL_1 priority 50 while kernel objects init at 30) or a permanent per-boot driver init failure (entropy_stm32 RNG clock error, entropy_psa_crypto psa_crypto_init failure, entropy_nrf_cracen/esp32/virtio). Deployments whose entropy driver initializes correctly and are not exercised pre-entropy are effectively unaffected. Net: prioritize patching for affected 4.4.x embedded fleets, but this is not a drop-everything issue.

Exploit ScenarioDerived

An affected Zephyr device (4.4.x) boots with its entropy driver failing to initialize - for example entropy_stm32 hitting an RNG clock-configuration error - leaving the device permanently 'not ready' for that boot. Non-cryptographic randomness then degrades: TCP initial sequence numbers become uninitialized stack words and CoAP tokens a fixed .bss constant, so a remote attacker can predict or spoof them to inject into or hijack network sessions, while raw buffers sent on the wire (SSH packet padding, DTLS connection ID) leak stale stack/heap contents. No public exploit code was identified, and AC:H applies because the attacker cannot force the unready state - they can only observe and exploit it where it already exists.

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

Non-cryptographic randomness in Zephyr RTOS 4.4.0 through the pre-4.5.0 range can silently return an unwritten buffer, so callers receive stale stack, heap or .bss contents instead of random bytes. The degraded state appears whenever a caller asks for randomness before the entropy driver initialises (PRE_KERNEL_1, CONFIG_ENTROPY_INIT_PRIORITY default 50) or permanently for a boot when an entropy driver's init hook fails, degrading CoAP tokens, TCP initial sequence numbers, DHCP transaction IDs, WebSocket masking keys, RTP SSRCs and ARM64 pointer-authentication keys, and disclosing stale memory on the wire via SSH packet padding, the netmidi2 session nonce or a DTLS connection ID on builds without CONFIG_CSPRNG_ENABLED. The cryptographically secure path (sys_csrand_get()) still propagates errors and is unaffected, and remote attackers cannot induce the unready state - they can only observe and exploit it where it already occurs; no public exploit code was identified at time of analysis, giving an assessed severity of 4.8 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N).

RemediationAI

Vendor-released patch: 4.5.0 - upgrade Zephyr to 4.5.0, or cherry-pick commit 76eb10b5c3e93de5218cc9f1aa313ece3eb5a6e6 (pull request #118027 on main, #119111 on v4.4-branch) into a 4.4.x tree; the fix initialises ret to -ENODEV and calls entropy_get_entropy() only when device_is_ready() succeeds, so the not-ready case falls through to the timer fallback and the buffer is always written. The cryptographically secure sys_csrand_get() path needs no change because it already propagates the error. Where an update cannot be deployed immediately, the exposure narrows if you eliminate the two triggering conditions: make sure no code requests non-cryptographic randomness from an initialiser that runs before CONFIG_ENTROPY_INIT_PRIORITY, and verify on real hardware that the entropy driver's init hook succeeds (checking the entropy_stm32 RNG clock configuration, psa_crypto_init() return values, and the nrf_cracen, esp32 and virtio init paths) so the degraded state does not persist for the boot - these reduce but do not remove the flaw, and the advisory provides no alternative code-level mitigation beyond the patch. Note that disabling or avoiding CONFIG_CSPRNG_ENABLED makes the on-the-wire disclosure path (DTLS connection IDs) worse rather than better. Full details and the patch table are in https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-j6p3-2pm6-rrj9.

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

The defect is class CWE-330 (use of insufficiently random values) and lives in subsys/random/random_entropy_device.c. rand_get() previously returned -ENODEV as soon as device_is_ready() failed, short-circuiting the non-cryptographic system-timer fallback that sits further down the same function; because z_impl_sys_rand_get() is declared void and discards rand_get()'s return value, and the public __syscall void sys_rand_get(void *dst, size_t len) has no error channel by design, the failure is invisible to every caller and the destination buffer is never written. The thin wrappers turn this into a plain uninitialised read: sys_rand32_get() declares uint32_t ret; calls sys_rand_get(&ret, sizeof(ret)); and returns ret. The not-ready state is a normal runtime condition rather than a fault - entropy drivers initialise at PRE_KERNEL_1 with CONFIG_ENTROPY_INIT_PRIORITY (default 50) while kernel objects initialise at priority 30, so earlier initialisers observe an unready device - and the sibling generator subsys/random/random_xoshiro128.c and z_early_rand_get() in kernel/init.c already carried the identical 'int rc = -ENODEV; if (device_is_ready(...))' timer-fallback shape that this fix restores. The state also becomes permanent for the boot when an entropy driver's init hook fails, as seen in entropy_stm32 on an RNG clock-control error, entropy_psa_crypto when psa_crypto_init() fails, and entropy_nrf_cracen, entropy_esp32 and entropy_virtio. Consumption sites range from coap_next_token(), which fills a static buffer so every CoAP token collapses to the same .bss constant, and tcp_init_isn(), which returns an uninitialised stack word as the TCP initial sequence number when RFC 6528 ISN generation is disabled, through to z_arm64_pac_keys_generate() deriving per-thread Pointer Authentication keys from the same source. The trigger is inherent to scheduling and driver init ordering; the commit does not describe any attacker-controlled mechanism for forcing the unready state.

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 4.8 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 4.8 MEDIUM

Network-observable with no auth or interaction (AV:N/PR:N/UI:N); AC:H because it works only when the device is already in a not-ready state the attacker cannot induce; low disclosure and low predictability impact, no availability effect.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/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
Low
Integrity
Low
Availability
None

DescriptionCVE.org

The entropy-device random number generator in subsys/random/random_entropy_device.c returned early with -ENODEV from rand_get() as soon as device_is_ready() failed, before reaching the non-cryptographic system-timer fallback further down the same function. Because z_impl_sys_rand_get() returns void and discards that error - and the public sys_rand_get() syscall is itself declared void, so it cannot report failure - the caller's output buffer was left untouched and its previous contents were handed back as random data. The thin wrappers make this a plain uninitialized read: sys_rand32_get() declares uint32_t ret;, calls sys_rand_get(&ret, sizeof(ret)) and returns ret.

The "not ready" state is a normal runtime condition rather than a fault. Entropy drivers initialise at PRE_KERNEL_1 with CONFIG_ENTROPY_INIT_PRIORITY (default 50), so any earlier initialiser - kernel objects run at priority 30 - observes an unready device; the sibling generator subsys/random/random_xoshiro128.c and z_early_rand_get() in kernel/init.c both already carried an explicit timer fallback for exactly this case. The state is also permanent for the boot when an entropy driver's init hook fails, which several in-tree drivers can do on real hardware (entropy_stm32 on an RNG clock configuration error, entropy_psa_crypto when psa_crypto_init() fails, entropy_nrf_cracen, entropy_esp32, entropy_virtio).

When this occurs, every non-cryptographic random value in the system is either a constant or stale memory. coap_next_token() in subsys/net/lib/coap/coap.c fills a static buffer, so every CoAP token becomes the same .bss constant; tcp_init_isn() in subsys/net/ip/tcp.c returns an uninitialized stack word as the TCP initial sequence number; DHCPv4/DHCPv6 transaction IDs, WebSocket masking keys and RTP SSRCs are similarly degraded, and arch/arm64/core/pac.c derives per-thread Pointer Authentication keys from the same source. Where the bytes are transmitted directly - SSH packet padding, the netmidi2 session nonce, a DTLS connection ID on builds without CONFIG_CSPRNG_ENABLED - stale caller stack or heap contents are disclosed on the wire.

The fix initialises ret to -ENODEV and only calls entropy_get_entropy() when the device is ready, so the not-ready case now falls through to the timer fallback and the buffer is always written. The cryptographically secure path is unchanged: sys_csrand_get() still propagates the error to the caller and never silently degrades. An attacker cannot induce the unready state, but can observe and exploit the resulting non-random values remotely on an affected device.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
popular open-source embedded/IoT RTOS, but narrower footprint than server stacks
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
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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