CVE-2026-12051
Last modified
CVE-2026-12051 is a medium-severity vulnerability rated 4.6/10 on the CVSS scale. 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. EPSS estimates a 0.17% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| zephyrproject | zephyr | >= 4.4.0, < 4.5.0 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-12051?
How severe is CVE-2026-12051?
How do I fix CVE-2026-12051?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-12045Read-only transaction bypass in the pgAdmin 4 AI Assistant a…8.8
- CVE-2026-12046Two state-mutating endpoints in pgAdmin 4's SQL Editor bluep…9.5
- CVE-2026-12047HTML injection in pgAdmin 4's cloud deployment module. The v…5.4
- CVE-2026-12048Stored cross-site scripting in pgAdmin 4's error-rendering a…5.4
- CVE-2026-12049Open redirect in pgAdmin 4's multi-factor authentication flo…6.1
- CVE-2026-12050SQL injection in pgAdmin 4's named restore point endpoint (P…8.8
- CVE-2026-12052The USB device-side CDC NCM class control-to-host handler us…5.2
- CVE-2026-12053GitLab has remediated an issue in GitLab EE affecting all ve…7.5
- CVE-2026-12057When the application executes the JavaScript script embedded…7.8
- CVE-2026-12058The connection confirmation pop-up of a specific feature in …5.3
- CVE-2026-12059The SSH service of CelloOS developed by Cellopoint has an Im…8.8
- CVE-2026-1206The Elementor Website Builder plugin for WordPress is vulner…4.3
Are you affected by CVE-2026-12051?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
