{"schemaVersion":4,"id":"CVE-2026-87042","aliases":[],"status":"published","duplicateOf":null,"title":"Zephyr PTP: unvalidated Delay_Resp message interval lets an on-link peer wedge the PTP thread and flood the network","description":"The IEEE 1588 (PTP) port implementation in subsys/net/lib/ptp/port.c adopted the logMessageInterval field of a received Delay_Resp message without any validation. port_delay_resp_msg_process() stored the raw wire value (a full-range int8_t) into port_ds.log_min_delay_req_interval, and that value is later used as a shift count by port_timer_set_timeout() when the Delay_Req timer is armed. Values below about -30 truncate the computed timeout to zero, and values with a magnitude of 64 or more perform an undefined shift of a uint64_t; the standards-defined \"not applicable\" encoding 0x7F fell into the latter case as well.\n\nPTP messages are received over unauthenticated link-local traffic (UDP multicast on 224.0.1.129, IPv6 multicast, or raw IEEE 802.3), and the handler accepts a Delay_Resp from any sender as long as the port is a time receiver using the end-to-end delay mechanism and the message echoes the port identity and a pending sequence id — both of which the victim itself broadcasts in its Delay_Req. Any node on the same link can therefore inject a single crafted Delay_Resp, or simply become the time transmitter and advertise the bogus interval.\n\nOnce the delay timer is armed with a zero timeout, the cooperative PTP thread re-arms and retransmits a Delay_Req on every tick. Each transmission takes a buffer from the fixed CONFIG_PTP_MSG_POLL_SIZE message slab (default 10) and holds it on port->delay_req_list for three seconds, so the slab is emptied within milliseconds and ptp_msg_alloc() then blocks with K_FOREVER inside the only thread that frees those buffers — permanently stalling time synchronization until reboot. Where a transmit-timestamp callback on another thread keeps recycling buffers, the result is instead a sustained multicast Delay_Req flood and continuous CPU consumption. There is no memory corruption and no disclosure of data; the impact is availability of the PTP subsystem and of the local network segment.\n\nThe fix rejects intervals outside a representable range and treats 0x7F as \"not applicable\" as required by IEEE 1588-2019 Table 42. The equivalent unchecked adoption of logMessageInterval from Sync messages in port_sync_msg_process(), a weaker variant of the same issue, is fixed by the companion change 334bf57f416f (#118150), which applies the same range check, ignores the field for unicast Sync messages and treats 0x7F as not applicable.","dates":{"published":"2026-11-10T22:07:40.237Z","modified":"2026-11-13T13:39:36.931Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0036,"percentile":0.31807,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-11T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00334,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00334,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00334,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00334,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00334,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00334,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0036,"percentile":0.31807}],"last30":[{"date":"2026-11-11T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00312,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00334,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00334,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00334,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00334,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00334,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00334,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0036,"percentile":0.31807}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption","description":"The product does not properly control the allocation and maintenance of a limited resource.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/400.html"}],"affected":[{"vendor":"zephyrproject","product":"zephyr","name":"zephyr","label":"zephyr","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.7.0, < 4.3.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"3.7.0","startInclusive":true,"end":"4.3.2","endInclusive":false}},{"text":"≥ 4.4.0, < 4.5.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"4.4.0","startInclusive":true,"end":"4.5.0","endInclusive":false}}],"versionsText":"≥ 3.7.0, < 4.3.2 | ≥ 4.4.0, < 4.5.0","eol":null,"hubHref":"/vendor/zephyrproject/zephyr"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/zephyrproject-rtos/zephyr/commit/f6b9459f082ac8cc18b7d20a5c4ce1d86b7a55b5","label":"github.com/zephyrproject-rtos/zephyr/commit/f6b9459f082ac8cc18b7d20a5c4ce1d86b7a55b5","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/zephyrproject-rtos/zephyr/commit/334bf57f416f2f65745e68db98edf3615ec4e7ab","label":"github.com/zephyrproject-rtos/zephyr/commit/334bf57f416f2f65745e68db98edf3615ec4e7ab","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-cx9q-8hq3-7hpr","label":"github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-cx9q-8hq3-7hpr","hostname":"github.com","tags":[]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-10T22:07:40.237Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-13T13:39:36.931Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 6.5, adjacent network); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,65],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.0036,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-13T13:39:36.931Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-13T13:39:36.931Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-13T13:39:24.454Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.0036,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T12:01:28.220Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T12:01:28.725Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T12:01:28.919Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T12:01:03.802Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T12:01:26.562Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T12:01:25.560Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T13:03:32.646Z","stale":false,"partial":false}}