6.2medium
NULL-pointer dereference in MCUmgr serial/console SMP transport on buffer-pool exhaustion
- Severity
- 6.2medium CVSS:3.1 by zephyr
- Exploit likelihood
- 0.11% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- zephyr
Description
mcumgr_serial_process_frag() in subsys/mgmt/mcumgr/transport/src/serial_util.c calls net_buf_reset() on the result of smp_packet_alloc() before checking it for NULL. smp_packet_alloc() uses net_buf_alloc(K_NO_WAIT) against the shared MCUmgr packet pool (CONFIG_MCUMGR_TRANSPORT_NETBUF_COUNT, default 4), which returns NULL when the pool is exhausted. In default builds the __ASSERT_NO_MSG in net_buf_reset is a no-op, so net_buf_simple_reset writes through the NULL pointer (buf->len = 0; buf->data = buf->__buf), causing a fault/crash. The fragment data reaches this code from attacker-controlled bytes on the MCUmgr serial/UART/shell-console transports (smp_uart.c, smp_raw_uart.c, smp_shell.c), and a fresh buffer is allocated at the start of essentially every new packet. An attacker on the serial/console link can flood the transport to drive the 4-entry buffer pool to exhaustion and induce the NULL dereference, crashing the device (denial of service). The defect was introduced after the original MCUmgr rework and shipped in Zephyr v4.4.0. The fix moves the NULL check ahead of net_buf_reset.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| zephyr | from 4.4.0 before 4.4.1 | CVE List |
| zephyrproject zephyr | 4.4.0 | NVD |
All scores
| zephyr | 6.2medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
mcumgr_serial_process_frag() in subsys/mgmt/mcumgr/transport/src/serial_util.c calls net_buf_reset() on the result of smp_packet_alloc() before checking it for NULL. smp_packet_alloc() uses net_buf_alloc(K_NO_WAIT) against the shared MCUmgr packet pool (CONFIG_MCUMGR_TRANSPORT_NETBUF_COUNT, default 4), which returns NULL when the pool is exhausted. In default builds the __ASSERT_NO_MSG in net_buf_reset is a no-op, so net_buf_simple_reset writes through the NULL pointer (buf->len = 0; buf->data = buf->__buf), causing a fault/crash. The fragment data reaches this code from attacker-controlled bytes on the MCUmgr serial/UART/shell-console transports (smp_uart.c, smp_raw_uart.c, smp_shell.c), and a fresh buffer is allocated at the start of essentially every new packet. An attacker on the serial/console link can flood the transport to drive the 4-entry buffer pool to exhaustion and induce the NULL dereference, crashing the device (denial of service). The defect was introduced after the original MCUmgr rework and shipped in Zephyr v4.4.0. The fix moves the NULL check ahead of net_buf_reset.
NVD (es)
“mcumgr_serial_process_frag()” en “subsys/mgmt/mcumgr/transport/src/serial_util.c” llama a “net_buf_reset()” sobre el resultado de “smp_packet_alloc()” antes de comprobar si es “NULL”. “smp_packet_alloc()” utiliza “net_buf_alloc(K_NO_WAIT)” contra el pool de paquetes compartido de MCUmgr (“CONFIG_MCUMGR_TRANSPORT_NETBUF_COUNT”, por defecto 4), el cual devuelve “NULL” cuando el pool está agotado. En las compilaciones por defecto, el “__ASSERT_NO_MSG” en “net_buf_reset” es una operación nula, por lo que “net_buf_simple_reset” escribe a través del puntero “NULL” (“buf -> len = 0; buf -> data = buf -> __buf”), causando un fallo/cierre inesperado. Los datos del fragmento llegan a este código desde bytes controlados por el atacante en los transportes serial/UART/shell-console de MCUmgr (“smp_uart.c”, “smp_raw_uart.c”, “smp_shell.c”), y se asigna un nuevo búfer al inicio de esencialmente cada nuevo paquete. Un atacante en el enlace serial/consola puede inundar el transporte para llevar el pool de búferes de 4 entradas al agotamiento e inducir la desreferencia “NULL”, bloqueando el dispositivo (denegación de servicio). El defecto fue introducido después de la reelaboración original de MCUmgr y se envió en Zephyr v4.4.0. La solución mueve la comprobación de “NULL” antes de “net_buf_reset”.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-10648 changed 2026-11-04 | CVE Terms of Use |
| NVD | CVE-2026-10648 changed 2026-10-25 | Public domain |