Home › CVE › Vulnerabilities
CVE-2026-104931 — zephyrproject zephyr
One of 4 zephyrproject zephyr vulnerabilities published together by NVD: our article covers all of them.
VulnerabilitiesSummary
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 breakdown
Medium · 4.6
An attacker without an account can exploit this with physical access, without any user action.
- Attack from
- physical access to the device
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on availability, none on confidentiality and integrity
Weakness
- CWE-476: NULL Pointer Dereference
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| zephyrproject zephyr | ≥ 4.4.0, < 4.5.0 | 4.5.0 |
References by type
Vendor advisories
Patches and fixed releases
Affected
- zephyrproject zephyr
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-104931?
Since the control-transfer rework in the devicenext USB device stack, usbdhandlectrlxfer() in subsys/usb/devicenext/usbdch9.c calls a class's controltodev handler with a NULL buffer when a host-to-device request has no data stage (wLength == 0). Weakness type: NULL Pointer Dereference (CWE-476).
How severe is CVE-2026-104931?
CVE-2026-104931 has a CVSS 3.1 base score of 4.6 (medium), from the CNA (zephyrproject.org). An attacker without an account can exploit this with physical access, without any user action.
Is CVE-2026-104931 being exploited?
Not as far as is known: CVE-2026-104931 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026. EPSS estimates a 0.3% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-104931?
zephyrproject zephyr ≥ 4.4.0, < 4.5.0 (fixed in 4.5.0).
How do I fix CVE-2026-104931?
Update to a fixed release: zephyrproject zephyr 4.5.0.