EnvMap GitHub

CVE-2026-105418

NULL pointer dereference in SocketCAN getsockopt/setsockopt on an unbound socket

EPSS 0.15%Awaiting Analysis

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.

In the words of the organisation that published it (zephyr).

Severity

  • 5.5 Medium · CVSS 3.1 from vulnerabilities@zephyrproject.org · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected

  • zephyrproject zephyr: from 2.0.0 before 4.3.2; from 4.4.0 before 4.5.0

as the publisher (zephyr) lists them.

Likelihood of exploitation

FIRST's EPSS gives a 0.15% chance of exploitation in the next 30 days, higher than 4% of all CVEs (as of 4 December 2026).

Weakness

CWE-476

References

Record

Published06:17 UTC, 2 December 2026
Last changed06:17 UTC, 2 December 2026
NVD statusAwaiting Analysis
Published byzephyr

CVE-2026-105418 on NVD · on CVE.org · Security Briefing

Follow it

Add the feed to a feed reader and new items arrive there as they are published, with no account here and no email.

Add to Feedly Add to Inoreader

Any other reader: paste https://envmap.tech/security/feed.xml

Where this comes from

Nothing here is written by an AI, summarised or rewritten: a headline is its newsroom's own and opens its story. A description is in the words of the organisation that published the CVE; a score says whose it is, NVD's or the publisher's; a CVE nobody has scored yet says so. A CVE that is rejected comes off every list. When a source does not answer, the page keeps the last answer it gave and says since when.

How to read it

EnvMap is a free, open-source DevOps control plane that you run yourself; its Security page brings your scanners' findings into one place. See what it does.