PT-2026-107439 · Zephyrproject · Zephyr
CVE-2026-19186
·
Published
2026-10-07
·
Updated
2026-10-07
CVSS v3.1
8.1
High
| Vector | AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
ieee802154 decipher data frame() in subsys/net/l2/ieee802154/ieee802154 frame.c computed payload len = net pkt get len(pkt) - ll hdr len - authtag len without first checking that the received frame is at least ll hdr len + authtag len bytes long. All three variables are uint8 t, so a frame whose payload is shorter than the configured authentication tag makes the subtraction wrap around to a large value (up to 255).
The wrapped length is passed unchanged to ieee802154 decrypt auth() and on to the CCM operation as cipher pkt.in len/out buf max, with apkt->tag pointing at frame + ll hdr len + payload len. Because the receive buffer is allocated to the exact length of the frame received from the radio driver, the crypto layer then reads several hundred bytes past the end of the packet buffer and writes the same number of decrypted bytes back over it in place. The frame's authentication tag is only verified after this processing has taken place, so no key material, association or prior authentication is needed — a single crafted short frame from any device in radio range is sufficient. Frame validation in ieee802154 validate frame() does not prevent it: a data frame is accepted with a one-byte payload.
The result is an out-of-bounds read and an out-of-bounds write of up to roughly 240 bytes into the adjacent network-buffer pool, corrupting other packets or allocator metadata and typically faulting the target. The out-of-bounds content is not attacker-chosen (it is ciphertext XOR keystream over out-of-bounds memory) and the frame is dropped when tag verification fails, so the primary impact is memory corruption and denial of service rather than information disclosure.
Exposure is limited to configurations that enable the experimental CONFIG NET L2 IEEE802154 SECURITY option, select a crypto device via CONFIG NET L2 IEEE802154 SECURITY CRYPTO DEV NAME, and have established a security session with a level other than IEEE802154 SECURITY LEVEL NONE; with security disabled or at level NONE the tag length is zero and no underflow occurs. The fix rejects frames shorter than ll hdr len + authtag len before the subtraction, and adds the matching guard on the transmit side in ieee802154 create data frame().
Fix
Integer Underflow
Memory Corruption
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Zephyr