zephyrproject-rtos.zephyr is vulnerable to Race Condition (TOCTOU)
78
High Risk
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.
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.
zephyrproject-rtos.zephyr is vulnerable to Race Condition (TOCTOU) in versions 2.3.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