PT-2026-165378
CVE-2026-105418
·
تاريخ النشر
2026-12-02
·
تاريخ التحديث
2026-12-02
الوصف من
CVSS 3.1
5.5
متوسطةالمقاييسAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
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.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾