Technical impact
A flaw in the kernel system call verifier for k_thread_stack_space_get allows unprivileged threads that run on a Zephyr kernel configured with CONFIG_USERSPACE, CONFIG_INIT_STACKS, and CONFIG_THREAD_STACK_INFO to supply an arbitrary thread pointer. The verifier mistakenly uses a conditional macro that can resolve to a no‑operation when CONFIG_NO_RUNTIME_CHECKS is selected, resulting in the kernel bypassing the object type check. The kernel then dereferences the supplied pointer’s stack_info field and reads memory starting at the attacker‑chosen address, returning the number of leading 0xAA bytes. This provides a limited oracle that can reveal content from arbitrary kernel or peripheral memory, including MMIO, though no write operation is possible. The flaw is not present under the default CONFIG_RUNTIME_ERROR_CHECKS configuration, but the exploit exists when the build selectively disables runtime checks or assertions.
Affected Systems
Zephyr Project Zephyr OS. No specific version information is provided in the advisory. The vulnerability applies to builds of Zephyr that include the stated configuration options.
Risk and Exploitability
The CVSS score of 2.8 indicates low severity, and no EPSS score is reported. The bug is not listed in the CISA KEV catalog. The vulnerability requires that the target system has been compiled with the specific configuration set that eliminates runtime checks. An attacker with a local user thread can exercise the whitespace oracle to read arbitrary memory, but discovering exploitable data and achieving further compromise would require additional steps. The exploit is local to the kernel and cannot remotely inject code.