Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCreate unbound CAN socket from local thread
-
ExploitInvoke SOL_CAN_RAW getsockopt/setsockopt syscall
-
ExecutionKernel dereferences NULL device pointer
-
ImpactSystem fatal error halts or resets (DoS)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires (1) a Zephyr build with CONFIG_NET_SOCKETS_CAN enabled, and (2) for the cross-privilege denial of service, a CONFIG_USERSPACE build so that zsock_socket/zsock_setsockopt/zsock_getsockopt are system calls reachable from an unprivileged user-mode thread. The attacker must already be a local thread able to create a CAN socket and must call setsockopt()/getsockopt() at level SOL_CAN_RAW on that socket before bind() - an unbound socket has interface index -1, which is the precise state that produces the NULL dev. Limiting factors: there is no remote vector (AV:L, local only), no confidentiality or integrity impact, and on builds without CONFIG_USERSPACE the defect crosses no privilege boundary (the advisory states such builds gain no protection from the fix). Affected versions are >= 2.0.0, < 4.3.2 and >= 4.4.0, < 4.5.0; builds outside these ranges or with CONFIG_NET_SOCKETS_CAN disabled are not exposed. On targets with NULL-pointer fault detection the result is a controlled fatal halt/reset; on targets without it, the kernel makes an indirect call through a low-memory value the attacker does not control (per the advisory, still not attacker-influenced). |
| Impact | This is a genuine but bounded issue, best characterized as a local, availability-only denial of service rather than a widespread emergency. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, base 5.5) and the source-level evidence agree: exploitation is local (a thread already running on the device), low-complexity (a fixed syscall ordering - sockopt before bind), requires low privilege (PR:L, an unprivileged user-mode thread on a CONFIG_USERSPACE build), and yields only an availability impact - a kernel fatal error that halts or resets the system, with no confidentiality or integrity loss. The security value of the defect depends entirely on build configuration: it is a true privilege-boundary crossing only when CONFIG_USERSPACE and CONFIG_NET_SOCKETS_CAN are both enabled; on non-CONFIG_USERSPACE builds the advisory states no privilege boundary is gained (any local code could already crash the system). No EPSS score, no CISA KEV listing, and no SSVC decision values are present in the input, so exploitation-probability and automatability signals cannot be weighed - EPSS absence is noted, not assumed. The vuln.today Decision label is this_month, consistent with a confirmed, vendor-patched, locally-exploitable availability bug that is not under active exploitation. Net: a real fix-this-cycle item for affected embedded deployments, not a drop-everything network-exploitable flaw; the local-only vector and config dependency materially limit real-world risk relative to the raw score. |
| Exploit ScenarioDerived | On a Zephyr build with CONFIG_NET_SOCKETS_CAN and CONFIG_USERSPACE enabled, an unprivileged user-mode thread creates a CAN socket (interface index -1) and calls getsockopt() or setsockopt() at level SOL_CAN_RAW before calling bind(). net_context_get_iface()/net_if_get_device() return NULL, the handler reads dev->api and calls through it, and the kernel faults in supervisor mode, halting or resetting the device. No public exploit code is identified; the trigger is a simple, well-documented call ordering common in code ported from Linux, so a reliable crash is trivial to construct. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
A local denial of service in Zephyr's SocketCAN socket layer lets any thread that can create a CAN socket halt or reset the whole system by calling setsockopt() or getsockopt() at level SOL_CAN_RAW before bind(). Because a freshly created CAN socket has interface index -1, net_context_get_iface() and net_if_get_device() return NULL, and can_sock_setsockopt_vmeth()/can_sock_getsockopt_vmeth() dereference dev->api without a check; on CONFIG_USERSPACE builds where zsock_socket/zsock_setsockopt/zsock_getsockopt are system calls, an unprivileged user-mode thread can drive the kernel into this fault in supervisor mode. Affected releases are Zephyr >= 2.0.0, < 4.3.2 and >= 4.4.0, < 4.5.0 with CONFIG_NET_SOCKETS_CAN enabled; the impact is availability only (CVSS 3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H), no public exploit has been identified at time of analysis, and vendor patches fixing both branches are available.
RemediationAI
Vendor-released patch: upgrade to Zephyr 4.3.2 (fixes the >= 2.0.0, < 4.3.2 range) or 4.5.0 (fixes the >= 4.4.0, < 4.5.0 range); the fix adds a NULL-device check that makes can_sock_getsockopt_vmeth() and can_sock_setsockopt_vmeth() fail with ENODEV until the socket is bound to a CAN interface. The merged changes are commit c7bb91ec09ed58dac9b04e4fb03a8b767f17aed0 on main (PR #120653) with backports in PR #121497 (v4.4-branch), PR #121498 (v4.3-branch) and PR #121499 (v3.7-branch); apply the corresponding branch commit if an immediate release upgrade is not possible. Where CAN socket-option support is not required, building without CONFIG_NET_SOCKETS_CAN removes the vulnerable handlers entirely, at the cost of losing SocketCAN support; application code ported from Linux should also be changed to bind() the CAN socket before any SOL_CAN_RAW getsockopt()/setsockopt() call. Note that dropping CONFIG_USERSPACE is not a mitigation for the fault itself, since it only removes the privilege boundary while the kernel-side NULL dereference remains reachable by any thread that can create a CAN socket. See the advisory at https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-r5vr-3m56-grq2 for details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a classic CWE-476 NULL pointer dereference in subsys/net/lib/sockets/sockets_can.c, the SocketCAN integration of Zephyr's BSD-style socket API over the native net_context/net_if stack. When a CAN socket is created, net_context_get() initialises context->iface to -1 and zcan_socket() never assigns an interface; net_if_get_by_index() explicitly returns NULL for any index <= 0, and net_if_get_device(NULL) likewise returns NULL. The raw-CAN option handlers nevertheless read dev->api and call through the resulting function-pointer table before validating dev, so the option path dereferences and then indirect-calls through a NULL-derived pointer. The unchecked dereference dates to commit df7162331f8 (v1.14.0), and it became reachable across the user/kernel boundary from v2.0.0 when commits 6f32f17cdaf and ee849826e3e turned getsockopt()/setsockopt() into syscalls; the z_vrfy_ handlers in subsys/net/lib/sockets/sockets.c only copy optval/optlen and perform no socket-state validation, and the AF_CAN default bind only happens on send/connect (bind_default), not on socket-option calls. The default fatal handler in kernel/fatal.c halts or resets the system on the resulting supervisor-mode fault; on targets lacking NULL-pointer fault detection the kernel instead performs an indirect call through a value read from low memory, which the advisory states the attacker does not control. The upstream fix adds an explicit dev == NULL guard returning -1 with errno ENODEV in both handlers until the socket is bound to a CAN interface; a similar unguarded dev->api in close_socket() remains but is reachable only after a successful, now bind-gated, filter registration.
Know when Zephyr gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Triggered by a local unprivileged user-mode thread via a fixed syscall ordering, so AV:L/AC:L/PR:L/UI:N; only a system halt/reset results, so C:N/I:N/A:H with no scope change.
Primary rating from Vendor (zephyr).
CVSS VectorVendor: zephyr
DescriptionCVE.org
The SocketCAN socket layer in subsys/net/lib/sockets/sockets_can.c dereferences a NULL device pointer when a NET_SOL_CAN_RAW socket option is read or written on a CAN socket that has not yet been bound. A freshly created CAN socket has interface index -1. net_context_get_iface() therefore returns NULL, net_if_get_device() returns NULL, and can_sock_setsockopt_vmeth() / can_sock_getsockopt_vmeth() read dev->api without a check and then call through the resulting pointer.
Any thread that can create a CAN socket can trigger the dereference by calling setsockopt() or getsockopt() at level SOL_CAN_RAW before bind(). That ordering is common in code ported from Linux. Because zsock_socket, zsock_setsockopt and zsock_getsockopt are system calls, an unprivileged user-mode thread on a CONFIG_USERSPACE build with CONFIG_NET_SOCKETS_CAN enabled can make the kernel perform the faulting access in supervisor mode.
The result is a kernel fatal error that halts or resets the system: a local denial of service across the user/kernel boundary. On targets without NULL-pointer fault detection, the kernel instead makes an indirect call through a value read from low memory, which the attacker does not control. Builds without CONFIG_USERSPACE gain no privilege boundary from this defect. The fix makes both socket-option handlers fail with ENODEV until the socket is bound to a CAN interface.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),
An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on
Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit
Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS
Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner
Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability
Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable
DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul
zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(
Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul
The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte
Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c
EUVD-2026-140855
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB