# CVE-2026-64474: vfio: prevent infinite loop in vfio\_mig\_get\_next\_state() on blocked arc

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-26)
- **CWE:** CWE-835
- **Published:** 2026-07-25T08:51:37.405Z
- **Modified:** 2026-11-12T16:07:25.090Z

## Who should check

- Anyone running Linux \>= 4db52602a6074e9cc523500b8304600ff63e7b85, \< 8e872c07e40d51a66dee7b280a23a460a2e1e3fa; \>= 4db52602a6074e9cc523500b8304600ff63e7b85, \< ed7d5599e6c398da74845767cd1e6a8370a160fc; \>= 4db52602a6074e9cc523500b8304600ff63e7b85, \< 7f2d6b31089e48db4653df832c9a6afdde9a1c29; \>= 4db52602a6074e9cc523500b8304600ff63e7b85, \< a3a8afa2f6e7f0dc266d08f02be3f3054241ba47; \>= 4db52602a6074e9cc523500b8304600ff63e7b85, \< a26b499b757cfc8bbff1088bb1b844639e250893
- Anyone running Linux 6.2

## Description

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

vfio: prevent infinite loop in vfio\_mig\_get\_next\_state() on blocked arc

vfio\_mig\_get\_next\_state() walks vfio\_from\_fsm\_table\[\] one step at a time,
looping to skip optional states the device does not support until
\*next\_fsm is supported. A blocked transition is encoded as
VFIO\_DEVICE\_STATE\_ERROR, which the trailing return reports as -EINVAL.

The skip loop does not account for the ERROR sentinel.
state\_flags\_table\[ERROR\] is ~0U and vfio\_from\_fsm\_table\[ERROR\]\[\*\] is
ERROR, so once \*next\_fsm becomes ERROR the loop condition stays true and
\*next\_fsm never changes. The blocked arcs STOP\_COPY -\> PRE\_COPY and
STOP\_COPY -\> PRE\_COPY\_P2P map to ERROR yet pass the support check on a
precopy-capable device, causing the loop to spin forever while holding
the driver state mutex. This can result in a soft lockup, and a panic
with softlockup\_panic set.

Terminate the skip loop on the ERROR sentinel so a blocked transition
falls through to the existing return and reports -EINVAL.

## Affected and fixed versions

- Linux: \>= 4db52602a6074e9cc523500b8304600ff63e7b85, \< 8e872c07e40d51a66dee7b280a23a460a2e1e3fa; \>= 4db52602a6074e9cc523500b8304600ff63e7b85, \< ed7d5599e6c398da74845767cd1e6a8370a160fc; \>= 4db52602a6074e9cc523500b8304600ff63e7b85, \< 7f2d6b31089e48db4653df832c9a6afdde9a1c29; \>= 4db52602a6074e9cc523500b8304600ff63e7b85, \< a3a8afa2f6e7f0dc266d08f02be3f3054241ba47; \>= 4db52602a6074e9cc523500b8304600ff63e7b85, \< a26b499b757cfc8bbff1088bb1b844639e250893 (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64474. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64474.md
Affected: Linux >= 4db52602a6074e9cc523500b8304600ff63e7b85, < 8e872c07e40d51a66dee7b280a23a460a2e1e3fa; >= 4db52602a6074e9cc523500b8304600ff63e7b85, < ed7d5599e6c398da74845767cd1e6a8370a160fc; >= 4db52602a6074e9cc523500b8304600ff63e7b85, < 7f2d6b31089e48db4653df832c9a6afdde9a1c29; >= 4db52602a6074e9cc523500…
Fixed in: Linux 8e872c07e40d51a66dee7b280a23a460a2e1e3fa, Linux 7f2d6b31089e48db4653df832c9a6afdde9a1c29

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64474 being exploited?

There is no confirmed exploitation: CVE-2026-64474 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64474?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-64474?

Linux \>= 4db52602a6074e9cc523500b8304600ff63e7b85, \< 8e872c07e40d51a66dee7b280a23a460a2e1e3fa; \>= 4db52602a6074e9cc523500b8304600ff63e7b85, \< ed7d5599e6c398da74845767cd1e6a8370a160fc; \>= 4db52602a6074e9cc523500b8304600ff63e7b85, \< 7f2d6b31089e48db4653df832c9a6afdde9a1c29; \>= 4db52602a6074e9cc523500b8304600ff63e7b85, \< a3a8afa2f6e7f0dc266d08f02be3f3054241ba47; \>= 4db52602a6074e9cc523500b8304600ff63e7b85, \< a26b499b757cfc8bbff1088bb1b844639e250893; Linux 6.2.

### Is there a fix for CVE-2026-64474?

Yes. Fixed in Linux 8e872c07e40d51a66dee7b280a23a460a2e1e3fa, Linux 7f2d6b31089e48db4653df832c9a6afdde9a1c29. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-64474?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/8e872c07e40d51a66dee7b280a23a460a2e1e3fa>
- patch: <https://git.kernel.org/stable/c/ed7d5599e6c398da74845767cd1e6a8370a160fc>
- patch: <https://git.kernel.org/stable/c/7f2d6b31089e48db4653df832c9a6afdde9a1c29>
- patch: <https://git.kernel.org/stable/c/a3a8afa2f6e7f0dc266d08f02be3f3054241ba47>
- patch: <https://git.kernel.org/stable/c/a26b499b757cfc8bbff1088bb1b844639e250893>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64474>

HTML: <https://flawdb.com/CVE-2026-64474> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64474>
