The LoRaWAN Fragmented Data Block Transport service (subsys/lorawan/services/fragtransport.c) does not validate the fragment counter in a received DATAFRAGMENT command before forwarding it to the configured decoder. In fragtransportpackagecallback() the value fragcounter = hdr->fragindexn & 0x3FFF is taken directly from the downlink payload and passed to the decoder, which derives an array index and flash offset as fragcounter - 1. DataFragment fragments are 1-indexed, so a fragcounter 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 uint16t 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 flashareawrite() bounds check. The in-tree low-memory decoder (fragdec()) is not corrupted: its out-of-range bit-array and flash accesses are caught by sysbitarray and flasharea 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.
{
"unresolved_ranges": [
{
"extracted_events": [
{
"introduced": "3.7.0"
},
{
"fixed": "4.5.0"
}
],
"source": "AFFECTED_FIELD"
}
],
"cna_assigner": "zephyr",
"cwe_ids": [
"CWE-787"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/12xxx/CVE-2026-12363.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-12363.json"
[
{
"target": {
"function": "frag_transport_package_callback",
"file": "subsys/lorawan/services/frag_transport.c"
},
"deprecated": false,
"source": "https://github.com/zephyrproject-rtos/zephyr/commit/452c704a28369236e555543c61a1894cd1a4afbb",
"id": "CVE-2026-12363-90a2cf5a",
"signature_version": "v1",
"digest": {
"length": 5417.0,
"function_hash": "97319000902993210716179108026057840453"
},
"signature_type": "Function"
},
{
"target": {
"file": "subsys/lorawan/services/frag_transport.c"
},
"deprecated": false,
"source": "https://github.com/zephyrproject-rtos/zephyr/commit/452c704a28369236e555543c61a1894cd1a4afbb",
"id": "CVE-2026-12363-accecc7d",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"112845152174828397077883111524002289420",
"181017200071947815983925304541590839893",
"311439266199497870871025372808093216087"
]
},
"signature_type": "Line"
}
]
"2026-08-17T04:19:19Z"