CVE-2026-16512
Last modified
CVE-2026-16512 is a low-severity vulnerability rated 3.1/10 on the CVSS scale. gptp_handle_msg() in subsys/net/l2/ethernet/gptp/gptp.c dereferenced the gPTP header returned by GPTP_HDR() and switched on hdr->message_type without first checking that the received frame carries at least sizeof(struct gptp_hdr) (34) bytes of payload. The header accessor gptp_get_hdr() deliberately never fails for a short buffer — it returns pkt->frags->data and leaves validation to its callers — so a truncated frame produced a header pointer covering memory beyond the received data.
Description
gptp_handle_msg() in subsys/net/l2/ethernet/gptp/gptp.c dereferenced the gPTP header returned by GPTP_HDR() and switched on hdr->message_type without first checking that the received frame carries at least sizeof(struct gptp_hdr) (34) bytes of payload. The header accessor gptp_get_hdr() deliberately never fails for a short buffer — it returns pkt->frags->data and leaves validation to its callers — so a truncated frame produced a header pointer covering memory beyond the received data. The per-message-type checks that follow do not compensate: GPTP_VALID_LEN() reduces to len > 60 once the Ethernet header has been pulled, which is false for every fixed-size gPTP message, so GPTP_CHECK_LEN() never rejects a truncated SYNC, FOLLOWUP, PDELAY_RESP or SIGNALING message. The defect is reached by an unauthenticated peer on the same link sending an Ethernet frame with ethertype 0x88F7 to the PTP multicast address on an interface configured as a gPTP port, with CONFIG_NET_GPTP enabled. Because conformant Ethernet pads frames to 60 bytes, a payload shorter than 34 bytes generally requires a link that can deliver sub-minimum frames — for example the native_sim TAP driver (drivers/ethernet/eth_native_tap.c), which forwards whatever length the host device supplies, or a MAC configured to accept undersized frames. The short packet is retained (net_pkt_ref() into rcvd_sync_ptr, rcvd_follow_up_ptr, rcvd_pdelay_resp_ptr or rcvd_announce_ptr) and later parsed by the media-dependent and media-independent state machines in subsys/net/l2/ethernet/gptp/gptp_md.c and subsys/net/l2/ethernet/gptp/gptp_mi.c, which read tens of further bytes and copy some of them (the announce priority vector, hdr->port_id) into state that is subsequently transmitted. Under the default fixed-size buffer allocator (CONFIG_NET_BUF_FIXED_DATA_SIZE, 128-byte fragments) the accesses stay inside the allocated fragment and disclose stale recycled buffer contents; under the experimental CONFIG_NET_BUF_VARIABLE_DATA_SIZE allocator, where fragments are heap-allocated at the exact frame length, they are genuine out-of-bounds reads. There is no write and no availability impact.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| zephyrproject | zephyr | >= 1.13.0, < 4.4.2 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-16512?
How severe is CVE-2026-16512?
How do I fix CVE-2026-16512?
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-16498The terraform-mcp-server before version 1.1.0 is vulnerable …10
- CVE-2026-1650The MDJM Event Management plugin for WordPress is vulnerable…5.3
- CVE-2026-16502The Live Composer – Free WordPress Website Builder plugin fo…8.8
- CVE-2026-16503Deployment of the VPS.org one-click Supabase template deploy…9.1
- CVE-2026-16504Deployment of the VPS.org one-click Zulip template deploys a…9.8
- CVE-2026-1651The Email Subscribers by Icegram Express plugin for WordPres…6.5
- CVE-2026-16514gptp_mi_qualify_announce() in subsys/net/l2/ethernet/gptp/gp…4.3
- CVE-2026-16515net_icmpv6_send_error() in subsys/net/ip/icmpv6.c implemente…4.7
- CVE-2026-16517A signed integer overflow vulnerability was found in libarch…2.9
- CVE-2026-16519A DLL hijacking vulnerability exists in the GeoVision GV-IP …7.3
- CVE-2026-1652A potential buffer overflow vulnerability was reported in th…6.1
- CVE-2026-16520Improper input validation and Exposure of sensitive informat…8.7
Are you affected by CVE-2026-16512?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
