{"api_version":"1","generated_at":"2026-07-26T03:22:11+00:00","cve":"CVE-2026-64474","urls":{"html":"https://cve.report/CVE-2026-64474","api":"https://cve.report/api/cve/CVE-2026-64474.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-64474","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-64474"},"summary":{"title":"vfio: prevent infinite loop in vfio_mig_get_next_state() on blocked arc","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nvfio: prevent infinite loop in vfio_mig_get_next_state() on blocked arc\n\nvfio_mig_get_next_state() walks vfio_from_fsm_table[] one step at a time,\nlooping to skip optional states the device does not support until\n*next_fsm is supported. A blocked transition is encoded as\nVFIO_DEVICE_STATE_ERROR, which the trailing return reports as -EINVAL.\n\nThe skip loop does not account for the ERROR sentinel.\nstate_flags_table[ERROR] is ~0U and vfio_from_fsm_table[ERROR][*] is\nERROR, so once *next_fsm becomes ERROR the loop condition stays true and\n*next_fsm never changes. The blocked arcs STOP_COPY -> PRE_COPY and\nSTOP_COPY -> PRE_COPY_P2P map to ERROR yet pass the support check on a\nprecopy-capable device, causing the loop to spin forever while holding\nthe driver state mutex. This can result in a soft lockup, and a panic\nwith softlockup_panic set.\n\nTerminate the skip loop on the ERROR sentinel so a blocked transition\nfalls through to the existing return and reports -EINVAL.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-07-25 10:17:32","updated_at":"2026-07-25 10:17:32"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/ed7d5599e6c398da74845767cd1e6a8370a160fc","name":"https://git.kernel.org/stable/c/ed7d5599e6c398da74845767cd1e6a8370a160fc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a3a8afa2f6e7f0dc266d08f02be3f3054241ba47","name":"https://git.kernel.org/stable/c/a3a8afa2f6e7f0dc266d08f02be3f3054241ba47","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8e872c07e40d51a66dee7b280a23a460a2e1e3fa","name":"https://git.kernel.org/stable/c/8e872c07e40d51a66dee7b280a23a460a2e1e3fa","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a26b499b757cfc8bbff1088bb1b844639e250893","name":"https://git.kernel.org/stable/c/a26b499b757cfc8bbff1088bb1b844639e250893","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7f2d6b31089e48db4653df832c9a6afdde9a1c29","name":"https://git.kernel.org/stable/c/7f2d6b31089e48db4653df832c9a6afdde9a1c29","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-64474","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64474","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4db52602a6074e9cc523500b8304600ff63e7b85 8e872c07e40d51a66dee7b280a23a460a2e1e3fa git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4db52602a6074e9cc523500b8304600ff63e7b85 ed7d5599e6c398da74845767cd1e6a8370a160fc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4db52602a6074e9cc523500b8304600ff63e7b85 7f2d6b31089e48db4653df832c9a6afdde9a1c29 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4db52602a6074e9cc523500b8304600ff63e7b85 a3a8afa2f6e7f0dc266d08f02be3f3054241ba47 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4db52602a6074e9cc523500b8304600ff63e7b85 a26b499b757cfc8bbff1088bb1b844639e250893 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.2","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.145 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.96 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.39 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1.4 7.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"64474","cve":"CVE-2026-64474","epss":"0.002090000","percentile":"0.111770000","score_date":"2026-07-25","updated_at":"2026-07-26 00:12:33"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/vfio/vfio_main.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"8e872c07e40d51a66dee7b280a23a460a2e1e3fa","status":"affected","version":"4db52602a6074e9cc523500b8304600ff63e7b85","versionType":"git"},{"lessThan":"ed7d5599e6c398da74845767cd1e6a8370a160fc","status":"affected","version":"4db52602a6074e9cc523500b8304600ff63e7b85","versionType":"git"},{"lessThan":"7f2d6b31089e48db4653df832c9a6afdde9a1c29","status":"affected","version":"4db52602a6074e9cc523500b8304600ff63e7b85","versionType":"git"},{"lessThan":"a3a8afa2f6e7f0dc266d08f02be3f3054241ba47","status":"affected","version":"4db52602a6074e9cc523500b8304600ff63e7b85","versionType":"git"},{"lessThan":"a26b499b757cfc8bbff1088bb1b844639e250893","status":"affected","version":"4db52602a6074e9cc523500b8304600ff63e7b85","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/vfio/vfio_main.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.2"},{"lessThan":"6.2","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.145","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.96","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.39","versionType":"semver"},{"lessThanOrEqual":"7.1.*","status":"unaffected","version":"7.1.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.2-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.145","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.96","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.39","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.1.4","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2-rc1","versionStartIncluding":"6.2","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nvfio: prevent infinite loop in vfio_mig_get_next_state() on blocked arc\n\nvfio_mig_get_next_state() walks vfio_from_fsm_table[] one step at a time,\nlooping to skip optional states the device does not support until\n*next_fsm is supported. A blocked transition is encoded as\nVFIO_DEVICE_STATE_ERROR, which the trailing return reports as -EINVAL.\n\nThe skip loop does not account for the ERROR sentinel.\nstate_flags_table[ERROR] is ~0U and vfio_from_fsm_table[ERROR][*] is\nERROR, so once *next_fsm becomes ERROR the loop condition stays true and\n*next_fsm never changes. The blocked arcs STOP_COPY -> PRE_COPY and\nSTOP_COPY -> PRE_COPY_P2P map to ERROR yet pass the support check on a\nprecopy-capable device, causing the loop to spin forever while holding\nthe driver state mutex. This can result in a soft lockup, and a panic\nwith softlockup_panic set.\n\nTerminate the skip loop on the ERROR sentinel so a blocked transition\nfalls through to the existing return and reports -EINVAL."}],"providerMetadata":{"dateUpdated":"2026-07-25T08:51:37.405Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/8e872c07e40d51a66dee7b280a23a460a2e1e3fa"},{"url":"https://git.kernel.org/stable/c/ed7d5599e6c398da74845767cd1e6a8370a160fc"},{"url":"https://git.kernel.org/stable/c/7f2d6b31089e48db4653df832c9a6afdde9a1c29"},{"url":"https://git.kernel.org/stable/c/a3a8afa2f6e7f0dc266d08f02be3f3054241ba47"},{"url":"https://git.kernel.org/stable/c/a26b499b757cfc8bbff1088bb1b844639e250893"}],"title":"vfio: prevent infinite loop in vfio_mig_get_next_state() on blocked arc","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-64474","datePublished":"2026-07-25T08:51:37.405Z","dateReserved":"2026-07-19T15:36:31.790Z","dateUpdated":"2026-07-25T08:51:37.405Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-07-25 10:17:32","lastModifiedDate":"2026-07-25 10:17:32","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"64474","Ordinal":"1","Title":"vfio: prevent infinite loop in vfio_mig_get_next_state() on bloc","CVE":"CVE-2026-64474","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"64474","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nvfio: prevent infinite loop in vfio_mig_get_next_state() on blocked arc\n\nvfio_mig_get_next_state() walks vfio_from_fsm_table[] one step at a time,\nlooping to skip optional states the device does not support until\n*next_fsm is supported. A blocked transition is encoded as\nVFIO_DEVICE_STATE_ERROR, which the trailing return reports as -EINVAL.\n\nThe skip loop does not account for the ERROR sentinel.\nstate_flags_table[ERROR] is ~0U and vfio_from_fsm_table[ERROR][*] is\nERROR, so once *next_fsm becomes ERROR the loop condition stays true and\n*next_fsm never changes. The blocked arcs STOP_COPY -> PRE_COPY and\nSTOP_COPY -> PRE_COPY_P2P map to ERROR yet pass the support check on a\nprecopy-capable device, causing the loop to spin forever while holding\nthe driver state mutex. This can result in a soft lockup, and a panic\nwith softlockup_panic set.\n\nTerminate the skip loop on the ERROR sentinel so a blocked transition\nfalls through to the existing return and reports -EINVAL.","Type":"Description","Title":"vfio: prevent infinite loop in vfio_mig_get_next_state() on bloc"}]}}}