CVE-2026-104931: zephyrproject zephyr NULL Deref

CVE-2026-104931

NVDCVSS scored by vulnerabilities@zephyrproject.org

Vulnerability Summary

Since the control-transfer rework in the device_next USB device stack, usbd_handle_ctrl_xfer() in subsys/usb/device_next/usbd_ch9.c calls a class's control_to_dev handler with a NULL buffer when a host-to-device request has no data stage (wLength == 0). Several in-tree handlers dereference that buffer anyway: bt_hci_ctd() (Bluetooth HCI over USB), usbd_hid_ctd()/handle_set_report() (HID SET_REPORT), uvc_control_to_dev() (UVC SET_CUR, reaching uvc_set_vs_probe(), uvc_set_vs_commit() and uvc_set_vc_ctrl()), and lb_control_to_dev() (loopback test class). Each reads buf->data/buf->len from a NULL pointer.

The USB host controls every SETUP field. Any host the device is connected to can trigger the bug by sending one class or vendor OUT control request with wLength = 0 to the affected interface. No authentication is involved. HID devices are affected when the application registers a set_report callback, for example keyboards with LED output reports.

On platforms that trap NULL accesses (MPU/DWT null-pointer detection, unmapped low memory, MMU-based targets), the result is a fault that crashes or resets the device. On Cortex-M parts without null-pointer detection (the default), the handlers read a bogus pointer and length from the vector table near address 0 and pass them on, for example to the application's HID set_report callback, which is undefined behavior. The in-tree copies stay bounded by destination sizes, so the impact is denial of service.
Severity Level
MEDIUM(4.6)
Published Date
Dec 1, 2026
Last Modified
Dec 1, 2026
Exploitation Status
No confirmed exploitation yet
EPSS Score (30-Day)
0.31%Probability
Root Weakness (CWE)
The product dereferences a pointer that it expects to be valid but is NULL, typically causing a crash or exit.
CVSS v3.1 Base Metrics — Score 4.6 (MEDIUM)
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack VectorPhysical
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • zephyrproject zephyr >= 4.4.0 and < 4.5.0
Patched Versions
  • zephyrproject zephyr 4.5.0

What to do

Fix it during your normal patch cycle. No exploitation is confirmed yet.

  1. Check whether you run zephyrproject zephyr and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Dec 1, 2026Published
  • Dec 1, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new zephyrproject zephyr CVEsYou are reading CVE-2026-104931. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Dec 3, 2026 01:10 UTC