Technical impact
The Zephyr I2S configure syscall verifier copies the caller’s struct i2s_config into kernel space but, on an unconfigure request indicated by frame_clk_freq equal to zero, it bypasses the ownership check on the config.mem_slab field and the block size sanity test. The mem_slab pointer is a struct k_mem_slab * and therefore, on that code path, a fully user‑supplied kernel object pointer is passed directly to driver code. In drivers such as i2s_litex, this pointer is used by the interrupt handlers in supervisor context when allocating and freeing memory slabs. Because k_mem_slab_alloc and k_mem_slab_free acquire a spinlock and manipulate the slab’s internal free list, an attacker can read and write arbitrary kernel memory, effectively breaking the userspace isolation boundary and enabling privilege escalation.
Affected Systems
This flaw is present in all Zephyr Project builds that enable CONFIG_USERSPACE and include an I2S device driver. Any user thread that has permission to access an I2S object can trigger the vulnerability by issuing a single i2s_configure() call to unconfigure the stream. The issue does not affect builds without CONFIG_USERSPACE because the syscall verifier is not exercised.
Risk and Exploitability
The CVSS score of 7.8 indicates moderate to high severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, but the exploit is straightforward to trigger where user access to I2S devices exists. An attacker only needs the ability to call the public I2S configuration API; no additional privileges are required. Once triggered, the kernel performs arbitrary read/write, giving the attacker full control of memory and the ability to execute arbitrary code at kernel privilege level.