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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-06-18 · Modified: 2026-10-30
- Aliases: UBUNTU-CVE-2025-38064, DEBIAN-CVE-2025-38064, CGA-23gc-hvjx-5c7w, CGA-272v-vr5h-gjgf, CGA-2fw9-f77w-rq8w, CGA-2m9g-xv6x-g54x, CGA-2prg-hcmc-r629, CGA-33h6-4p55-xh2c, CGA-353q-9cf4-459m, CGA-382g-qj52-xcvq, CGA-38q5-23cp-v5c7, CGA-3q99-w3q9-7883, CGA-3rr8-f8f4-42qg, CGA-3x5c-fr7q-fpvq, CGA-3xjw-6pjx-r6wj, CGA-43cf-xj8c-q4vq, CGA-4464-x88p-3w7p, CGA-44qp-w42x-pjjc, CGA-48mw-9j43-qv54, CGA-49w9-wcfj-mf82, CGA-4fjg-x946-wgx6, CGA-4hhh-jwqm-9m53, CGA-4q68-jq7r-f9xw, CGA-55mr-wch7-h4xc, CGA-57wp-j63h-8x86, CGA-5892-x3c6-p933, CGA-5c6c-hf2f-qwq7, CGA-5g4r-6224-r636, CGA-5wg9-v8cx-qw44, CGA-6469-479r-mm94, CGA-667v-rcpq-pccp, CGA-66p8-72wf-74w2, CGA-6744-6j97-55xw, CGA-6g4f-x9wx-v9m3, CGA-6wvj-qh3x-9jrr, CGA-74hr-rq8m-ccjq, CGA-76xj-cj2x-mhg7, CGA-7vj6-fp22-883p, CGA-84pq-cw39-gx2q, CGA-84w6-j462-gjqm, CGA-8872-qjr4-5wxh, CGA-88vv-pgj3-4xqv, CGA-88x4-76fv-238w, CGA-8958-2h9j-qr92, CGA-8c37-8g8w-7vrh, CGA-95jf-2fx5-w3wp, CGA-997q-x6jx-v478, CGA-9pxw-mmj9-f3pj, CGA-9qhj-qhh6-22x5, CGA-9xp4-hp9x-8253, CGA-c33h-ggg6-5m95, CGA-c3p3-89w8-rwq8, CGA-c5pw-r9wq-9r7h, CGA-c6x4-mc5c-mc84, CGA-c78j-r3q6-6w9p, CGA-c9jc-7pp8-vhfw, CGA-cfp3-xmjh-8gfc, CGA-chgm-w439-8r6r, CGA-chh8-7crw-q569, CGA-cm49-62xm-2c54, CGA-cqvq-c8j9-8pq9, CGA-f8h4-j7vw-3qwx, CGA-fcph-552j-3574, CGA-fhcw-wwwf-f926, CGA-fq65-f7mr-m6xg, CGA-fq9f-r544-2q2x, CGA-fxr7-c53h-637g, CGA-g5g6-q34q-v4pq, CGA-gfvp-qcq6-g6fm, CGA-gr6p-vxr2-fr7f, CGA-gwwv-4mww-fg5f, CGA-h2vc-vf39-2qv9, CGA-hfv4-w6fr-cm7h, CGA-hj6j-5pjx-x97v, CGA-hm8h-5cgw-4h9g, CGA-hr3v-4x7h-264r, CGA-j343-4x26-7vwm, CGA-jgf3-v4h3-rgmr, CGA-jr44-7rp8-9qgm, CGA-jw3x-2r7c-68rq, CGA-jwcw-vj3f-xwhq, CGA-jx72-q6xx-m5xf, CGA-m8hp-phqh-6vcg, CGA-m9q4-77pq-4r76, CGA-mf96-5qf2-865r, CGA-mgq5-vm45-p948, CGA-mpxm-6p68-x6wp, CGA-mpxp-pf52-c5vm, CGA-mxx6-rq84-vvmg, CGA-p62q-wgvv-qf98, CGA-p67p-m9qx-v9w5, CGA-pc5h-gjpg-j9cw, CGA-pq42-m8jr-mp66, CGA-px48-p4g2-mm65, CGA-q256-j8r7-vff8, CGA-q5qp-c2hw-v96q, CGA-qrpc-3f8x-m5vx, CGA-qx96-w65x-x9g6, CGA-r24h-6532-p8wh, CGA-r2wj-76xq-75hx, CGA-rf65-63cw-9p82, CGA-rpfm-q9wg-mr36, CGA-rvqp-qhh5-ccr4, CGA-v8pm-54mq-v2h4, CGA-vg7r-9698-348p, CGA-vqvj-x8cr-m27j, CGA-vqvm-qxcx-9wh2, CGA-vrrm-gvx2-fc77, CGA-vw6f-m6m2-h88p, CGA-w4rr-49mh-7jp2, CGA-w896-fc2f-hpw5, CGA-wf6x-gqc3-7rpj, CGA-whmr-wg2r-8xcc, CGA-wv8h-q68p-j9p7, CGA-wwj3-cqxg-5vcw, CGA-x39r-ppjr-jrvm, CGA-x4jc-hr6v-c6f7, CGA-xrqg-hj9j-8x2r, CGA-xrwp-4h55-3v5v, CGA-xw34-pf35-j233
- Record: https://cvemate.com/vulnerability/CVE-2025-38064 · JSON: https://cvemate.com/vulnerability/CVE-2025-38064/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.262%, percentile 19.179%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 157)

- chainguard linux-aws-6.12 (Chainguard): \< 6.12.62-r1 \| \< 6.12.69-r0 \| \< 6.12.62-r0 \| \< 6.12.67-r0 \| \< 6.12.77-r1 \| \< 6.12.76-r0 \| \< 6.12.80-r0 \| \< 6.12.70-r0 \| \< 6.12.74-r1 \| \< 6.12.74-r0 \| \< 6.12.68-r0 \| \< 6.12.65-r1 \| \< 6.12.72-r1 \| \< 6.12.71-r0 \| \< 6.12.68-r1 \| \< 6.12.65-r2 \| \< 6.12.77-r2 \| \< 6.12.62-r2 \| \< 6.12.60-r4 \| \< 6.12.72-r0 \| \< 6.12.57-r2 \| \< 6.12.78-r0 \| \< 6.12.77-r0 \| \< 6.12.66-r0 \| \< 6.12.63-r0 \| \< 6.12.65-r0
- chainguard linux-azure-6.12 (Chainguard): \< 6.12.72-r0 \| \< 6.12.78-r0 \| \< 6.12.63-r0 \| \< 6.12.76-r0 \| \< 6.12.68-r0 \| \< 6.12.66-r0 \| \< 6.12.69-r0 \| \< 6.12.67-r0 \| \< 6.12.60-r3 \| \< 6.12.65-r4 \| \< 6.12.65-r3 \| \< 6.12.71-r0 \| \< 6.12.77-r2 \| \< 6.12.60-r4 \| \< 6.12.70-r0 \| \< 6.12.77-r0 \| \< 6.12.62-r0 \| \< 6.12.65-r1 \| \< 6.12.74-r0 \| \< 6.12.77-r1 \| \< 6.12.62-r2 \| \< 6.12.65-r2 \| \< 6.12.62-r1 \| \< 6.12.74-r1 \| \< 6.12.57-r2 \| \< 6.12.80-r0
- chainguard linux-gcp-6.12 (Chainguard): \< 6.12.62-r0 \| \< 6.12.68-r1 \| \< 6.12.74-r0 \| \< 6.12.60-r4 \| \< 6.12.65-r2 \| \< 6.12.62-r2 \| \< 6.12.72-r0 \| \< 6.12.78-r0 \| \< 6.12.77-r0 \| \< 6.12.62-r1 \| \< 6.12.68-r0 \| \< 6.12.67-r0 \| \< 6.12.60-r3 \| \< 6.12.65-r0 \| \< 6.12.74-r1 \| \< 6.12.63-r0 \| \< 6.12.77-r2 \| \< 6.12.65-r1 \| \< 6.12.76-r0 \| \< 6.12.66-r0 \| \< 6.12.77-r1 \| \< 6.12.57-r2 \| \< 6.12.71-r0 \| \< 6.12.69-r0 \| \< 6.12.80-r0 \| \< 6.12.70-r0
- chainguard linux-qemu-6.12 (Chainguard): \< 6.12.68-r0 \| \< 6.12.72-r0 \| \< 6.12.67-r0 \| \< 6.12.69-r0 \| \< 6.12.77-r2 \| \< 6.12.74-r0 \| \< 6.12.76-r0 \| \< 6.12.65-r1 \| \< 6.12.70-r0 \| \< 6.12.65-r2 \| \< 6.12.66-r0 \| \< 6.12.80-r0 \| \< 6.12.78-r0 \| \< 6.12.71-r0 \| \< 6.12.74-r1 \| \< 6.12.77-r0 \| \< 6.12.77-r1
- chainguard linux-vmware-6.12 (Chainguard): \< 6.12.77-r1 \| \< 6.12.77-r0 \| \< 6.12.76-r0 \| \< 6.12.74-r0 \| \< 6.12.67-r0 \| \< 6.12.74-r1 \| \< 6.12.68-r1 \| \< 6.12.69-r0 \| \< 6.12.66-r0 \| \< 6.12.65-r1 \| \< 6.12.72-r0 \| \< 6.12.71-r0 \| \< 6.12.80-r0 \| \< 6.12.78-r0 \| \< 6.12.65-r2 \| \< 6.12.77-r2 \| \< 6.12.70-r0 \| \< 6.12.68-r0
- debian linux (Debian): All versions (No fix recorded) \| \< 6.1.192-1 \| \< 6.12.115-2 \| \< 6.16.3-1
- debian linux-6.12 (Debian): \< 6.12.115-2~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-151.151
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1070.76
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): \< 6.14.0-1013.13~24.04.1
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 29)

- <https://git.kernel.org/stable/c/aee42f3d57bfa37b2716df4584edeecf63b9df4c>
- <https://git.kernel.org/stable/c/8bd2fa086a04886798b505f28db4002525895203>
- <https://ubuntu.com/security/CVE-2025-38064>
- <https://www.cve.org/CVERecord?id=CVE-2025-38064>
- <https://git.kernel.org/linus/8bd2fa086a04886798b505f28db4002525895203>
- <https://ubuntu.com/security/notices/USN-7769-1>
- <https://ubuntu.com/security/notices/USN-7770-1>
- <https://ubuntu.com/security/notices/USN-7771-1>
- <https://ubuntu.com/security/notices/USN-7769-2>
- <https://ubuntu.com/security/notices/USN-7769-3>
- <https://ubuntu.com/security/notices/USN-7789-1>
- <https://ubuntu.com/security/notices/USN-7789-2>
- <https://ubuntu.com/security/notices/USN-8781-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-38064>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38064.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-38064>
- <https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git>
- <https://git.kernel.org/stable/c/acdfe206be6c70ec55dc8bfdb1a22036d10fae26>
- <https://git.kernel.org/stable/c/1eaa83fd94ed5e40d43139025f5acb7bcfed3b5f>
- <https://git.kernel.org/stable/c/0c03e32494dd0bbcc301523e5ae567c2f567a7d9>

---

Data as of 2026-12-05T06:11:04.573Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
