Skip to main content
EPSS 0.3%top 80%

CVE-2026-12520: memory-safety in zephyrproject zephyr

0
Medium
VulnerabilityCVE-2026-12520cvecve-2026-12520
Published: 08/18/2026 (08/18/2026, 19:41:07 UTC)
Source: CVE Database V5
Vendor/Project: zephyrproject
Product: zephyr

Description

CVE-2026-12520 is a memory safety vulnerability in the Zephyr project's HL7800 cellular modem driver affecting versions from 2.4.0 up to but not including 4.4.2. The vulnerability involves improper handling of AT command response parsing, leading to a single-byte out-of-bounds write in most cases and a full stack buffer overflow in the +KCELLMEAS handler. This can cause kernel memory corruption, potentially resulting in a kernel crash or code execution in kernel context. Exploitation requires an attacker to control modem-emitted AT response lines longer than 128 bytes, which is a high complexity attack vector. The vulnerability has a CVSS score of 6.4 (medium severity).

CVSS v3.1

Score 6.4medium

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

Affected software

zephyrproject

zephyr

Affected versions
>=2.4.0 <4.4.2
GitHub Actionsmore threats →cve
zephyr
pkg:github/zephyr
Affected versions
>=2.4.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/11/2026, 21:03:29 UTC

Technical Analysis

The Sierra Wireless HL7800 cellular modem driver in Zephyr (drivers/modem/hl7800.c) parses AT responses into a fixed 128-byte stack buffer using net_buf_linearize(). In several handlers, including the +KCELLMEAS cell-measurement handler, improper bounds checking allows an attacker-controlled AT response line longer than 128 bytes to overflow the stack buffer. The +KCELLMEAS handler passes the wire length as the destination size, enabling a full stack buffer overflow. The vulnerability arises because net_buf_linearize() can return a count equal to the destination length, causing the terminating NUL byte to be written one byte past the buffer end. The data originates from the cellular modem over UART, and an attacker capable of influencing modem output (e.g., via a rogue base station or compromised modem baseband) can trigger this overflow. The overflow occurs in kernel context, risking kernel memory corruption and potential code execution. The fix involves correcting the bounds passed to net_buf_linearize() to ensure the terminating NUL byte remains within buffer limits.

Potential Impact

This vulnerability can lead to kernel memory corruption due to out-of-bounds writes in the modem driver's AT response parsing code. The worst-case impact is arbitrary code execution in kernel context, while the minimum impact is a reliable kernel crash. Exploitation complexity is high because it requires an attacker to control the modem's emitted AT response lines over a cellular interface. There are no known exploits in the wild.

Mitigation Recommendations

A fix is available that corrects the bounds checking in the affected handlers by passing sizeof(destination) - 1 to net_buf_linearize(), ensuring the terminating NUL byte does not overflow the buffer. Users should upgrade to Zephyr version 4.4.2 or later where this issue is resolved. Until patched, limiting exposure to untrusted cellular networks or modems may reduce risk, but no vendor advisory indicates alternative mitigations or that the issue is already mitigated.

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-06-17T12:59:12.042Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a84b773c6e8be0332ab79ca

Added to database: 08/18/2026, 19:50:11 UTC

Last enriched: 09/11/2026, 21:03:29 UTC

Last updated: 10/02/2026, 02:46:02 UTC

Views: 67

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