Technical impact
The vulnerability occurs when a user‑mode thread in a Zephyr system installs a CAN RX filter that stores a pointer to a dynamically allocated message queue in the driver’s filter table. When the thread later releases or terminates the queue, that pointer becomes invalid. The driver subsequently dereferences it during CAN reception, which results in a use‑after‑free that corrupts kernel heap memory. An attacker can control the freed block with a subsequent kernel allocation, allowing the corrupted queue to execute arbitrary code in supervisor mode, effectively bypassing userspace isolation.
Affected Systems
The flaw is present in any Zephyr build that enables CONFIG_USERSPACE and CONFIG_DYNAMIC_OBJECTS, and allows unprivileged threads to create dynamic k_msgq objects and attach them to CAN RX filters. The issue is generic across affected configurations and does not depend on a specific firmware release, so any project using an unpatched version of the kernel with these settings is vulnerable.
Risk and Exploitability
The CVSS score of 8.8 indicates high severity, and the EPSS score is currently not available, indicating that the current exploitation likelihood is uncertain. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires a user‑mode thread with CAN device access and the ability to allocate and free message queues, making the primary attack vector local to the device. If successfully exploited, the attacker could gain kernel privileges or crash the system.