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

Source: https://junglewise.ai/threats/cve-2026-104931-since-the-control-transfer-rework-in-the-device-next-usb-device  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-12-01. Updated: 2026-12-01  
License: CC BY 4.0 with a link back

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](https://junglewise.ai/threats/technologies/zephyr). Vendors: [Zephyr Project](https://junglewise.ai/threats/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

- [https://github.com/zephyrproject-rtos/zephyr](https://github.com/zephyrproject-rtos/zephyr)
- [https://github.com/zephyrproject-rtos/zephyr/commit/7f88f321546bea8cd9f80f7b53303df364b91b85](https://github.com/zephyrproject-rtos/zephyr/commit/7f88f321546bea8cd9f80f7b53303df364b91b85)

## Related threats

- [Zephyr SOCKS5 client use-after-free in stack callbacks](https://junglewise.ai/threats/cve-2026-95821-the-socks5-client-in-subsys-net-lib-socks-socks-c-passes-the)
- [Zephyr STM32 Ethernet driver denial of service after packet drop](https://junglewise.ai/threats/cve-2026-104930-the-stm32-ethernet-driver-built-with-config-eth-stm32-hal-api-v2)
- [Zephyr RTOS use-after-free in IPv6 packet handling](https://junglewise.ai/threats/cve-2026-104379-net-if-try-send-data-in-subsys-net-ip-net-if-c-reads-net-pkt)
- [Zephyr kernel object core framework use-after-free memory corruption](https://junglewise.ai/threats/cve-2026-104376-the-kernel-object-core-framework-kernel-obj-core-c-linked-every)
- [Zephyr IPv4/IPv6/6LoWPAN fragment reassembly race condition](https://junglewise.ai/threats/cve-2026-102961-zephyr-s-ipv6-ipv4-and-ieee-802-15-4-6lowpan-fragment-reassembly)
