Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-12051— NULL pointer dereference in USB DFU device_next download handler (handle_download)

CVSS 4.6 · Medium EPSS 0.17% · P6

Possible ATT&CK Techniques 1AI

T1499 · Endpoint Denial of Service

Affected Version Matrix 1

VendorProductVersion RangeStatus
zephyrprojectzephyr4.4.0< 4.5.0affected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-12051

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
NULL pointer dereference in USB DFU device_next download handler (handle_download)
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
空指针解引用
Source: CVE Program / CVE List V5

Affected Products

VendorProductAffected VersionsCPESubscribe
zephyrprojectzephyr 4.4.0 ~ 4.5.0 -

II. Public POCs for CVE-2026-12051

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-12051

登录查看更多情报信息。

Patches & Fixes for CVE-2026-12051 (1)

Vendor Advisories for CVE-2026-12051 (1)

Same Patch Batch · zephyrproject · 2026-08-11 · 5 CVEs total

CVE-2026-118935.9 MEDIUMDouble free / use-after-free in Bouffalo Lab HCI driver send() error paths (hci_bflb)
CVE-2026-118945.9 MEDIUMDouble-free / use-after-free in Realtek BEE Bluetooth HCI driver `send()` error paths
CVE-2026-120525.2 MEDIUMOut-of-bounds write in USB CDC NCM control handler when host wLength is smaller than the r
CVE-2026-119853.6 LOWCross-thread FPU register leak on ARM when FPU enabled without register sharing

IV. Related Vulnerabilities

V. Comments for CVE-2026-12051

No comments yet


Leave a comment