CVE-2026-12632
Awaiting Analysis Awaiting Analysis - Queue

Out-of-Bounds Read in Zephyr RTOS Precision Time Protocol

Vulnerability report for CVE-2026-12632, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-18

Last updated on: 2026-08-26

Assigner: Zephyr Project

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-18
Last Modified
2026-08-26
Generated
2026-09-08
AI Q&A
2026-08-19
EPSS Evaluated
2026-09-07
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
zephyrproject zephyr *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an out-of-bounds read in Zephyr's Precision Time Protocol (PTP) receive handler. It occurs when the PTP message type from the network is used to index a table without proper bounds checking. The table only supports types 0-13, but types 14 and 15 (0xE and 0xF) cause the code to read past the table's end, leading to memory corruption or crashes.

Detection Guidance

This vulnerability can be detected by monitoring for crashes or faults in Zephyr RTOS systems running PTP (Precision Time Protocol) with CONFIG_PTP enabled. Check logs for segmentation faults or memory corruption errors in PTP-related processes. Network monitoring tools can detect malformed PTP frames with type values 0xE or 0xF.

Impact Analysis

The primary impact is a denial of service, causing the affected system to crash or fault. There is a limited risk of memory corruption, but this depends on build-specific memory layout and cannot be reliably exploited by attackers. The vulnerability is triggered by unauthenticated network traffic, so any host on the same link can exploit it.

Compliance Impact

This vulnerability primarily causes denial of service through crashes or faults, which may impact availability of systems. For compliance with standards like GDPR or HIPAA, availability is a key requirement, so repeated disruptions could potentially lead to non-compliance if critical systems are affected. However, the vulnerability does not directly expose or leak data, which are also critical compliance aspects.

Mitigation Strategies

Apply the official patch from Zephyr Project that adds bounds checking for the message type. Disable PTP (CONFIG_PTP) if not required. Block unauthenticated PTP traffic (UDP multicast or raw Ethernet 0x88F7) at the network perimeter if PTP is needed.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-12632. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart