Intel

AIKIDO-2026-863571

zephyrproject-rtos.zephyr is vulnerable to Race Condition (TOCTOU)

Race Condition (TOCTOU)CVE-2026-12234 Published Aug 13, 2026

78

High Risk

This Affects:

C++zephyrproject-rtos.zephyr
2.3.0 - 4.4.1
Fixed in 4.4.2
Are you affected? Scan for Free

TL;DR

The userspace syscall verifiers for sendmsg and recvmsg snapshot the caller message header into a kernel copy but then re-read the iovec count and other fields from the original userspace pointer for allocation and iteration. A second thread in the same memory domain can inflate the iovec count between the allocation and the copy loop, so the loop writes iovec entries past the kernel heap allocation. The overflow corrupts adjacent heap chunk metadata and yields local kernel heap corruption or a crash from unprivileged userspace. The fix uses the kernel copy of the header for all post-verification field accesses.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you build with CONFIG_USERSPACE and networking sockets so untrusted userspace threads can call sendmsg or recvmsg.

Background info

zephyrproject-rtos.zephyr is vulnerable to Race Condition (TOCTOU) in versions 2.3.0 - 4.4.1.

How to fix this

Upgrade the zephyrproject-rtos.zephyr library to the patch version.