CVE-2026-105418
Awaiting Analysis Awaiting Analysis - Queue

Socket CAN NULL Pointer Dereference in Zephyr OS

Vulnerability report for CVE-2026-105418, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-02

Last updated on: 2026-12-02

Assigner: Zephyr Project

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-02
Last Modified
2026-12-02
Generated
2026-12-02
AI Q&A
2026-12-02
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
zephyrproject zephyr From 2.0.0 (inc) to 4.3.2 (exc)
zephyrproject zephyr From 4.4.0 (inc) to 4.5.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-476 The product dereferences a pointer that it expects to be valid but is NULL.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a NULL pointer dereference vulnerability in Zephyr RTOS's SocketCAN implementation. When a CAN socket is created but not bound to an interface, its index is -1. Calling getsockopt or setsockopt with NET_SOL_CAN_RAW on such a socket causes the code to dereference a NULL device pointer, leading to a kernel fault. The issue occurs because net_context_get_iface returns NULL, and subsequent calls attempt to access dev->api without checking.

Detection Guidance

Detecting this vulnerability requires checking if your Zephyr RTOS system uses CAN sockets with NET_SOL_CAN_RAW options before binding. Monitor kernel logs for fatal errors or resets after getsockopt or setsockopt calls on CAN sockets. Check Zephyr version against affected ranges (>=2.0.0, <4.3.2 or >=4.4.0, <4.5.0).

Commands: Check Zephyr version with git describe or grep CONFIG_VERSION in build files. Inspect CAN socket usage in application code for setsockopt/getsockopt calls before bind().

Impact Analysis

An attacker can trigger this by creating a CAN socket and calling getsockopt or setsockopt before binding it. On CONFIG_USERSPACE builds with CONFIG_NET_SOCKETS_CAN enabled, even unprivileged threads can exploit this to cause a kernel fault, halting or resetting the system. This results in a local denial of service across the user/kernel boundary.

Compliance Impact

This vulnerability primarily causes a local denial of service by crashing or resetting the system, which could disrupt critical operations. For GDPR, this may impact availability of data processing systems, potentially violating Article 32 requirements for resilience. For HIPAA, it could affect the integrity and availability of electronic protected health information, potentially breaching Security Rule requirements. However, the vulnerability does not directly lead to data breaches or unauthorized access.

Mitigation Strategies

Upgrade Zephyr RTOS to patched versions 4.3.2 or 4.5.0 or later. Ensure CAN socket applications call bind() before any getsockopt or setsockopt operations. Disable CONFIG_NET_SOCKETS_CAN if CAN functionality is not required.

For systems where upgrading is not immediately possible, add runtime checks in application code to validate socket binding before calling socket options.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-105418. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...