mcumgr_serial_process_frag() in subsys/mgmt/mcumgr/transport/src/serial_util.c calls net_buf_reset() on the result of smp_packet_alloc() bef
위협 신호 · CVSS · EPSS · KEV
이론적 심각도 점수
30일 내 악용 확률 예측
실측 악용 기록 없음
별도 긴급 패치 불필요 — 정기 시스템 업그레이드 주기에 맞춰 조치
CVSS 벡터 · 메트릭
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H약점 (CWE)
- CWE-476
NULL 포인터 역참조 — NULL 참조로 서비스 충돌(DoS) 유발.
상세 설명
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.
AI 심층 분석
공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.
영향받는 제품·버전
- zephyrproject zephyrother
- zephyrproject zephyrother
- zephyrproject zephyrother
- zephyrproject zephyrother
영향받는 구성 (CPE) 4
- zephyrproject zephyr 4.4.0cpe:2.3:o:zephyrproject:zephyr:4.4.0:-:*:*:*:*:*:*
- zephyrproject zephyr 4.4.0cpe:2.3:o:zephyrproject:zephyr:4.4.0:rc1:*:*:*:*:*:*
- zephyrproject zephyr 4.4.0cpe:2.3:o:zephyrproject:zephyr:4.4.0:rc2:*:*:*:*:*:*
- zephyrproject zephyr 4.4.0cpe:2.3:o:zephyrproject:zephyr:4.4.0:rc3:*:*:*:*:*:*
참고 자료 2
- https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-j64f-h3ww-f32cExploitPatchVendor Advisory
링크 내용 불러오는 중…