Skip to content

zephyr

NULL pointer dereference in USB device_next class handlers on zero-length control OUT requests

CVE-2026-104931Published 30 Nov 2026, 23:33 UTC

Real-world risk

0.3/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

4.6

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from zephyr)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
zephyrCommon>= 4.4.0, < 4.5.04.5.0

What to do

Update to a fixed version: 4.5.0.

Why this score

FactorValueEvidence×
ImpactDenial of serviceCrash or resource exhaustion onlyFrom the CVSS vector0.40
Attacker positionPhysicalMust touch the deviceFrom the CVSS vector0.10
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.3% chance of exploitation in 30 days (percentile 26), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.100
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.4 × prerequisites 0.1 × threat 0.850.340
  4. Rounded to one decimal between 0.1 and 100.3

How the score works

Exploitation and evidence timeline

  1. 30 Nov 2026 Published
  2. 3 Dec 2026 Risk 0.3 (cvss fallback)

Weakness

CWE-476

References

Get alerts for zephyr

Free email or text alerts when a vulnerability in zephyr reaches risk 8 or higher. Nothing else.

CVE-2026-104931: NULL pointer dereference in USB device_next class handlers on zero-length control OUT requests · CVE Feed