# CVE-2026-104931: NULL pointer dereference in USB device\_next class handlers on zero-length control OUT requests

- **Severity:** MEDIUM 4.6
- **CVSS:** 4.6 (v3.1, CNA) `CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Physical; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **CWE:** CWE-476
- **Published:** 2026-11-30T23:33:15.257Z
- **Modified:** 2026-12-01T00:17:12.760Z

> **AI summary (AI-generated, claude-haiku-5-5):** A USB host can send a zero-length class OUT control request to crash or reset Zephyr devices by triggering NULL pointer dereferences in USB device\_next class handlers.

## Who should check

- Anyone running zephyrproject zephyr \>= 4.4.0, \< 4.5.0

## Description

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.

## Affected and fixed versions

- zephyrproject zephyr: \>= 4.4.0, \< 4.5.0 (cvelist)

## Technologies

Zephyr RTOS

## Mitigation

- Upgrade zephyr to 4.5.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-104931. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-104931.md
Affected: zephyrproject zephyr >= 4.4.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.5.0

Steps:
1. Search this machine and project for zephyrproject zephyr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-104931 being exploited?

There is no confirmed exploitation: CVE-2026-104931 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-104931?

Medium: CVSS 4.6 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-104931?

zephyrproject zephyr \>= 4.4.0, \< 4.5.0.

### Is there a fix for CVE-2026-104931?

Yes. Fixed in zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.

### How do I check if I'm affected by CVE-2026-104931?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-3hxv-w767-m933>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/7f88f321546bea8cd9f80f7b53303df364b91b85>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-104931>

HTML: <https://flawdb.com/CVE-2026-104931> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-104931>
