CVE-2026-12052
Last modified
CVE-2026-12052 is a medium-severity vulnerability rated 5.2/10 on the CVSS scale. The USB device-side CDC NCM class control-to-host handler usbd_cdc_ncm_cth in subsys/usb/device_next/class/usbd_cdc_ncm.c builds a fixed-size response for the GET_NTB_PARAMETERS (28-byte struct ntb_parameters) and GET_NTB_INPUT_SIZE (8-byte struct ntb_input_size) class requests and copies the whole structure into the control DATA IN buffer with net_buf_add_mem(buf, ..., sizeof(...)), ignoring the host-supplied wLength. The control DATA IN buffer is allocated by the USB stack with a capacity of exactly wLength bytes (usbd_ep_ctrl_data_in_alloc -> udc_ctrl_data_alloc -> net_buf_alloc_len(&udc_ep_pool, wLength); no round-up is applied for the IN endpoint). Because net_buf_add_mem/net_buf_simple_add only bounds the copy with an __ASSERT_NO_MSG, which is compiled out in production builds, a host that issues one of these standard CDC NCM control requests with a wLength smaller than the response structure (e.g. EPSS estimates a 0.27% chance of exploitation in the next 30 days.
Description
The USB device-side CDC NCM class control-to-host handler usbd_cdc_ncm_cth in subsys/usb/device_next/class/usbd_cdc_ncm.c builds a fixed-size response for the GET_NTB_PARAMETERS (28-byte struct ntb_parameters) and GET_NTB_INPUT_SIZE (8-byte struct ntb_input_size) class requests and copies the whole structure into the control DATA IN buffer with net_buf_add_mem(buf, ..., sizeof(...)), ignoring the host-supplied wLength. The control DATA IN buffer is allocated by the USB stack with a capacity of exactly wLength bytes (usbd_ep_ctrl_data_in_alloc -> udc_ctrl_data_alloc -> net_buf_alloc_len(&udc_ep_pool, wLength); no round-up is applied for the IN endpoint). Because net_buf_add_mem/net_buf_simple_add only bounds the copy with an __ASSERT_NO_MSG, which is compiled out in production builds, a host that issues one of these standard CDC NCM control requests with a wLength smaller than the response structure (e.g. wLength = 1) causes the handler to memcpy up to 27 bytes past the end of the allocated pool buffer. The request fields come straight from the USB SETUP packet, so any host (or USB interposer) the Zephyr device enumerates against can trigger the overflow with no authentication once an image built with the device_next USB stack and the CDC NCM class is connected. The out-of-bounds write corrupts adjacent allocations and metadata in the shared udc_ep_pool, primarily causing memory corruption and denial of service of the USB stack; the overflow length is bounded (<= 27 bytes) and the written content is fixed device constants, and the bug reads nothing back so there is no information disclosure. The fix clamps the copy with MIN(sizeof(...), setup->wLength), matching the existing CDC ACM handler.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| zephyrproject | zephyr | >= 4.0.0, < 4.3.2; >= 4.4.0, < 4.4.2 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-12052?
How severe is CVE-2026-12052?
How do I fix CVE-2026-12052?
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-12051The USB DFU class implementation in Zephyr's new (experiment…4.6
- CVE-2026-120512The Form Maker by 10Web – Mobile-Friendly Drag & Drop Contac…7.2
- CVE-2026-120513The Everest Forms – Contact Form, Payment Form, Quiz, Survey…8.2
- CVE-2026-120514The Zephyr Project Manager plugin for WordPress is vulnerabl…5.4
- CVE-2026-120515The SEOPress – AI SEO Plugin & On-site SEO plugin for WordPr…6.4
- CVE-2026-120518The BuddyPress XProfile Image Field plugin for WordPress is …9.1
- CVE-2026-120520The Greenshift – animation and page builder blocks plugin fo…5.3
- CVE-2026-120522The Cloud Storage Manager for Fluent Forms – Google Drive, D…9.8
- CVE-2026-120524The News Kit Addons For Elementor plugin for WordPress is vu…6.4
- CVE-2026-12053GitLab has remediated an issue in GitLab EE affecting all ve…7.5
- CVE-2026-120530The WebToffee WP Backup and Migration plugin for WordPress i…5.7
- CVE-2026-120531The Subscribe2 – Form, Email Subscribers & Newsletters plugi…7.2
Are you affected by CVE-2026-12052?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
