CVE-2026-5165: Virtio-win: virtio-win: memory corruption via use-after-free in virtio blk device reset

Published Mar 30, 2026
·
Updated

A flaw was found in virtio-win, specifically within the VirtIO Block (BLK) device. When the device undergoes a reset, it fails to properly manage memory, resulting in a use-after-free vulnerability. This issue could allow a local attacker to corrupt system memory, potentially leading to system instability or unexpected behavior.

Other sources

The VirtIO BLK device does not have special reset events/routines like the VirtIO SCSI device (controlq command VIRTIOSCSITTMFLOGICALUNITRESET), but Windows requires to have some mechanism to fix a device when it hangs. The most appropriate way is perform a full VirtIO reset and initialization flow based on spec.

The following flow is implemented:

Reset VirtIO device (virtiodevicereset) Delete VirtIO queues (virtiodeletequeues) Clean up all device memory (virtiodeviceshutdown) Complete all pending SRBs (in guest, CompletePendingRequestsOnReset) Perform VirtIO device initialization (virtiodeviceinitialize, virtiofindqueues, etc) Note: We don't pause StorPort because the port driver pauses all device IO queues for the adapter and then calls the HwStorResetBus routine https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/storport/nc-storport-hwresetbus

Note: We cannot just complete all pending SRBs and continue, because this memory will be still in use by the device and free in Windows. As a result, we got use-after-free when the device completes the request and sends it back to Windows. This may cause a memory corruption, as Windows may already have reused the memory.

Red Hat

Affected Software

4 affected components
VirtIO virtio-win
redhat Virtio-win
redhat Enterprise Linux=9.0
redhat Enterprise Linux=10.0

Event History

Mar 30, 2026
Data Sourced
via Red Hat·02:47 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·03:02 PM
Data Sourced
via MITRE·03:02 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:16 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-5165?

CVE-2026-5165 has been classified with a moderate severity level due to potential memory corruption issues.

2

How do I fix CVE-2026-5165?

To address CVE-2026-5165, you should update to the latest version of virtio-win that includes the patch for the vulnerability.

3

What is the impact of CVE-2026-5165?

CVE-2026-5165 can lead to memory corruption and may cause instability or crashes in systems using the VirtIO Block device.

4

Is CVE-2026-5165 exploitable remotely?

CVE-2026-5165 is considered a local vulnerability that requires access to the affected system for exploitation.

5

What software is affected by CVE-2026-5165?

The vulnerability impacts the virtio-win software specifically related to the VirtIO Block device functionality.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203