AUGUST 15, 2026
Live Feed
Back to database
Case File

CVE-2026-12051

MEDIUM · CVSS 4.6 EPSS 0.17% Public Exploit

Source: NVD + CISA KEV + EPSS · Published 2026-08-11 · Last synced 2026-08-15

CyberRota Analysis

AI-Generated

The USB DFU class implementation in Zephyr's experimental device_next USB stack is vulnerable to a NULL pointer dereference in the handle_download() function, which can be exploited during a DFU_DNLOAD request that lacks a Data OUT stage. This vulnerability can lead to a denial of service, causing the device to crash or reset when a zero-length download is processed. Organizations utilizing Zephyr's USB DFU functionality should prioritize addressing this issue to maintain device availability and prevent potential disruptions from malicious USB hosts.

Public Exploit Signal

A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.

Note: these links are listed for security research and verification purposes only.

CVE
CVE-2026-12051
Severity
MEDIUM
CVSS
4.6
EPSS
0.17%

Original NVD Description

The USB DFU class implementation in Zephyr's new (experimental) device_next USB device stack contains a NULL pointer dereference in handle_download() (subsys/usb/device_next/class/usbd_dfu.c). The handler computes MIN(setup->wLength, buf->len) and passes buf->data to the image write callback without checking that the buf net_buf pointer is non-NULL. The handler is reached over the USB control endpoint, driven by the USB host. For a DFU_DNLOAD (download) request with no Data OUT stage — notably the zero-length terminating download that the DFU protocol uses to end a firmware transfer — the USB core invokes the class handler with a NULL buffer. After the device has been advanced to the DFU_DNLOAD_IDLE state (by sending one valid download block and a GET_STATUS), a zero-length DFU_DNLOAD reaches handle_download() with buf == NULL, dereferencing it. The result is a NULL+offset read that triggers a fatal CPU fault, i.e. a denial of service (device crash/reset). The attacker is whatever controls the USB host the device is attached to; DFU download support must be enabled with a registered image. There is no memory corruption or information disclosure — impact is limited to availability. The fix adds an explicit if (buf != NULL) guard so the callback receives a zero-length, NULL-data transfer instead of crashing.