CVE-2026-12520: memory-safety in zephyrproject zephyr
CVE-2026-12520 is a memory-safety vulnerability in the Zephyr project's HL7800 cellular modem driver affecting versions 2.4.0 and later up to but not including 4.4.2. The flaw involves improper handling of AT response parsing that can cause a single-byte out-of-bounds write or a full stack buffer overflow in kernel context. An attacker controlling modem responses, such as via a rogue base station or compromised modem, can trigger this by sending oversized AT response lines. The most severe case allows code execution in kernel context, while lesser cases cause reliable crashes. The vulnerability has a CVSS score of 6.4 (medium severity).
AI Analysis
Technical Summary
The Sierra Wireless HL7800 cellular modem driver in Zephyr (up to v4.4.0) parses AT command responses into a fixed 128-byte stack buffer using net_buf_linearize(). Some handlers incorrectly allow the terminating NUL byte to be written one byte past the buffer boundary, causing a single-byte out-of-bounds write. The +KCELLMEAS handler is more severe, passing the unbounded line length as the buffer size, enabling a full stack buffer overflow if the line exceeds 128 bytes. This overflow can be triggered by attacker-controlled modem responses, such as from a rogue base station or compromised modem baseband, and runs in kernel RX thread context. The worst-case impact is kernel code execution; the minimum impact is a reliable kernel crash. The fix involves correctly bounding the buffer size to ensure the terminating NUL stays within the buffer.
Potential Impact
The vulnerability allows an attacker able to influence cellular modem AT responses to cause out-of-bounds memory writes in kernel context. The +KCELLMEAS handler's full stack buffer overflow can lead to kernel code execution, while other handlers cause single-byte out-of-bounds writes that may result in crashes or data corruption. Exploitation complexity is high due to the need to control modem output over the cellular radio vector. There are no known exploits in the wild. The CVSS score is 6.4, indicating medium severity with impacts on confidentiality, integrity, and high impact on availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves passing the correct buffer size (sizeof(dst) - 1) to prevent out-of-bounds writes. Until an official fix is available, limit exposure to untrusted cellular modem responses where possible. Monitor vendor channels for patches or updates addressing this issue.
CVE-2026-12520: memory-safety in zephyrproject zephyr
Description
CVE-2026-12520 is a memory-safety vulnerability in the Zephyr project's HL7800 cellular modem driver affecting versions 2.4.0 and later up to but not including 4.4.2. The flaw involves improper handling of AT response parsing that can cause a single-byte out-of-bounds write or a full stack buffer overflow in kernel context. An attacker controlling modem responses, such as via a rogue base station or compromised modem, can trigger this by sending oversized AT response lines. The most severe case allows code execution in kernel context, while lesser cases cause reliable crashes. The vulnerability has a CVSS score of 6.4 (medium severity).
CVSS v3.1
Score 6.4medium
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 Sierra Wireless HL7800 cellular modem driver in Zephyr (up to v4.4.0) parses AT command responses into a fixed 128-byte stack buffer using net_buf_linearize(). Some handlers incorrectly allow the terminating NUL byte to be written one byte past the buffer boundary, causing a single-byte out-of-bounds write. The +KCELLMEAS handler is more severe, passing the unbounded line length as the buffer size, enabling a full stack buffer overflow if the line exceeds 128 bytes. This overflow can be triggered by attacker-controlled modem responses, such as from a rogue base station or compromised modem baseband, and runs in kernel RX thread context. The worst-case impact is kernel code execution; the minimum impact is a reliable kernel crash. The fix involves correctly bounding the buffer size to ensure the terminating NUL stays within the buffer.
Potential Impact
The vulnerability allows an attacker able to influence cellular modem AT responses to cause out-of-bounds memory writes in kernel context. The +KCELLMEAS handler's full stack buffer overflow can lead to kernel code execution, while other handlers cause single-byte out-of-bounds writes that may result in crashes or data corruption. Exploitation complexity is high due to the need to control modem output over the cellular radio vector. There are no known exploits in the wild. The CVSS score is 6.4, indicating medium severity with impacts on confidentiality, integrity, and high impact on availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves passing the correct buffer size (sizeof(dst) - 1) to prevent out-of-bounds writes. Until an official fix is available, limit exposure to untrusted cellular modem responses where possible. Monitor vendor channels for patches or updates addressing this issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- zephyr
- Date Reserved
- 2026-06-17T12:59:12.042Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a84b773c6e8be0332ab79ca
Added to database: 08/18/2026, 19:50:11 UTC
Last enriched: 08/18/2026, 20:08:51 UTC
Last updated: 08/18/2026, 20:08:51 UTC
Views: 2
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.