zephyrproject-rtos.zephyr is vulnerable to Use-After-Free
36
Low Risk
The kernel queue peek helpers read and dereference a node taken from a queue's internal list without holding the queue spinlock, while other accessors that unlink and free nodes operate under that lock. On SMP builds or under preemption a concurrent queue get can free the node between the peek obtaining and dereferencing the pointer. The peek then reads flag bits and a data pointer from freed, possibly reallocated memory and returns a stale or dangling pointer to its caller, which can leak heap contents or crash the system when the pointer is later used. The fix wraps both peek implementations in the queue spinlock so the read and dereference are atomic with the concurrent free.
You are affected if you are using a version that falls within the vulnerable range and your build runs SMP or userspace threads that can peek a kernel queue while another context concurrently drains it.
zephyrproject-rtos.zephyr is vulnerable to Use-After-Free in versions 1.12.0 - 4.4.1.
Upgrade the zephyrproject-rtos.zephyr library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant