CVE-2026-64474

Source
https://cve.org/CVERecord?id=CVE-2026-64474
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64474.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64474
Downstream
Published
2026-07-25T08:51:37.405Z
Modified
2026-07-27T04:03:22.513718305Z
Summary
vfio: prevent infinite loop in vfio_mig_get_next_state() on blocked arc
Details

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

vfio: prevent infinite loop in vfiomiggetnextstate() on blocked arc

vfiomiggetnextstate() walks vfiofromfsmtable[] one step at a time, looping to skip optional states the device does not support until *nextfsm is supported. A blocked transition is encoded as VFIODEVICESTATE_ERROR, which the trailing return reports as -EINVAL.

The skip loop does not account for the ERROR sentinel. stateflagstable[ERROR] is ~0U and vfiofromfsmtable[ERROR][*] is ERROR, so once *nextfsm becomes ERROR the loop condition stays true and *nextfsm never changes. The blocked arcs STOPCOPY -> PRECOPY and STOPCOPY -> PRECOPYP2P 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64474.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4db52602a6074e9cc523500b8304600ff63e7b85
Fixed
8e872c07e40d51a66dee7b280a23a460a2e1e3fa
Fixed
ed7d5599e6c398da74845767cd1e6a8370a160fc
Fixed
7f2d6b31089e48db4653df832c9a6afdde9a1c29
Fixed
a3a8afa2f6e7f0dc266d08f02be3f3054241ba47
Fixed
a26b499b757cfc8bbff1088bb1b844639e250893

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64474.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.145
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.96
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.39
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64474.json"