CVE-2026-5071: can: Local Denial of Service via SocketCAN Send
The SocketCAN implementation validates the length of a user-provided buffer containing a socketcanframe object using only a NETASSERT statement in zcansendtoctx() before dereferencing it in socketcantocanframe(). 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 socketcantocanframe() 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 Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-5071?
The severity of CVE-2026-5071 is classified as medium with a score of 6.1.
What impact does CVE-2026-5071 have?
CVE-2026-5071 can lead to a local denial of service condition in applications using SocketCAN.
How do I fix CVE-2026-5071?
To fix CVE-2026-5071, ensure that proper buffer length validations are implemented before dereferencing user-provided buffers.
Who is affected by CVE-2026-5071?
CVE-2026-5071 affects users of the Zephyr Project Zephyr OS utilizing the SocketCAN implementation.
When was CVE-2026-5071 published?
CVE-2026-5071 was published on May 30, 2026.