{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-12051","published":"2026-08-11T06:17:12.620000Z","last_modified":"2026-10-23T19:10:00.167000Z","status":"Awaiting Analysis","cvss":{"version":"3.1","score":4.6,"severity":"MEDIUM","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"vulnerabilities@zephyrproject.org","primary":false},"auth":true,"cwes":["CWE-476"],"cpes":[],"cpes_truncated":false,"vendors":["zephyrproject"],"products":["zephyrproject/zephyr"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":28,"links":{"html_es":"/es/cve/CVE-2026-12051/","html_en":"/en/cve/CVE-2026-12051/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-12051","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-12051"},"untrusted":{"vendor_name":"zephyrproject","product_name":"zephyr","desc_en":"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.\n\nThe 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.\n\nThe 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.","affected":[{"untrusted_vendor":"zephyrproject","untrusted_product":"zephyr","versions":[]}],"references":[{"url":"https://github.com/zephyrproject-rtos/zephyr/commit/552ca371257597b71490482d5cc597157ea60f12","tags":[]},{"url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-vhvq-q6rw-jvm4","tags":[]}]}}