CVE-2026-12522: bounds in zephyrproject zephyr
Description
CVE-2026-12522 is a high-severity vulnerability in the Zephyr project's HL7800 cellular modem driver. It involves a stack-based buffer overflow caused by improper bounds checking when parsing the +CGCONTRDP response from the cellular network. The vulnerability allows a malicious or rogue cellular network to send an overlong address field, leading to out-of-bounds writes on the stack. This can cause a crash or potentially enable control-flow hijacking without requiring device privileges or user interaction. The issue affects Zephyr versions from 2.4.0 up to but not including 4.4.2. A fix has been implemented to properly bound field lengths before copying data.
CVSS v3.1
Score 8.8high
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 HL7800 cellular modem driver's response handler for the +CGCONTRDP AT command in Zephyr improperly handles parsing of PDP-context dynamic parameters. It linearizes the network response into a 256-byte stack buffer, then extracts address fields using delimiter positions controlled by the network. These lengths are used directly in strncpy() calls to fixed-size stack buffers (64 bytes for temp_addr_str and 16 bytes for dns_v4_string) without bounds checking. This allows a malicious cellular network to craft a response with an overlong field, causing a stack buffer overflow and an out-of-bounds null byte write. The overflow occurs on the modem worker thread stack in supervisor context, enabling at minimum a remote crash and potentially control-flow hijacking on systems lacking stack protection. The vulnerability requires no device privileges or user interaction as the device issues the AT command during normal network attach. The fix adds bounds checks on field lengths before copying, rejecting overlong fields.
Potential Impact
A remote attacker controlling or impersonating a cellular network can trigger a stack buffer overflow on the device by sending a crafted +CGCONTRDP response. This can cause a denial of service via a crash or potentially allow remote code execution through control-flow hijacking on vulnerable devices without stack protection. No user interaction or device privileges are needed, making exploitation feasible during normal network attach procedures.
Mitigation Recommendations
A fix is available that bounds every field length against its destination buffer before copying, rejecting overlong fields. Users should upgrade to Zephyr version 4.4.2 or later where this vulnerability is patched. There are no vendor advisories indicating alternative mitigations or that the issue is already mitigated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- zephyr
- Date Reserved
- 2026-06-17T12:59:14.964Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a861799acd9273b499c15a2
Added to database: 08/19/2026, 20:52:41 UTC
Last enriched: 09/11/2026, 05:02:08 UTC
Last updated: 10/04/2026, 10:02:25 UTC
Views: 58
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.