Out-of-bounds Read
CVE-2026-5071
Summary
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 (DoS) crashes or, because the parsed frame contents are transmitted on the network, leak adjacent memory. This issue affects Zephyr versions prior to 3.7.2-rc2, 4.0.0-rc1 prior to 4.2.2 and 4.3.0-rc1 prior to 4.3.1-rc1.
- LOW
- LOCAL
- HIGH
- UNCHANGED
- NONE
- LOW
- HIGH
- HIGH
CWE-125 - Out-of-Bounds Read
Out-of-bounds read is a vulnerability that allows access to memory beyond the authorized accessible location. Such a vulnerability compromises the confidentiality of the trusted environment in the application and enables an attacker to launch further attacks by leveraging the exposed information.
References
Advisory Timeline
- Published