Zephyrproject-rtos Zephyr
can: Local Denial of Service via SocketCAN Send
The SocketCAN implementation validates the length of a user-provided buffer containing a socketcan_frame object using only a NET_ASSERT statement in zcan_sendto_ctx() before dereferencing it in socketcan_to_can_frame(). In production builds where assertions are disabled, a userspace application that controls the length passed to a sendto syscall can supply an incomplete or truncated frame, causing socketcan_to_can_frame() to dereference fields beyond the end of the buffer. This results in an out-of-bounds read that can cause denial-of-service crashes or, because the parsed frame contents are transmitted on the network, leak adjacent memory.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.7.2
- >= 4.0.0, < 4.2.2
- >= 4.3.0, < 4.3.1
Fixed in 3.7.2, 4.2.2, 4.3.1
Mitigation
Upgrade Zephyr to 3.7.2 or 4.2.2 or 4.3.1 or later.
References
- Vendor advisory github.com/zephyrproject-rtos/zephyr/security/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.