Impact
A length field supplied by a virtio PCI device is read into a buffer without proper validation, allowing an attacker to craft a small capability length that underflows the count of data words or a large length that overflows the caller’s buffer. This causes an unbounded write into the kernel stack while the device is probed at boot time. The overwritten stack content can be arbitrary device‑controlled data, providing a path to corrupt control flow or execute arbitrary code in kernel mode. The weakness is a classic out‑of‑bounds write (CWE‑787).
Affected Systems
All Zephyr releases that employ the virtio PCI driver without the runtime range check introduced in commit d98dacee24ad10c972d3b7281c9009d82ed351c9. The vulnerability is present wherever the driver is compiled with the default CONFIG_ASSERT disabled, which is the default for production builds.
Risk and Exploitability
The CVSS score of 6.1 indicates a moderate severity. No EPSS score is available, and the vulnerability is not listed in CISA's KEV catalog, suggesting no known widespread exploitation. The attack requires an attacker-controlled or untrusted virtio PCI device that the Zephyr kernel will probe during boot. In typical guest‑under‑hypervisor configurations the host already has full privilege, so the flaw does not provide escalation. The real risk arises on bare‑metal systems or confidential‑computing scenarios where the guest must protect itself against untrusted or pass‑through PCI devices; in those contexts the flaw can lead to kernel code execution or a system crash.
OpenCVE Enrichment