CVE-2026-12363
Received Received - Intake

Out-of-Bounds Write in LoRaMAC-node Fragment Transport Service

Vulnerability report for CVE-2026-12363, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-14

Last updated on: 2026-08-14

Assigner: Zephyr Project

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-14
Last Modified
2026-08-14
Generated
2026-08-14
AI Q&A
2026-08-14
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
zephyrproject zephyr From 3.7.0 (inc) to 4.4.2 (inc)
zephyrproject zephyr From 4.5.0 (inc)
zephyrproject zephyr to 452c704a28369236e555543c61a1894cd1a4afbb (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-787 The product writes data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves the LoRaWAN Fragmented Data Block Transport service in Zephyr RTOS. It fails to validate the fragment counter in received DATA_FRAGMENT commands. A fragment counter of 0 causes an underflow when calculating an array index, leading to an out-of-bounds write in the default decoder. This corrupts adjacent decoder state and disrupts firmware-update sessions.

Detection Guidance

This vulnerability requires monitoring LoRaWAN downlink traffic for DATA_FRAGMENT commands with a fragment counter of 0. Check logs for out-of-bounds write errors in the LoRaWAN decoder or firmware-update session failures. Use network sniffing tools like Wireshark with LoRaWAN protocol support to inspect downlink payloads for invalid fragment indices.

Impact Analysis

The impact is limited to denial of service for firmware-update sessions. It corrupts decoder state and may disrupt FUOTA sessions. Exploitation requires authenticated downlinks and an active fragmentation session, so it cannot be triggered by unauthenticated users.

Mitigation Strategies

Upgrade to Zephyr RTOS version 4.5.0 or later to apply the patch that rejects fragment index 0. If upgrading is not immediately possible, disable LoRaWAN fragmentation transport or restrict authenticated downlink access to trusted sources. Monitor for signs of decoder corruption or failed FUOTA sessions.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-12363. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart