Skip to main content

CVE-2026-18747: integer-overflow in zephyrproject zephyr

0
Medium
VulnerabilityCVE-2026-18747cvecve-2026-18747
Published: 09/28/2026 (09/28/2026, 23:25:26 UTC)
Source: CVE Database V5
Vendor/Project: zephyrproject
Product: 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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H

Affected software

zephyrproject

zephyr

Affected versions
>=1.11.0 <4.4.2
GitHub Actionsmore threats →cve
zephyr
pkg:github/zephyr
Affected versions
>=1.11.0 <4.4.2

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

AILast updated: 09/29/2026, 01:58:20 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses