Intel

AIKIDO-2026-657228

zephyrproject-rtos.zephyr is vulnerable to Out-of-Bounds Write

Out-of-Bounds WriteCVE-2026-12052 Published Aug 13, 2026

52

Medium Risk

This Affects:

C++zephyrproject-rtos.zephyr
4.0.0 - 4.4.1
Fixed in 4.4.2
Are you affected? Scan for Free

TL;DR

The USB device CDC NCM control handler builds fixed-size responses for the GET_NTB_PARAMETERS and GET_NTB_INPUT_SIZE class requests and copies the whole structure into the control buffer while ignoring the host-supplied wLength. The control buffer is allocated with a capacity of exactly wLength bytes, and the copy helper only bounds itself with an assertion that is compiled out in production builds. A connected host that issues one of these standard requests with a wLength smaller than the response overflows the pool buffer by up to a few dozen bytes, corrupting adjacent allocations and crashing the USB stack. The fix clamps the copy length to the minimum of the structure size and wLength.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you build with the device_next USB stack and expose the CDC NCM class to the USB host.

Background info

zephyrproject-rtos.zephyr is vulnerable to Out-of-Bounds Write in versions 4.0.0 - 4.4.1.

How to fix this

Upgrade the zephyrproject-rtos.zephyr library to the patch version.