Skip to main content

Zephyr RTOS CVE-2026-12632

| EUVDEUVD-2026-61492 MEDIUM
Out-of-bounds Read (CWE-125)
2026-08-18 vulnerabilities@zephyrproject.org
6.5
CVSS 3.1 · Vendor: zephyrproject
View

Attack ChainAIDerived

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

  1. Recon
    Gain link-layer or subnet access to PTP segment
  2. Delivery
    Craft PTP frame with message type 0xE or 0xF
  3. Exploit
    Deliver via UDP multicast or raw Ethernet (EtherType 0x88F7)
  4. Install
    ptp_msg_post_recv() indexes msg_size[] out of bounds
  5. C2
    Garbage value drives TLV loop past message buffer
  6. Execute
    Out-of-bounds reads and writes cause node fault
  7. Impact
    Denial of service

Vulnerability Assessment

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

1 technique across 1 tactic: Collection

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

Exploitation Conditions

Exploitation requires three concrete conditions to be simultaneously true: (1) the target device runs Zephyr RTOS version 3.7.0 through pre-4.4.2 compiled with CONFIG_PTP=y - devices built without PTP support are not affected; (2) the attacker is adjacent to the target at the link layer or IP subnet level, reachable via UDP multicast on PTP ports 319/320 or raw Ethernet EtherType 0x88F7 - internet-based exploitation is not possible without prior network-layer compromise; (3) the target's PTP port is in active frame-processing state via ptp_port_event_gen(), which is the normal operational condition for any PTP-enabled node. No authentication, credentials, session token, or user interaction are required. Exploitation is bounded by: adjacency (AV:A prevents remote internet exploitation), the PTP compile-time build flag (non-PTP builds are immune), and the secondary corruption path's dependency on build-specific memory layout adjacent to msg_size[] (reliable code execution is not achievable by an attacker without firmware-specific memory knowledge).

Impact

The CVSS 3.1 score of 6.5 (AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) accurately reflects the core risk profile: the vulnerability is trivially triggerable from the link layer with zero prerequisites, but is constrained to adjacent-network adjacency and produces a reliable denial of service rather than code execution in the common case. The adjacency requirement (AV:A) is the principal mitigating factor - this cannot be exploited from the open internet without prior network-level compromise or routing into the PTP segment. No EPSS score was present in the input data, so exploitation probability cannot be quantified from this dataset; that absence should be noted rather than treated as a low-risk signal. No CISA KEV listing exists, and no public POC has been identified, placing exploitation status at 'no public exploit identified at time of analysis.' The secondary memory-corruption path - in-place byte-swap writes past the buffer boundary - is explicitly described as build-layout-dependent and not attacker-tunable, making reliable code execution unlikely but not categorically impossible for specific firmware builds. The CVSS C:N/I:N assignment appears appropriate given this constraint, though the 'Information Disclosure' tag in the source intelligence hints that adjacent-memory content may leak via the OOB read. For embedded and industrial operators running Zephyr with PTP enabled, the reliably reproducible crash path carries operational significance disproportionate to the 6.5 score, particularly in time-critical or safety-adjacent deployments where node availability is paramount.

Exploit ScenarioDerived

An attacker with access to the same Ethernet segment or IP subnet as a Zephyr-based embedded device - such as an industrial controller, IoT gateway, or smart appliance running CONFIG_PTP-enabled firmware - crafts a PTP frame with message type field set to 0xE or 0xF and delivers it via UDP multicast (ports 319/320) or raw Ethernet (EtherType 0x88F7). Upon receipt, ptp_msg_post_recv() indexes msg_size[] out of bounds, feeds the garbage result as a TLV length budget to the parsing loop, and the resulting out-of-bounds memory access causes the node to fault and crash, disrupting time synchronization and normal device operation. No public exploit code has been identified, but the attack requires only standard packet-crafting capability available in tools such as Scapy.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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

Remote denial-of-service in Zephyr RTOS's Precision Time Protocol stack (versions 3.7.0 through pre-4.4.2) allows any link-adjacent unauthenticated attacker to crash a CONFIG_PTP-enabled node by sending a crafted PTP frame carrying an undefined message type (0xE or 0xF). The 4-bit wire-type field is used without an upper-bound check to index a 14-entry msg_size[] array, and the out-of-range value is subsequently reused as a TLV parsing budget, driving further out-of-bounds reads and in-place byte-swap writes past the received message slab. No public exploit code or CISA KEV listing exists at time of analysis, but the crash path is described in the upstream advisory as reliably reproducible with no authentication required from the link layer.

RemediationAI

The primary fix is to upgrade to Zephyr 4.4.2 or later, which incorporates the upstream patch from commit 30dabd4c2f2e3641732c00111cd80b5c524c0136 (https://github.com/zephyrproject-rtos/zephyr/commit/30dabd4c2f2e3641732c00111cd80b5c524c0136); note that the 4.4.2 boundary is inferred from EUVD-2026-61492 and has not been independently verified against a tagged Zephyr release. For deployments where an immediate upgrade is not feasible, disabling the PTP subsystem at build time (CONFIG_PTP=n, followed by a firmware rebuild and reflash) eliminates the vulnerable code path entirely, at the cost of PTP-based clock synchronization - operators must substitute an alternative time source such as NTP or a hardware RTC. As a network-level compensating control, restricting PTP traffic at managed switch boundaries - blocking UDP ports 319 and 320 for IEEE 1588 over IP, and filtering raw Ethernet EtherType 0x88F7 for PTP over Ethernet - limits the link-local attack surface, though this trade-off degrades time synchronization accuracy and may break PTP-dependent applications. The vendor security advisory is available at https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-frjr-h396-7wh4.

Affected VersionsENISA

Zephyr 3.7.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

Zephyr RTOS implements IEEE 1588 Precision Time Protocol in subsys/net/lib/ptp/. The function ptp_msg_post_recv() in msg.c extracts the PTP message type via ptp_msg_type() (msg->header.type_major_sdo_id & 0xF), yielding a 4-bit value in the range 0-15. The msg_size[] static lookup table is sized to ARRAY_SIZE == 14, covering only defined PTP types 0x0 through 0xD (PTP_MSG_MANAGEMENT). CWE-125 (Out-of-Bounds Read) applies directly: the absence of any upper-bound guard allows undefined types 0xE and 0xF to read one or two int slots past the end of the array. The resulting garbage value is then used as a byte-count comparand (msg_size[type] > cnt) and, when that arithmetic passes, as a length budget passed into msg_tlv_post_recv(). That function's TLV iteration loop then walks memory past the end of the received network buffer, performing in-place big-endian byte-swap writes on unintended memory regions. The defect is reachable directly from the network stack: ptp_port_event_gen() in port.c reads a PTP frame via ptp_transport_recv() and immediately calls ptp_msg_post_recv() with the attacker-supplied type. The upstream fix in commit 30dabd4c2f2e3641732c00111cd80b5c524c0136 adds a pre-index bounds check (if (type >= ARRAY_SIZE(msg_size)) return -EBADMSG;) before any array access occurs.

Know when the next one hits your stack

  • 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 (zephyrproject) PRIMARY 6.5 MEDIUM
AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 6.5 MEDIUM

Adjacent-only delivery (AV:A) with no authentication (PR:N) and no reliable confidentiality or integrity impact given the build-layout-dependent corruption path.

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

Primary rating from Vendor (zephyrproject).

CVSS VectorVendor: zephyrproject

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

Lifecycle Timeline

1
Patch available
Aug 18, 2026 - 22:04 EUVD

DescriptionCVE.org

Zephyr's Precision Time Protocol receive handler ptp_msg_post_recv() in subsys/net/lib/ptp/msg.c takes the 4-bit message type straight off the wire via ptp_msg_type() (msg->header.type_major_sdo_id & 0xF, range 0-15) and uses it to index the msg_size[] table. That table only defines entries up to PTP_MSG_MANAGEMENT (0xD), giving it ARRAY_SIZE == 14. Before the fix there was no upper-bound check, so the undefined types 0xE and 0xF indexed one or two int slots past the end of the array - an out-of-bounds read of adjacent read-only data.

The out-of-bounds value is then reused as a length: it gates msg_size[type] > cnt, and when it is small or negative it makes cnt - msg_size[type] a large positive budget passed to msg_tlv_post_recv(), whose TLV loop then walks the message suffix past the received bytes, performing further out-of-bounds reads and in-place byte-swap writes on memory beyond the message slab.

The defect is reached directly from the network: ptp_port_event_gen() in subsys/net/lib/ptp/port.c reads a PTP frame with ptp_transport_recv() and calls ptp_msg_post_recv() with the attacker-chosen type. PTP uses UDP multicast or raw Ethernet (0x88F7) and is unauthenticated, so any host on the same link can trigger the indexing on a CONFIG_PTP-enabled node with no preconditions.

The reliably reproducible impact is a denial of service (fault/crash); a limited memory-corruption path exists but depends on the build-specific value adjacent to msg_size[], which the attacker cannot tune. The fix rejects type >= ARRAY_SIZE(msg_size) with -EBADMSG before any indexing.

Threat Intelligence Overview

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Low
specialized embedded RTOS, PTP requires explicit CONFIG_PTP compile-time enablement
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Controlled
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
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.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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