CVE-2026-18747: integer-overflow in zephyrproject zephyr
CVE-2026-18747 is an integer underflow vulnerability in the Zephyr project's MCUmgr SMP-over-console transport. The flaw occurs when a malformed base64-encoded packet with a declared length of zero is processed, causing an underflow in buffer length calculation. This leads to an out-of-bounds read in the SMP request processing, potentially causing denial of service or memory disclosure. The vulnerability can be triggered by an unauthenticated 7-byte input line on the management console, which is often accessible via USB CDC-ACM ports. The issue affects Zephyr versions from 1.11.0 up to but not including 4.4.2. A fix is available that rejects packet lengths of two bytes or fewer to prevent the underflow.
AI Analysis
Technical Summary
The vulnerability in Zephyr's MCUmgr SMP-over-console transport arises from improper handling of packet length in base64-decoded frames. Specifically, mcumgr_serial_process_frag() subtracts 2 from a 16-bit buffer length without validating that the length is sufficient, causing an underflow when the declared length is 0 or 1. This results in the SMP layer receiving a buffer length inflated to about 65 KB, far exceeding the actual buffer size (default 384 bytes). Consequently, smp_process_request_packet() reads out-of-bounds memory, which can cause a denial of service or leak memory contents via the OS echo handler. The vulnerability requires only write access to the management console and no authentication. The fix implemented rejects packet lengths of two bytes or fewer, eliminating the underflow condition. The test-only loopback transport retains the pattern but is not externally exposed.
Potential Impact
An attacker with write access to the management console can trigger an out-of-bounds read by sending a crafted 7-byte frame, leading to denial of service via thread faults or potential memory disclosure through the OS echo handler. No authentication or prior session state is required. The impact is limited to confidentiality loss of memory contents and availability disruption. Integrity is not further compromised beyond the unauthenticated transport's existing limitations.
Mitigation Recommendations
A fix is available that rejects any declared packet length of two bytes or fewer in mcumgr_serial_extract_len(), preventing the buffer length underflow. Users should upgrade to Zephyr version 4.4.2 or later where this patch is applied. No additional mitigation is required as the vulnerability is addressed by this official fix.
CVE-2026-18747: integer-overflow in zephyrproject zephyr
Description
CVE-2026-18747 is an integer underflow vulnerability in the Zephyr project's MCUmgr SMP-over-console transport. The flaw occurs when a malformed base64-encoded packet with a declared length of zero is processed, causing an underflow in buffer length calculation. This leads to an out-of-bounds read in the SMP request processing, potentially causing denial of service or memory disclosure. The vulnerability can be triggered by an unauthenticated 7-byte input line on the management console, which is often accessible via USB CDC-ACM ports. The issue affects Zephyr versions from 1.11.0 up to but not including 4.4.2. A fix is available that rejects packet lengths of two bytes or fewer to prevent the underflow.
CVSS v3.1
Score 6.8medium
Affected software
zephyrproject
zephyr
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Zephyr's MCUmgr SMP-over-console transport arises from improper handling of packet length in base64-decoded frames. Specifically, mcumgr_serial_process_frag() subtracts 2 from a 16-bit buffer length without validating that the length is sufficient, causing an underflow when the declared length is 0 or 1. This results in the SMP layer receiving a buffer length inflated to about 65 KB, far exceeding the actual buffer size (default 384 bytes). Consequently, smp_process_request_packet() reads out-of-bounds memory, which can cause a denial of service or leak memory contents via the OS echo handler. The vulnerability requires only write access to the management console and no authentication. The fix implemented rejects packet lengths of two bytes or fewer, eliminating the underflow condition. The test-only loopback transport retains the pattern but is not externally exposed.
Potential Impact
An attacker with write access to the management console can trigger an out-of-bounds read by sending a crafted 7-byte frame, leading to denial of service via thread faults or potential memory disclosure through the OS echo handler. No authentication or prior session state is required. The impact is limited to confidentiality loss of memory contents and availability disruption. Integrity is not further compromised beyond the unauthenticated transport's existing limitations.
Mitigation Recommendations
A fix is available that rejects any declared packet length of two bytes or fewer in mcumgr_serial_extract_len(), preventing the buffer length underflow. Users should upgrade to Zephyr version 4.4.2 or later where this patch is applied. No additional mitigation is required as the vulnerability is addressed by this official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- zephyr
- Date Reserved
- 2026-08-03T21:22:12.879Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6abb1b0bf7a7c541069f1976
Added to database: 09/29/2026, 01:57:31 UTC
Last enriched: 09/29/2026, 01:58:20 UTC
Last updated: 09/29/2026, 04:22:42 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.