CVE-2026-5071

can: Local Denial of Service via SocketCAN Send

State
Published
Severity
6.1 Medium
Published
May 30, 2026
Updated
Oct 15, 2026
Reserved
Mar 27, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.16.1 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:Hzephyr

Weaknesses

Affected Products

ProductVersions
Zephyrzephyrproject-rtos
  • before 3.7.2Affected
  • 4.0.0 to before 4.2.2Affected
  • 4.3.0 to before 4.3.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.