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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-5071
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 17:51 UTC · Revision 1
Source evidence
can: Local Denial of Service via SocketCAN Send
core-osv · Original sourcePublished 30 May 2026, 07:15 UTC
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.
osv:CVE-2026-5071
Complete source record
{
"id": "4e17b020aa24fe0db1e4af0efdfb3fb3e9adfa18e6e757f960bd84b2307543c7",
"url": "https://osv.dev/vulnerability/CVE-2026-5071",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "can: Local Denial of Service via SocketCAN Send",
"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 crashes or, because the parsed frame contents are transmitted on the network, leak adjacent memory.",
"evidence": "osv:CVE-2026-5071",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-5071",
"aliases": [
"CVE-2026-5071",
"GHSA-c3w6-x7m3-3c58"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/zephyrproject-rtos/zephyr",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "bbbf8b30094dacd0d6830946ba206bcec8af6b0c"
},
{
"introduced": "8469084dfae85f854555f0607f2c838dad097235"
},
{
"fixed": "dbb536326e611dc8e97cc6a322d379ba9cac1ab7"
},
{
"introduced": "3568e1b6d5cdd51a6b964a2a1d6d29200fea2056"
},
{
"fixed": "75f67d766726351b30199f9a2bf55803d717a3be"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "*"
},
{
"fixed": "3.7.2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "4.0.0"
},
{
"fixed": "4.2.2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "4.3.0"
},
{
"fixed": "4.3.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
}
],
"versions": [
"v4.3.1-rc1",
"v3.7.2-rc2",
"v4.3.0",
"v4.2.1",
"v4.2.0",
"v4.2.0-rc3",
"v4.2.0-rc2",
"v4.2.0-rc1",
"v4.1.0",
"v4.1.0-rc3",
"v4.1.0-rc2",
"v4.1.0-rc1",
"v3.7.1",
"v4.0.0",
"v3.7.1-rc1",
"v3.7.0",
"v3.7.0-rc3",
"v3.7.0-rc2",
"v3.7.0-rc1",
"v3.6.0",
"v3.6.0-rc3",
"v3.6.0-rc2",
"v3.6.0-rc1",
"zephyr-v3.5.0",
"v3.5.0",
"v3.5.0-rc3",
"v3.5.0-rc2",
"v3.5.0-rc1",
"zephyr-v3.4.0",
"v3.4.0",
"v3.4.0-rc3",
"v3.4.0-rc2",
"v3.4.0-rc1",
"zephyr-v3.3.0",
"v3.3.0",
"v3.3.0-rc3",
"v3.3.0-rc2",
"v3.3.0-rc1",
"zephyr-v3.2.0",
"v3.2.0",
"v3.2.0-rc3",
"v3.2.0-rc2",
"v3.2.0-rc1",
"zephyr-v3.1.0",
"v3.1.0",
"v3.1.0-rc3",
"v3.1.0-rc2",
"v3.1.0-rc1",
"zephyr-v3.0.0",
"v3.0.0",
"v3.0.0-rc3",
"v3.0.0-rc2",
"v3.0.0-rc1",
"v2.7.99",
"v2.7.0-rc3",
"v2.7.0-rc2",
"v2.7.0-rc1",
"zephyr-v2.6.0",
"v2.6.0",
"v2.6.0-rc3",
"v2.6.0-rc2",
"v2.6.0-rc1",
"zephyr-v2.5.0",
"v2.5.0",
"v2.5.0-rc4",
"v2.5.0-rc3",
"v2.5.0-rc2",
"v2.5.0-rc1",
"zephyr-v2.4.0",
"v2.4.0",
"v2.4.0-rc3",
"v2.4.0-rc2",
"v2.4.0-rc1",
"zephyr-v2.3.0",
"v2.3.0",
"v2.3.0-rc2",
"v2.3.0-rc1",
"zephyr-v2.1.0",
"v2.1.0",
"zephyr-v2.2.0",
"v2.2.0",
"v2.2.0-rc3",
"v2.2.0-rc2",
"v2.2.0-rc1",
"v2.1.0-rc3",
"v2.1.0-rc2",
"v2.1.0-rc1",
"zephyr-v2.0.0",
"v2.0.0",
"v2.0.0-rc3",
"v2.0.0-rc2",
"v2.0.0-rc1",
"zephyr-v1.14.0",
"v1.14.0",
"v1.14.0-rc3",
"v1.14.0-rc2",
"v1.14.0-rc1",
"zephyr-v1.13.0",
"v1.13.0",
"v1.13.0-rc3",
"v1.13.0-rc2",
"v1.13.0-rc1",
"zephyr-v1.12.0",
"v1.12.0",
"v1.12.0-rc3",
"v1.12.0-rc2",
"v1.12.0-rc1",
"zephyr-v1.11.0",
"v1.11.0",
"v1.11.0-rc3",
"v1.11.0-rc2",
"v1.11.0-rc1",
"zephyr-v1.10.0",
"v1.10.0",
"v1.10.0-rc3",
"v1.10.0-rc2",
"v1.10.0-rc1",
"zephyr-v1.9.0",
"v1.9.0",
"v1.9.0-rc4",
"v1.9.0-rc3",
"v1.9.0-rc2",
"v1.9.0-rc1",
"v1.8.99",
"zephyr-v1.5.0",
"v1.5.0",
"v1.7.99",
"v1.6.99",
"v1.5.0-rc4",
"v1.5.0-rc3",
"v1.5.0-rc2",
"v1.5.0-rc1",
"v1.5.0-rc0",
"zephyr-v1.4.0",
"v1.4.0",
"v1.4.0-rc3",
"v1.4.0-rc2",
"v1.4.0-rc1",
"zephyr-v1.3.0",
"v1.3.0",
"v1.3.0-rc2",
"v1.3.0-rc1",
"zephyr-v1.2.0",
"v1.2.0",
"v1.2.0-rc2",
"v1.2.0-rc1",
"zephyr-v1.1.0",
"v1.1.0",
"v1.1.0-rc1",
"zephyr-v1.0.0",
"v1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-5071.json"
}
}
],
"modified": "2026-10-28T02:30:21.401614901Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5071.json",
"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-c3w6-x7m3-3c58",
"https://nvd.nist.gov/vuln/detail/CVE-2026-5071",
"https://github.com/zephyrproject-rtos/zephyr"
],
"provider_metadata": {
"cwe_ids": [
"CWE-125"
],
"cna_assigner": "zephyr",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5071.json"
}
},
"related_cves": [
{
"value": "CVE-2026-5071",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 487698,
"published_at": "2026-05-30T07:15:56.417+00:00"
}