{"id":"CVE-2026-139402","state":"PUBLISHED","title":"hisi_acc_vfio_pci: reject live migration on 64KB page with QM_HW_V3 hardware","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nhisi_acc_vfio_pci: reject live migration on 64KB page with QM_HW_V3 hardware\n\nOn QM_HW_V3 (VF_CTRL mode) hardware with 64KB pages, the functional\nregion and migration registers share one BAR2 physical page with no\nisolation, which leaks migration registers to the guest and causes\nguest kernel calltrace under the KVM emulated device scheme.\n\nThe previous fix rejected the device in hisi_acc_vf_qm_init() during\nopen_device, returning -EINVAL and breaking passthrough entirely.\nMove the drv_mode check into a helper called from probe() so that a\nVF_CTRL device on a 64KB page is bound to the generic ops, keeping\npassthrough working while disabling live migration.","publishedAt":"2026-11-30T13:34:25.529Z","updatedAt":"2026-11-30T13:34:25.529Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b0eed085903e7758532696d64397901a75bba8ba","status":"affected","lessThan":"d17567491fdf0d16eb92677ee4bb186f7c6b7741","versionType":"git"},{"version":"b0eed085903e7758532696d64397901a75bba8ba","status":"affected","lessThan":"a80597900b8a0f1a9e87360164695f6a0a10556c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c"]}],"references":["https://git.kernel.org/stable/c/d17567491fdf0d16eb92677ee4bb186f7c6b7741","https://git.kernel.org/stable/c/a80597900b8a0f1a9e87360164695f6a0a10556c"],"weaknesses":[],"ingestedAt":"2026-11-30T13:48:04.491Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139402.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139402","state":"PUBLISHED","datePublished":"2026-11-30T13:34:25.529Z","dateUpdated":"2026-11-30T13:34:25.529Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.931Z"},"containers":{"cna":{"title":"hisi_acc_vfio_pci: reject live migration on 64KB page with QM_HW_V3 hardware","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nhisi_acc_vfio_pci: reject live migration on 64KB page with QM_HW_V3 hardware\n\nOn QM_HW_V3 (VF_CTRL mode) hardware with 64KB pages, the functional\nregion and migration registers share one BAR2 physical page with no\nisolation, which leaks migration registers to the guest and causes\nguest kernel calltrace under the KVM emulated device scheme.\n\nThe previous fix rejected the device in hisi_acc_vf_qm_init() during\nopen_device, returning -EINVAL and breaking passthrough entirely.\nMove the drv_mode check into a helper called from probe() so that a\nVF_CTRL device on a 64KB page is bound to the generic ops, keeping\npassthrough working while disabling live migration."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b0eed085903e7758532696d64397901a75bba8ba","status":"affected","lessThan":"d17567491fdf0d16eb92677ee4bb186f7c6b7741","versionType":"git"},{"version":"b0eed085903e7758532696d64397901a75bba8ba","status":"affected","lessThan":"a80597900b8a0f1a9e87360164695f6a0a10556c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d17567491fdf0d16eb92677ee4bb186f7c6b7741"},{"url":"https://git.kernel.org/stable/c/a80597900b8a0f1a9e87360164695f6a0a10556c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:34:25.529Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}