CVE-2026-12632
Last modified
CVE-2026-12632 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 0.25% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| zephyrproject | zephyr | >= 3.7.0, < 4.4.2 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-12632?
How severe is CVE-2026-12632?
How do I fix CVE-2026-12632?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-12624Vault’s ACL policy engine did not consistently enforce a wil…4.3
- CVE-2026-12628IBM Storage Protect Client 8.1.0.0 through 8.2.1.0 and IBM S…9.1
- CVE-2026-12629The ARM PL011 UART driver in drivers/serial/uart_pl011.c fai…4.6
- CVE-2026-1263The Webling plugin for WordPress is vulnerable to Stored Cro…6.4
- CVE-2026-12630Zephyr's 6LoWPAN IP Header Compression (IPHC) uncompression …4.3
- CVE-2026-12631The Zephyr kernel validates the k_thread_join() and k_thread…6.5
- CVE-2026-12633The IPv6 neighbor-discovery code in subsys/net/ip/ipv6_nbr.c…8.1
- CVE-2026-12634The NVS backend of the Zephyr settings subsystem (subsys/set…5.3
- CVE-2026-12635GitLab has remediated an issue in GitLab CE/EE affecting all…3.1
- CVE-2026-1264IBM Sterling B2B Integrator and IBM Sterling File Gateway 6.…6.5
- CVE-2026-12644Versions of the package ts-deepmerge before 8.0.0 are vulner…5.5
- CVE-2026-12645A Missing Authorization vulnerability in Ivanti Neurons for …8.8
Are you affected by CVE-2026-12632?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
