Skip to main content

Zephyr RTOS EUVDEUVD-2026-140855

| CVE-2026-105418 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-12-02 zephyr
5.5
CVSS 3.1 · Vendor: zephyr
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Create unbound CAN socket from local thread
  2. Exploit
    Invoke SOL_CAN_RAW getsockopt/setsockopt syscall
  3. Execution
    Kernel dereferences NULL device pointer
  4. Impact
    System 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Zephyr 2.0.0 <4.3.2
Zephyr 4.4.0 <4.5.0

Affected Packages

euvd zephyr fix: 4.3.2, 4.5.0

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

Vendor (zephyr) PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.5 MEDIUM

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.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (zephyr).

CVSS VectorVendor: zephyr

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Medium
popular embedded RTOS; vulnerable CAN-socket userspace config is a niche subset
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in Zephyr

View all
CVE-2023-4260 CRITICAL POC
10.0 Sep 27

Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),

CVE-2026-1678 CRITICAL POC
9.8 Mar 05

An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on

CVE-2023-5055 CRITICAL POC
9.8 Nov 21

Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit

CVE-2023-4257 CRITICAL POC
9.8 Oct 13

Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS

CVE-2023-3725 CRITICAL POC
9.8 Oct 06

Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner

CVE-2021-3323 CRITICAL POC
9.8 Oct 12

Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2021-3625 CRITICAL POC
9.8 Oct 05

Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable

CVE-2021-3319 CRITICAL POC
9.8 Oct 05

DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul

CVE-2018-1000800 CRITICAL POC
9.8 Sep 06

zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(

CVE-2023-4264 CRITICAL POC
9.6 Sep 27

Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul

CVE-2024-1638 CRITICAL POC
9.1 Feb 19

The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte

CVE-2023-5753 HIGH POC
8.8 Oct 25

Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy