CVE-2026-12052

mediumpriority · track · 0EPSS 0.003 · 18 %ileEU
grimoire priorityP3 · Track
Exploitable?
—
no known exploitation
Likely / severe?
0.27% (18th) EPSS
CVSS 5.2 · medium
Is it mine?
1 products
Check your exposure
Who says so?
2 sources
cnnvd · enisa_euvd

EPSS · scored 2026-10-27

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.

01

cvss

Technical severity, 0–10. One row per scoring source.

5.2
010

base score 0–10 · higher = more severe · hover a vector to decode

v3.15.2mediumCVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:Hsecondary · ENISA EU
v3.15.2mediumCVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:Hsecondary · vulnerabilities@zephyrproject.orgexploitability 0.9 · impact 4.2
v3.14.8mediumCVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H/E:Usecondary · CVSS-BT (t0sche)
02

ssvc

A stakeholder decision — act, attend, or track — from exploitation and impact.

Trackcoordinatorcisa_ssvcUS
03

weaknesses

The CWE weakness classes this flaw belongs to.

04

affected products (1)

Products and version ranges known to be affected.

05

also known as (2)

Other names and identifiers for this entity.

06

sources

Which sources assert this record, and when.

published 2026-08-11modified 2026-10-23
07

references (7)

External citations — patches, advisories, analysis.

scry

Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.

Free scan