# CVE-2025-38064: virtio: break and reset virtio devices on device_shutdown()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-06-18T09:33:42.931Z
- Modified: 2026-10-30T13:18:00.443Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

virtio: break and reset virtio devices on device_shutdown()

Hongyu reported a hang on kexec in a VM. QEMU reported invalid memory
accesses during the hang.

	Invalid read at addr 0x102877002, size 2, region '(null)', reason: rejected
	Invalid write at addr 0x102877A44, size 2, region '(null)', reason: rejected
	...

It was traced down to virtio-console. Kexec works fine if virtio-console
is not in use.

The issue is that virtio-console continues to write to the MMIO even after
underlying virtio-pci device is reset.

Additionally, Eric noticed that IOMMUs are reset before devices, if
devices are not reset on shutdown they continue to poke at guest memory
and get errors from the IOMMU. Some devices get wedged then.

The problem can be solved by breaking all virtio devices on virtio
bus shutdown, then resetting them.

(As written by CVE List.)

## Affected

- Linux Linux: from ec3d41c4db4c21164332826ea8d812f94f2f6886 before 0c03e32494dd0bbcc301523e5ae567c2f567a7d9; from ec3d41c4db4c21164332826ea8d812f94f2f6886 before acdfe206be6c70ec55dc8bfdb1a22036d10fae26; from ec3d41c4db4c21164332826ea8d812f94f2f6886 before 1eaa83fd94ed5e40d43139025f5acb7bcfed3b5f; from ec3d41c4db4c21164332826ea8d812f94f2f6886 before aee42f3d57bfa37b2716df4584edeecf63b9df4c; from ec3d41c4db4c21164332826ea8d812f94f2f6886 before 8bd2fa086a04886798b505f28db4002525895203; 2.6.24 (not affected: before 2.6.24; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.114 up to 6.12.*; from 6.14.9 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: before 6.14.9

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/0c03e32494dd0bbcc301523e5ae567c2f567a7d9>
- <https://git.kernel.org/stable/c/acdfe206be6c70ec55dc8bfdb1a22036d10fae26>
- <https://git.kernel.org/stable/c/1eaa83fd94ed5e40d43139025f5acb7bcfed3b5f>
- <https://git.kernel.org/stable/c/aee42f3d57bfa37b2716df4584edeecf63b9df4c> (patch)
- <https://git.kernel.org/stable/c/8bd2fa086a04886798b505f28db4002525895203> (patch)

## Sources

- CVE List: [CVE-2025-38064](https://www.cve.org/CVERecord?id=CVE-2025-38064), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2025-38064](https://nvd.nist.gov/vuln/detail/CVE-2025-38064), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2025-38064 · Whole record: https://cve.day/CVE-2025-38064.json · Rebuilt by cve.day 2026-11-25T22:58:59.365Z
