Skip to main content

Zephyr RTOS EUVDEUVD-2026-58749

| CVE-2026-12363 MEDIUM
Out-of-bounds Write (CWE-787)
2026-08-14 vulnerabilities@zephyrproject.org
4.2
CVSS 3.1 · Vendor: zephyrproject
View

Attack ChainAIDerived

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

  1. Recon
    Compromise or control associated LoRaWAN network/FUOTA server
  2. Delivery
    Confirm target device has active fragmentation session
  3. Exploit
    Send DATA_FRAGMENT downlink with frag_index_n=0
  4. Install
    frag_counter=0 bypasses absent lower-bound validation
  5. C2
    Semtech decoder writes uint16_t zero at array index -1
  6. Execute
    MatrixM2B recovery-matrix state corrupted
  7. Impact
    Active FUOTA session aborted

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Three specific conditions must be simultaneously satisfied: (1) the target Zephyr device must have the LoRaWAN Fragmented Data Block Transport service compiled in and using the Semtech/LoRaMAC-node decoder backend - devices using only the in-tree low-memory decoder (frag_dec()) are not affected; (2) an active fragmentation session must be in progress on the device at the time of the attack, as the vulnerable handler is only registered and reachable during an active session; (3) the attacker must be able to inject authenticated LoRaWAN downlinks to the device, which requires control of the associated network server, possession of valid LoRaWAN MAC session keys, or compromise of the FUOTA server. The CVSS AV:A and AC:H metrics reflect these barriers. There is no path to exploitation from the general internet without first satisfying condition (3).

Impact

CVSS 4.2 with vector AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L accurately reflects low-moderate severity. The adjacent-network vector (AV:A) limits reachability to attackers positioned on the LoRaWAN network or controlling the FUOTA server - not exploitable over the general internet. High attack complexity (AC:H) captures the session-state prerequisite. No EPSS data is provided in the input and the vulnerability is absent from CISA KEV. The intelligence tags label this 'RCE' and 'Buffer Overflow,' which directly conflicts with the CVE description: the out-of-bounds write is a single non-controllable uint16_t zero, code execution has not been demonstrated, and the Zephyr security team's own disclosure explicitly states the impact is denial of the FUOTA session. These tags should not be used to escalate severity. Real-world priority is low for most deployments unless operational continuity of over-the-air firmware updates is critical.

Exploit ScenarioDerived

An attacker who controls or has compromised the LoRaWAN network server or FUOTA server associated with a target Zephyr device waits for the device to enter an active fragmentation session, then transmits a DATA_FRAGMENT downlink with frag_index_n = 0. The unvalidated counter passes through frag_transport_package_callback() to the Semtech decoder, which writes a zeroed uint16_t at array index -1, corrupting MatrixM2B recovery-matrix state and aborting the FUOTA session. No public exploit code has been identified.

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 – Aug 14, 2026

Out-of-bounds write in Zephyr RTOS's LoRaWAN Fragmented Data Block Transport service corrupts the Semtech/LoRaMAC-node decoder's internal MatrixM2B recovery-matrix state when a DATA_FRAGMENT command carries frag_index_n = 0, underflowing the 1-indexed counter arithmetic to array index -1. Impact is constrained to denial of an active FUOTA (Firmware Update Over The Air) session and decoder state corruption - not code execution - despite 'RCE' appearing in the intelligence metadata tags, which directly contradicts the CVE description. No public exploit has been identified and this vulnerability is not listed in CISA KEV.

RemediationAI

Apply the upstream fix from commit 452c704a28369236e555543c61a1894cd1a4afbb in the Zephyr GitHub repository (https://github.com/zephyrproject-rtos/zephyr/commit/452c704a28369236e555543c61a1894cd1a4afbb), which inserts a transport-layer guard in frag_transport_package_callback() that discards any DATA_FRAGMENT command with frag_counter == 0 before it reaches any decoder backend. A specific patched release version is not confirmed in the available data - consult GHSA-fvm7-7whg-8gj6 for release version guidance. As a compensating control, operators can disable the LoRaWAN fragmentation transport service at compile time if FUOTA functionality is not operationally required; the trade-off is loss of over-the-air firmware update capability. Restricting FUOTA server infrastructure access to trusted, hardened hosts reduces the attacker's ability to send authenticated downlinks, but does not eliminate the vulnerability.

Affected VersionsENISA

Zephyr 3.7.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

Zephyr RTOS implements the LoRa Alliance Fragmented Data Block Transport specification in subsys/lorawan/services/frag_transport.c. The frag_transport_package_callback() function extracts a 14-bit fragment counter from the LoRaWAN downlink payload via frag_counter = hdr->frag_index_n & 0x3FFF and passes it directly to the configured decoder without a lower-bound check. DataFragment counters are 1-indexed per specification, so a value of 0 is invalid. With the default Semtech/LoRaMAC-node decoder backend, FragDecoderProcess() computes fragCounter - 1 as an array subscript into FragNbMissingIndex[]; a counter of 0 evaluates to index -1, writing a zeroed uint16_t one slot before the array boundary into the adjacent MatrixM2B recovery-matrix field of the static decoder object. This is a CWE-787 (Out-of-bounds Write) defect. A companion flash-offset underflow is independently blocked by flash_area_write() bounds checking. The in-tree low-memory decoder (frag_dec()) is not affected because its out-of-range bit-array and flash accesses are caught by sys_bitarray_ and flash_area_ bounds checks respectively.

Know when the next one hits your stack

  • 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 (zephyrproject) PRIMARY 4.2 MEDIUM
AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
vuln.today AI 4.2 MEDIUM

Adjacent network (LoRaWAN protocol); high complexity due to active-session prerequisite and server-control requirement; impact limited to FUOTA session integrity and availability.

3.1 AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
4.0 AV:A/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (zephyrproject).

CVSS VectorVendor: zephyrproject

Attack Vector
Adjacent
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low

Lifecycle Timeline

1
Patch available
Aug 14, 2026 - 19:01 EUVD

DescriptionCVE.org

The LoRaWAN Fragmented Data Block Transport service (subsys/lorawan/services/frag_transport.c) does not validate the fragment counter in a received DATA_FRAGMENT command before forwarding it to the configured decoder. In frag_transport_package_callback() the value frag_counter = hdr->frag_index_n & 0x3FFF is taken directly from the downlink payload and passed to the decoder, which derives an array index and flash offset as frag_counter - 1. DataFragment fragments are 1-indexed, so a frag_counter of 0 underflows that arithmetic.

With the default Semtech/LoRaMAC-node decoder, this reaches FragDecoder.FragNbMissingIndex[fragCounter - 1] = 0; in FragDecoderProcess(), where fragCounter - 1 evaluates to -1 and writes a uint16_t zero out of bounds, just before the array and into the adjacent MatrixM2B recovery-matrix state of the static decoder object (CWE-787). A companion write derives a wild flash offset, but that path is rejected by the flash_area_write() bounds check. The in-tree low-memory decoder (frag_dec()) is not corrupted: its out-of-range bit-array and flash accesses are caught by sys_bitarray_ and flash_area_ bounds checks.

The handler is the registered downlink callback for the fragmentation transport port, reachable whenever an active fragmentation session exists, so the triggering byte is attacker-influenceable LoRaWAN/FUOTA network input. Triggering it requires authenticated downlinks (LoRaWAN MAC session keys or a malicious/compromised network or FUOTA server) and an active fragmentation session. The impact is contained: corruption of decoder state and denial of the firmware-update (FUOTA) session rather than controllable memory corruption or code execution. The fix adds a transport-layer check that rejects frag_counter == 0, closing the defect for both decoder backends.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Low
Zephyr RTOS LoRaWAN FUOTA is a niche embedded IoT configuration
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 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
None
System Exposure· derived
Controlled
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

21
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +21
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.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy