zephyrproject-rtos.zephyr is vulnerable to Out-of-Bounds Write
52
Medium Risk
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.
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.
zephyrproject-rtos.zephyr is vulnerable to Out-of-Bounds Write in versions 4.0.0 - 4.4.1.
Upgrade the zephyrproject-rtos.zephyr library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant