PT-2026-81374 · Zephyr · Zephyr

CVE-2026-13216

·

Published

2026-08-25

·

Updated

2026-08-25

CVSS v3.1

6.1

Medium

VectorAV:P/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Name of the Vulnerable Software and Affected Versions Zephyr (affected versions not specified)
Description The virtio PCI driver in drivers/virtio/virtio pci.c contains an out-of-bounds write issue during driver initialization. The virtio pci read cap() function fails to properly validate the cap len variable read from the PCI configuration space via pcie conf read(). Because the validation relied on an assertion that is disabled in production builds, the cap len value is used to drive a loop that copies data into a fixed-size stack buffer.
If cap len is smaller than the 24-byte base structure virtio pci cap, an unsigned underflow occurs in the extra data words count, leading to an unbounded stack write. Conversely, a cap len value exceeding the buffer size (up to 255) allows up to approximately 228 bytes of device-controlled data to be written past the buffer. This can be exploited by an untrusted physical or passthrough virtio PCIe device to corrupt the kernel stack, potentially resulting in a system crash or arbitrary code execution in kernel mode during the boot-time device probe.
Recommendations As a temporary mitigation, restrict the use of untrusted or physical passthrough virtio PCIe devices on the system until the software is updated to include the runtime range check for cap len in the virtio pci read cap() function.

Exploit

Fix

LPE

Memory Corruption

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-13216
GHSA-QRH3-4MVV-W667

Affected Products

Zephyr