zephyrproject-rtos.zephyr is vulnerable to Denial of Service (DoS)
46
Medium Risk
handle_download() in the experimental device_next USB DFU class (subsys/usb/device_next/class/usbd_dfu.c) computes MIN(setup->wLength, buf->len) and passes buf->data to the image write callback without checking that buf is non-NULL. A USB host that completes a download with a zero-length DFU_DNLOAD (no Data OUT stage) reaches the handler with a NULL buffer after the device is in DFU_DNLOAD_IDLE, causing a NULL+offset read and a fatal CPU fault. The fix guards the buffer access so a zero-length, NULL-data transfer is passed to the callback instead of crashing.
You are affected if you are using a version that falls within the vulnerable range and enable USB DFU download support in the experimental device_next USB device stack with a registered image.
zephyrproject-rtos.zephyr is vulnerable to Denial of Service (DoS) in versions 4.4.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
ISO 42001Compliant© All Intel data is openly available and commercially licensed.