Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-18415 Overview
CVE-2026-18415 is an out-of-bounds write [CWE-787] in the Zephyr RTOS IEEE 802.15.4 Layer 2 transmit path. The ieee802154_send() function in subsys/net/l2/ieee802154/ieee802154.c copies outbound packet data into a fixed 125-byte tx_frame_buf_pool buffer without validating length. When CONFIG_NET_L2_IEEE802154_FRAGMENT is enabled (the default when CONFIG_NET_6LO is set), the unfragmented branch calls net_buf_add_mem() guarded only by an assertion that compiles out without CONFIG_ASSERT.
Critical Impact
An unprivileged application thread can drive a supervisor-mode out-of-bounds write of attacker-chosen bytes past the 125-byte transmit buffer, corrupting adjacent kernel memory.
Affected Products
- Zephyr RTOS builds with CONFIG_NET_L2_IEEE802154 enabled
- Configurations using CONFIG_NET_L2_IEEE802154_FRAGMENT (default with CONFIG_NET_6LO)
- CONFIG_USERSPACE builds exposing zsock_socket() and zsock_sendto() syscalls
Discovery Timeline
- 2026-09-28 - CVE-2026-18415 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-18415
Vulnerability Analysis
The defect lives in the transmit path for 802.15.4 frames. ieee802154_send() writes each outgoing packet into tx_frame_buf_pool, a fixed pool sized to IEEE802154_MTU (125 bytes). On the branch taken when 6LoWPAN fragmentation is not required, the code invokes net_buf_add_mem(frame_buf, pkt_buf->data, pkt_buf->len) without checking whether the source length fits the destination tailroom.
The only guard was __ASSERT_NO_MSG() inside net_buf_simple_add(). Production builds without CONFIG_ASSERT compile the check out entirely, allowing an oversized copy to silently overrun the buffer. With the default CONFIG_NET_BUF_FIXED_DATA_SIZE of 128 bytes, the overrun is bounded to roughly ll_hdr_len + 3 bytes. With CONFIG_NET_BUF_VARIABLE_DATA_SIZE, a single storage buffer can reach CONFIG_NET_PKT_BUF_TX_DATA_POOL_SIZE, allowing far larger overruns.
Root Cause
The transmit path assumed upstream code enforced MTU bounds. For NET_AF_INET6 traffic, ieee802154_6lo_encode_pkt() compares total packet length against IEEE802154_MTU and diverts oversized packets to the fragmentation path. No equivalent check exists elsewhere: net_context_sendto(), net_if_tx(), and pkt_buffer_length() never clamp allocations for this L2, so the unfragmented branch trusts data it should validate.
Attack Vector
The bug is not reachable from radio input. It is reachable through NET_AF_PACKET sockets bound to an 802.15.4 interface. NET_SOCK_RAW skips the 6LoWPAN encoder entirely, and NET_SOCK_DGRAM returns early on the address-family test. Either socket type reaches ieee802154_send() with an oversized packet and no length validation. In CONFIG_USERSPACE builds, an unprivileged thread can trigger the write through zsock_sendto().
// Patch: subsys/net/l2/ieee802154/ieee802154.c
// Adds tailroom-checked copy helper returning -EMSGSIZE
static int copy_pkt_to_frame(struct net_buf *frame_buf, const struct net_buf *pkt_buf,
size_t pkt_len, uint8_t authtag_len)
{
size_t tailroom = net_buf_tailroom(frame_buf);
size_t copied;
if (authtag_len > tailroom || pkt_len > tailroom - authtag_len) {
return -EMSGSIZE;
}
copied = net_buf_linearize(net_buf_tail(frame_buf), tailroom - authtag_len, pkt_buf, 0,
pkt_len);
if (copied != pkt_len) {
NET_ERR("Failed to copy packet to frame (%zu/%zu)", copied, pkt_len);
return -EINVAL;
}
net_buf_add(frame_buf, copied);
return 0;
}
Source: Zephyr commit 3d4c6177
Detection Methods for CVE-2026-18415
Indicators of Compromise
- Unexpected kernel panics or memory faults originating in 802.15.4 transmit paths
- Application threads issuing sendto() calls with payload sizes larger than 125 bytes on AF_PACKET sockets bound to 802.15.4 interfaces
- Corruption of memory objects allocated adjacent to tx_frame_buf_pool
Detection Strategies
- Static analysis of Zephyr build configurations to identify images with CONFIG_NET_L2_IEEE802154 and CONFIG_NET_L2_IEEE802154_FRAGMENT enabled without the upstream patch applied
- Runtime instrumentation of net_buf_add_mem() call sites to log source length versus destination tailroom during QA
- Fuzzing AF_PACKET sockets on 802.15.4 interfaces with SOCK_RAW and SOCK_DGRAM payloads exceeding IEEE802154_MTU
Monitoring Recommendations
- Enable CONFIG_ASSERT in test builds so __ASSERT_NO_MSG() inside net_buf_simple_add() traps oversized copies before shipping
- Capture crash logs and reboot telemetry from fleet devices running 802.15.4 networking stacks
- Audit which application components hold NET_RAW capability or open AF_PACKET sockets on 802.15.4 interfaces
How to Mitigate CVE-2026-18415
Immediate Actions Required
- Apply the upstream Zephyr patch from commit 3d4c6177d2dbd77d12d9b14cd75a00cdbd826227 and rebuild affected firmware images
- Restrict which application threads can create AF_PACKET sockets bound to 802.15.4 interfaces, especially under CONFIG_USERSPACE
- Rebuild and redeploy any device firmware that exposes zsock_socket() and zsock_sendto() syscalls to untrusted code
Patch Information
The fix validates ll_hdr_len + net_pkt_get_len(pkt) + authtag_len against IEEE802154_MTU before any copy and introduces the copy_pkt_to_frame() helper, which returns -EMSGSIZE on overflow. The same change linearizes the full net_buf chain into a single MAC frame so packet storage boundaries no longer align with frame boundaries on the wire. See the Zephyr Security Advisory GHSA-j76j-jrjc-xgvp for the full advisory.
Workarounds
- Disable CONFIG_NET_L2_IEEE802154_FRAGMENT if 6LoWPAN fragmentation is not required by the deployment
- Remove AF_PACKET socket access from untrusted application code paths
- Enable CONFIG_ASSERT in production temporarily so oversized copies fault deterministically instead of corrupting memory
# Verify patched Zephyr source contains the copy_pkt_to_frame() helper
grep -n "copy_pkt_to_frame" subsys/net/l2/ieee802154/ieee802154.c
# Confirm the commit is present in your tree
git log --oneline | grep 3d4c6177
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

