AI overviewIn Zephyr builds with CONFIG_USERSPACE=y and CONFIG_DYNAMIC_OBJECTS=y, a user-mode thread can register a CAN RX filter with a dynamically allocated message queue, then release the queue or exit. The filter retains a raw pointer, so a later matching frame can make supervisor-context code access freed memory and corrupt the kernel heap. The verifier previously checked type, initialization, and permission but not whether the queue would remain alive. The fix uses K_SYSCALL_OBJ_STATIC(), allowing only statically defined queues for user-mode registration. Supervisor-mode callers bypass that verifier and must keep the queue valid until removing the filter. The excerpt also notes the dangling-pointer risk if an application thread exits without removing its filter.