CVE-2026-12522: bounds in zephyrproject zephyr
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. An attacker controlling or impersonating the cellular network can send a crafted response with overlong address fields, leading to out-of-bounds writes on the modem worker thread's stack. This can cause a crash or potentially allow control-flow hijacking without requiring device privileges or user interaction. The vulnerability affects Zephyr versions 2.4.0 and all versions from 2.4.0 up to but not including 4.4.2. The fix involves bounding field lengths before copying to prevent overflow.
AI Analysis
Technical Summary
The HL7800 cellular modem driver's response handler for the +CGCONTRDP AT command in Zephyr parses PDP-context parameters into fixed-size stack buffers without proper bounds checking. The length of each address field is derived from attacker-controlled delimiter positions and used directly as the length argument to strncpy(), allowing an overlong field to overflow the 64-byte temp_addr_str buffer and the 16-byte dns_v4_string buffer. This stack buffer overflow occurs in supervisor context on the modem worker thread and can be triggered remotely by a malicious or rogue cellular network during normal network attach procedures, without requiring any device privileges or user interaction. The vulnerability can cause a crash or potentially enable control-flow hijacking on systems lacking stack protection. The patch bounds each field length against its destination buffer size before copying, rejecting overlong fields.
Potential Impact
A remote attacker controlling or impersonating the cellular network can trigger a stack buffer overflow on the device by sending a crafted +CGCONTRDP response. This can cause a denial of service (crash) or potentially allow remote code execution or control-flow hijacking on affected devices without requiring privileges or user interaction. The vulnerability impacts confidentiality, integrity, and availability (all rated high).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vendor has described a fix that bounds field lengths before copying to prevent overflow, but no official patch or remediation level is currently provided. Until a patch is available, devices should avoid connecting to untrusted cellular networks or use network authentication mechanisms to reduce exposure.
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. An attacker controlling or impersonating the cellular network can send a crafted response with overlong address fields, leading to out-of-bounds writes on the modem worker thread's stack. This can cause a crash or potentially allow control-flow hijacking without requiring device privileges or user interaction. The vulnerability affects Zephyr versions 2.4.0 and all versions from 2.4.0 up to but not including 4.4.2. The fix involves bounding field lengths before copying to prevent overflow.
CVSS v3.1
Score 8.8high
Affected software
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 parses PDP-context parameters into fixed-size stack buffers without proper bounds checking. The length of each address field is derived from attacker-controlled delimiter positions and used directly as the length argument to strncpy(), allowing an overlong field to overflow the 64-byte temp_addr_str buffer and the 16-byte dns_v4_string buffer. This stack buffer overflow occurs in supervisor context on the modem worker thread and can be triggered remotely by a malicious or rogue cellular network during normal network attach procedures, without requiring any device privileges or user interaction. The vulnerability can cause a crash or potentially enable control-flow hijacking on systems lacking stack protection. The patch bounds each field length against its destination buffer size before copying, rejecting overlong fields.
Potential Impact
A remote attacker controlling or impersonating the cellular network can trigger a stack buffer overflow on the device by sending a crafted +CGCONTRDP response. This can cause a denial of service (crash) or potentially allow remote code execution or control-flow hijacking on affected devices without requiring privileges or user interaction. The vulnerability impacts confidentiality, integrity, and availability (all rated high).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vendor has described a fix that bounds field lengths before copying to prevent overflow, but no official patch or remediation level is currently provided. Until a patch is available, devices should avoid connecting to untrusted cellular networks or use network authentication mechanisms to reduce exposure.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- zephyr
- Date Reserved
- 2026-06-17T12:59:14.964Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a861799acd9273b499c15a2
Added to database: 08/19/2026, 20:52:41 UTC
Last enriched: 08/19/2026, 21:07:36 UTC
Last updated: 08/19/2026, 21:17:07 UTC
Views: 3
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.