CVE-2026-104931: Zephyr USB device_next NULL pointer dereference in control handlers

CVE-2026-104931 · Severity: medium · CVSS 4.6 · Published 2026-12-01

Zephyr RTOS's USB device stack does not validate that class handlers receive a valid buffer when processing control requests with no data stage. An attacker with physical access or network connectivity to a USB device running Zephyr can send a malformed control request to trigger a NULL pointer dereference, causing the device to crash or reset, resulting in denial of service.

Technologies: Zephyr Project Zephyr RTOS. Vendors: Zephyr Project.

Quick answers

Is CVE-2026-104931 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-104931 being exploited in the wild.
How severe is CVE-2026-104931?
Medium severity, with a CVSS score of 4.6, published 1 December 2026.
Which products and versions are affected?
Zephyr Project Zephyr RTOS device_next USB stack since control-transfer rework.
Is there a fix for CVE-2026-104931?
No fixed version is recorded yet. Upgrade to a patched version of Zephyr; the fix explicitly checks the wLength field in affected handlers and rejects control transfers with wLength=0 that require a data stage.</anigation> <parameter name="timeline">[{"kind":"disclosed","at":"2026-12-01"}] If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-104931 attacked?
It is attacked over the network or from the adjacent network, in an operating system.
Am I affected by CVE-2026-104931?
Check whether you run Zephyr Project Zephyr RTOS at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

Upgrade to a patched version of Zephyr; the fix explicitly checks the wLength field in affected handlers and rejects control transfers with wLength=0 that require a data stage.</anigation> <parameter name="timeline">[{"kind":"disclosed","at":"2026-12-01"}]

Technical details

The vulnerability exists in usbd_handle_ctrl_xfer() within subsys/usb/device_next/usbd_ch9.c, which passes a NULL buffer to class control_to_dev handlers for host-to-device control requests with wLength=0. Multiple handlers (bt_hci_ctd, usbd_hid_ctd/handle_set_report, uvc_control_to_dev, lb_control_to_dev) dereference this NULL pointer without validation, reading from the vector table near address 0. On platforms without NULL-pointer detection (default Cortex-M), this leads to undefined behavior; on platforms with MPU/DWT or MMU, it triggers a fault causing device crash or reset.

Affected products

  • Zephyr Project Zephyr RTOS device_next USB stack since control-transfer rework

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.