Skip to main content
Menu
CVEs

Zephyr denial of service in USB device class handlers

CVE-2026-104931Published November 30, 2026, updated

4.6MediumCNA
Exploited
No known exploitation
Fix
Fixed in 4.5.0
Who is exposed
Not reported

Summary

Zephyr's device_next USB stack dereferences a NULL pointer when a connected host sends a class or vendor control request with no data stage, which can crash or reset the device. An attacker with physical access to the USB port can trigger this without logging in or any user action, causing denial of service.

Written by a model

Original 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.

What to do

Upgrade to a fixed version: 4.5.0.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

Check whether my systems are affected by CVE-2026-104931 (NULL pointer dereference in USB device_next class handlers on zero-length control OUT requests), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-104931 (entry last updated 2026-11-30):
Affected:
- zephyrproject zephyr: from 4.4.0, fixed in 4.5.0
Fixed versions: 4.5.0.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-104931 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-104931 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/zephyrproject-rtos/zephyr/commit/7f88f321546bea8cd9f80f7b53303df364b91b85
- https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-3hxv-w767-m933
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-104931
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-104931"}.

Affected versions

cve.now Index

5Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure?/25Unknown. No advisory context yet
  • Reach?/20Unknown. No tracked technology or package matched
  • Severity4.6/10CVSS 4.6
  • No patch0/5No signal

What would change the score

  • Would score about 60 if added to CISA KEV
  • Would score about 55 if CISA's SSVC rates exploitation active
  • Would score about 27 if advisories confirm default setups are exposed

Timeline

  1. CVE published
  2. First seen by cve.now

Evidence 4

KindSource
Vendor advisory 1Establishes: Affected and fixed versions.
AdvisoryGitHub · zephyrproject-rtos/zephyr · Advisory GHSA-3hxv-w767-m933
CVE record 2Establishes: The identifier and description.
RecordCVE List · CVE-2026-104931
RecordNVD · CVE-2026-104931
Other links 1
PatchGitHub · zephyrproject-rtos/zephyr · Commit 7f88f321

Questions about CVE-2026-104931

Is CVE-2026-104931 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: cve.now feed data

Which versions are affected by CVE-2026-104931?

zephyr: from 4.4.0 before 4.5.0.

Source: cve.now feed data

How do I fix CVE-2026-104931?

Upgrade to a fixed version: 4.5.0.

Source: cve.now feed data

No corrections so far. Something wrong on this page? Report an error.