llamaCVEVulnerability Intelligence
/
zephyr

CVE-2026-85035

Use-after-free via dynamically allocated message queue retained by the CAN RX filter

Specific setups onlyParche disponibleuse-after-free
Descargar PNG JSON
CVSS 3.1
8.8
Alta
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H Fuente: CNA
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versiones4.3.2 · 4.5.0
Exposición16 dDesde la divulgación, 3 nov 2026, 8:36 a. m.
Detección3 minDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Sin explotación conocida, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +2
Explotación
Remediación
Monitoreo
Detectada +2
Verificada
3 nov 26
16 nov 26
19 nov 26
3 nov 26
7 nov 26
11 nov 26
15 nov 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-85035 divulgada · CVSS 8.8 (CNA)
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Fuente: ENISA EUVD Registro visto por primera vez en ENISA EUVD
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0

Affected software is the Zephyr RTOS CAN subsystem, specifically its CAN receive filter registration for message queues, on builds with user-mode and dynamic kernel objects enabled. An unprivileged user-mode thread with access to a CAN device can corrupt kernel heap memory, which breaks the isolation between user and kernel code.

Zephyr builds with CONFIG_USERSPACE and CONFIG_DYNAMIC_OBJECTS enabled, where a user-mode thread has been granted access to a CAN device, are exposed. Fixed in Zephyr 4.3.2 and 4.5.0.

¿Qué significa?A CAN RX filter keeps a dynamically allocated message queue after it has been freed. CAN frame delivery can then write into that freed kernel object, corrupting kernel heap memory and breaking the user-mode isolation that CONFIG_USERSPACE is meant to provide.
¿Quién está afectado?Zephyr versions 1.14.0 up to but not including 4.3.2, and 4.4.0 up to but not including 4.5.0. The setup also needs CONFIG_USERSPACE=y and CONFIG_DYNAMIC_OBJECTS=y, plus a user-mode thread granted access to a CAN device. Check the Zephyr version and these two Kconfig options in the build configuration.
¿Qué hacer?Upgrade to Zephyr 4.3.2 if on the 4.3 line, or to 4.5.0 if on the 4.4 line. The sources provided list no workaround.
Descripción original del registro (zephyr)

The can_add_rx_filter_msgq() system call installs a CAN RX filter whose callback (can_msgq_put() in drivers/can/can_common.c) is handed the caller's struct k_msgq * as user_data. The controller driver stores that raw pointer in its filter table and dereferences it from the RX path every time a matching frame arrives. The system call verifier z_vrfy_can_add_rx_filter_msgq() in drivers/can/can_handlers.c validated the queue only with K_SYSCALL_OBJ(), which is a point-in-time check of type, initialization and caller permission and says nothing about the object's lifetime. On a build with CONFIG_USERSPACE=y and CONFIG_DYNAMIC_OBJECTS=y, an unprivileged user-mode thread that has been granted access to a CAN device can obtain a message queue whose lifetime it fully controls: k_object_alloc(K_OBJ_MSGQ) followed by k_msgq_alloc_init(). The lifetime of such an object is driven solely by its permission bitmask, and a pointer retained by the kernel is not represented there. After registering the filter, the thread calls k_object_release() — or simply terminates — and unref_check() frees the struct k_msgq storage while the CAN driver still holds the pointer. The next matching CAN frame causes k_msgq_put() to run in supervisor context against freed memory that the attacker can have groomed with another kernel allocation: the frame payload is memcpy()d through the reused block's write_ptr, and the queue's wait_q (and poll_events under CONFIG_POLL) list nodes are manipulated. This yields kernel-heap corruption reachable from a user-mode thread, defeating the isolation CONFIG_USERSPACE is intended to provide; the same dangling pointer also arises benignly when an application thread exits without calling can_remove_rx_filter(). The fix validates the queue with K_SYSCALL_OBJ_STATIC(), which additionally rejects objects carrying K_OBJ_FLAG_ALLOC, so only statically defined queues (CAN_MSGQ_DEFINE()) may be registered from user mode. Supervisor-mode callers bypass the verifier and must themselves keep the queue valid until the filter is removed.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Zephyr build with CONFIG_USERSPACE=y and CONFIG_DYNAMIC_OBJECTS=y“On a build with CONFIG_USERSPACE=y and CONFIG_DYNAMIC_OBJECTS=y”
02
Attacker thread must be a user-mode thread that has been granted access to a CAN device“an unprivileged user-mode thread that has been granted access to a CAN device”
03
Affected versions >= 1.14.0 and < 4.3.2, or >= 4.4.0 and < 4.5.0“>= 1.14.0, < 4.3.2”
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:L
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:C
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
zephyr≥ 1.14.0 < 4.3.2
zephyr≥ 4.4.0 < 4.5.0
1.14.0
4.3.2
4.4.0
4.5.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
zephyr
Corregida 4.3.2, 4.5.0 — —
Versiones corregidas4.3.24.5.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-6pxv-r7ww-3g2q
Parchehttps://github.com/zephyrproject-rtos/zephyr/commit/0114bee266211c72a49f3b6a914d3eaf821dd460

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.