Skip to main content

Zephyr RTOS CVE-2026-12522

| EUVDEUVD-2026-63075 HIGH
Out-of-bounds Write (CWE-787)
2026-08-19 zephyr
8.8
CVSS 3.1 · Vendor: zephyr
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Deploy rogue LTE base station in RF range
  2. Delivery
    Device initiates normal LTE attach
  3. Exploit
    Device auto-issues AT+CGCONTRDP=1 query
  4. Install
    Attacker returns crafted response with overlong address field
  5. C2
    on_cmd_atcmdinfo_ipaddr() copies field without bounds check
  6. Execute
    Stack buffer overflows in supervisor context
  7. Impact
    Crash or control-flow hijack achieved

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the ability to deliver a crafted +CGCONTRDP AT command response to the target device - achievable via a rogue LTE base station within RF range of the device, or via compromise of a network element in the upstream cellular carrier path. No device-side credentials, operator privileges, or user interaction are required; the device autonomously issues AT+CGCONTRDP=1 during every LTE network attach and unconditionally parses whatever the network returns. Limiting factors: the attacker must be co-located within RF range to operate a rogue base station (AV:A per CVSS), or must have compromised carrier infrastructure, which significantly raises the operational bar. The vulnerability is exclusive to Zephyr builds that include the HL7800 driver; devices using other modem drivers or not using the HL7800 chipset are unaffected. Devices with Zephyr stack canaries enabled (CONFIG_STACK_CANARIES) are more likely to trap the corruption as a detectable fault rather than silently allowing control-flow redirection, limiting the worst-case impact for those configurations.

Impact

The CVSS 8.8 score with vector AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H is well-grounded: adjacent-network attack vector accurately reflects the requirement to influence cellular network responses (via rogue base station or carrier-side compromise), while PR:N and UI:N are confirmed by the description - the device autonomously triggers the vulnerable code path on every LTE attach. No EPSS data was provided in the input, and the vulnerability is not listed in the CISA KEV catalog, meaning real-world exploitation probability is currently unconfirmed; however, the adjacent-network vector is more accessible than it might appear in IoT field deployments, since IMSI-catcher-style rogue base station equipment is commercially available. The most significant risk amplifier is the supervisor-context execution context: on Zephyr targets without stack canaries (CONFIG_STACK_CANARIES) or memory protection (MPU/MMU), a controlled overflow can directly redirect execution rather than just crash the device. The most significant limiting factor is that the attacker must be within RF range or have carrier-network access - internet-scale mass exploitation is not feasible. No public exploit code has been identified at time of analysis, which further lowers immediate exploitation likelihood compared to the raw CVSS score.

Exploit ScenarioDerived

An attacker operates a software-defined radio configured as a rogue LTE base station within RF range of a Zephyr-based IoT device that uses the HL7800 modem. When the device performs a normal LTE attach and automatically issues AT+CGCONTRDP=1, the attacker returns a crafted +CGCONTRDP response containing an address field padded to well over 64 bytes via manipulated delimiter positions. The unbounded strncpy() call overwrites temp_addr_str and adjacent supervisor-context stack memory; on devices without stack canaries, this can overwrite the return address and redirect execution to attacker-controlled code running in privileged mode.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 19, 2026

Stack buffer overflow in Zephyr RTOS's HL7800 cellular modem driver exposes cellular-attached embedded devices to remote stack corruption during normal LTE network attach, with no device-side privileges or user interaction required. The flaw in on_cmd_atcmdinfo_ipaddr() allows a malicious or impersonated cellular network - for example via a rogue base station - to supply a crafted +CGCONTRDP response whose address fields, whose lengths are derived from attacker-controlled delimiter positions, are copied without bounds checking into fixed 64-byte and 16-byte stack buffers in supervisor context. Outcomes range from a remotely triggerable crash to potential control-flow hijacking on targets without stack canaries; no public exploit has been identified at time of analysis, and an upstream fix commit is available from the Zephyr project.

RemediationAI

Apply the upstream patch at commit a1cbced64181bc0bdf95e1fd7118f2bb70cf679b (https://github.com/zephyrproject-rtos/zephyr/commit/a1cbced64181bc0bdf95e1fd7118f2bb70cf679b), which adds explicit bounds checks before every strncpy() call in on_cmd_atcmdinfo_ipaddr(), rejecting address, subnet, gateway, and DNS fields whose lengths meet or exceed the respective destination buffer sizes. A specific released Zephyr version tag incorporating this fix is not independently confirmed from available data - integrators should build from a commit at or after the fix commit and monitor the advisory at https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-hchc-6489-w66v for an official release designation. As a compensating control prior to patching, enabling Zephyr's CONFIG_STACK_CANARIES or CONFIG_STACK_SENTINEL Kconfig options will detect stack corruption and trigger a controlled fault rather than allowing silent control-flow hijacking, though this does not prevent the crash itself. Restricting HL7800-equipped devices to controlled RF environments where rogue base station attacks are impractical (e.g., shielded facilities or private LTE networks with mutual authentication) reduces exposure but is operationally costly and does not eliminate the underlying flaw.

Affected VersionsENISA

Zephyr 2.4.0 <4.4.2

Affected Packages

euvd zephyr fix: 4.4.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The HL7800 is a Sierra Wireless (now Semtech) LTE-M/NB-IoT cellular modem integrated into Zephyr RTOS via the vendor-standalone driver at drivers/modem/vendor_standalone/hl7800.c (CPE: cpe:2.3:a:zephyrproject:zephyr:*:*:*:*:*:*:*:*). During network attach, the modem issues AT+CGCONTRDP=1 and parses the +CGCONTRDP response, which carries dynamically assigned PDP-context parameters: local IP address, subnet mask, gateway, and DNS servers. The response is first linearized into a 256-byte stack buffer, then individual address fields are extracted by computing field lengths from comma and period delimiter positions within the raw network-supplied data. These computed lengths are passed without bounding directly to strncpy() targeting a fixed 64-byte stack buffer (temp_addr_str) and a 16-byte field (iface_ctx.dns_v4_string). CWE-787 (Out-of-bounds Write) applies: because the length operand is fully attacker-controlled via delimiter placement and is never compared against the destination buffer size, a single overlong field causes strncpy() to write beyond the end of the destination buffer, with an additional out-of-bounds NUL write at temp_addr_str[addr_len]. The overflow occurs on the modem worker thread running in supervisor (privileged) context, which on most Zephyr targets means corruption of kernel-mode stack memory.

Know when Zephyr gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (zephyr) PRIMARY 8.8 HIGH
AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Adjacent vector requires cellular RF or carrier-network position to inject the +CGCONTRDP response; device autonomously parses it with no privilege or interaction barrier.

3.1 AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (zephyr).

CVSS VectorVendor: zephyr

Attack Vector
Adjacent
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

The HL7800 cellular modem driver's +CGCONTRDP: response handler on_cmd_atcmdinfo_ipaddr() in drivers/modem/vendor_standalone/hl7800.c parses the PDP-context dynamic parameters (local address, subnet mask, gateway, and DNS servers) that the cellular network assigns to the device. The response is linearized into a 256-byte stack buffer, after which each address field length is computed from comma/. delimiter positions in the network-supplied data and used directly as the length argument to strncpy() into the fixed 64-byte stack buffer temp_addr_str (and the 16-byte iface_ctx.dns_v4_string).

Because the field length is derived from attacker-controlled delimiter positions and was not bounded against the destination buffer, a single field can be far larger than 64 bytes. A malicious or impersonated cellular network (for example a rogue base station) can return a crafted +CGCONTRDP response with an overlong address field, causing strncpy() to write past temp_addr_str on the modem worker thread's stack, plus an out-of-bounds NUL write at temp_addr_str[addr_len].

No device-side privileges or user interaction are required: the device itself issues the AT+CGCONTRDP=1 query during normal network attach and parses whatever the network returns. The overflow corrupts adjacent stack memory in supervisor context, yielding at minimum a remotely triggerable crash and potentially control-flow hijacking on targets without stack protection.

The fix bounds every field length against its destination buffer (temp_addr_str and dns_v4_string) before each copy, rejecting overlong fields.

Executive ViewAI

Why It Matters

Embedded devices running Zephyr RTOS with HL7800 cellular modems are vulnerable to remote code execution when connecting to cellular networks, as malicious or spoofed network infrastructure can trigger stack buffer overflow during standard LTE attach procedures. Organizations deploying cellular-connected IoT and edge devices face potential compromise without warning signs, since exploitation occurs during normal network operations and requires no device-side authentication or user interaction.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Low
niche RTOS driver for specific cellular modem hardware
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Controlled
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

More in Zephyr

View all
CVE-2023-4260 CRITICAL POC
10.0 Sep 27

Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),

CVE-2026-1678 CRITICAL POC
9.8 Mar 05

An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on

CVE-2023-5055 CRITICAL POC
9.8 Nov 21

Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit

CVE-2023-4257 CRITICAL POC
9.8 Oct 13

Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS

CVE-2023-3725 CRITICAL POC
9.8 Oct 06

Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner

CVE-2021-3323 CRITICAL POC
9.8 Oct 12

Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2021-3625 CRITICAL POC
9.8 Oct 05

Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable

CVE-2021-3319 CRITICAL POC
9.8 Oct 05

DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul

CVE-2018-1000800 CRITICAL POC
9.8 Sep 06

zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(

CVE-2023-4264 CRITICAL POC
9.6 Sep 27

Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul

CVE-2024-1638 CRITICAL POC
9.1 Feb 19

The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte

CVE-2023-5753 HIGH POC
8.8 Oct 25

Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy