Technical impact
The i3c_transfer() syscall in Zephyr contains a double‑fetch flaw. The handler validates a user‑supplied i3c_device_desc pointer in place, but the implementation later reads the same user memory again. An attacker controlling two user‑space threads can alter the descriptor’s bus field after validation and before it is used by the kernel. This causes the kernel to dereference an attacker‑controlled struct device and invoke a function pointer from an attacker‑controlled API table, leading to kernel‑mode code execution from an unprivileged user thread. The weakness is a classic race condition (CWE‑367).
Affected Systems
Zephyr RTOS built with CONFIG_USERSPACE enabled and the I3C controller driver compiled in is impacted. The vulnerability exists where the i3c_transfer() syscall is present in the kernel image. No specific version range is provided; affected builds are those that include this syscall and the I3C driver without receiving the patch.
Risk and Exploitability
The CVSS score of 7.0 indicates high severity. EPSS data is not available, so the current exploit probability cannot be quantified, and the vulnerability is not listed in CISA KEV, meaning it has not yet been observed in the wild. Exploitation requires a local user‑space thread that has been granted an i3c_device_desc object and control over another thread in the same memory domain to perform the race. The race condition is repeatable and can be retried until the descriptor substitution succeeds, so an attacker can reliably trigger the flaw. Because the attack escalates from user mode to kernel mode, the risk to confidentiality, integrity, and availability is severe.