# CVE-2026-12632: Out-of-bounds read in Zephyr PTP message parsing from unvalidated message type

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2026-08-18T20:55:43.955Z
- **Modified:** 2026-11-04T05:18:40.560Z

## Who should check

- Anyone running zephyrproject zephyr \>= 3.7.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2

## 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.

## Affected and fixed versions

- zephyrproject zephyr: \>= 3.7.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2 (cvelist)

## Mitigation

- Upgrade zephyr to 4.4.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-12632. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-12632.md
Affected: zephyrproject zephyr >= 3.7.0, < 4.3.2; >= 4.4.0, < 4.4.2
Fixed in: zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.4.2

Steps:
1. Search this machine and project for zephyrproject zephyr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-12632 being exploited?

There is no confirmed exploitation: CVE-2026-12632 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-12632?

Medium: CVSS 6.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-12632?

zephyrproject zephyr \>= 3.7.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2.

### Is there a fix for CVE-2026-12632?

Yes. Fixed in zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.4.2. Upgrade zephyr to 4.4.2 or later.

### How do I check if I'm affected by CVE-2026-12632?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-frjr-h396-7wh4>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/30dabd4c2f2e3641732c00111cd80b5c524c0136>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-12632>

HTML: <https://flawdb.com/CVE-2026-12632> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-12632>
