{"id":"CVE-2026-139403","aliases":["CVE-2026-139403"],"related":[],"kind":"vulnerability","state":"published","title":"hisi_acc_vfio_pci: fix NULL dereference in reset_prepare on PF passthrough","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nhisi_acc_vfio_pci: fix NULL dereference in reset_prepare on PF passthrough\n\nWhen a PF is bound to the driver via driver_override and passed\nthrough to a VM, its pf_qm stays NULL. The PCI error handler\nreset_prepare() runs during open_device through\npci_try_reset_function(), before the mig_ops gate, and dereferences\nthe NULL pf_qm for the timeout log, crashing the kernel.\n\nMove the mig_ops check to the entry of reset_prepare() and\naer_reset_done() so non-migration devices skip the QM_RESETTING\ncoordination. The dev local resolved &qm->pdev->dev before the\ngate, so open code it at the dev_err() call where qm is known\nvalid. Also clear set_reset_flag together with QM_RESETTING in\naer_reset_done(); the flag was never cleared before, so a later\ntimed-out reset could release a foreign lock.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nhisi_acc_vfio_pci: fix NULL dereference in reset_prepare on PF passthrough\n\nWhen a PF is bound to the driver via driver_override and passed\nthrough to a VM, its pf_qm stays NULL. The PCI error handler\nreset_prepare() runs during open_device through\npci_try_reset_function(), before the mig_ops gate, and dereferences\nthe NULL pf_qm for the timeout log, crashing the kernel.\n\nMove the mig_ops check to the entry of reset_prepare() and\naer_reset_done() so non-migration devices skip the QM_RESETTING\ncoordination. The dev local resolved &qm->pdev->dev before the\ngate, so open code it at the dev_err() call where qm is known\nvalid. Also clear set_reset_flag together with QM_RESETTING in\naer_reset_done(); the flag was never cleared before, so a later\ntimed-out reset could release a foreign lock.","source":"cvelist"}],"published":"2026-11-30T13:34:26.107Z","modified":"2026-11-30T14:19:08.660Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b0eed085903e7758532696d64397901a75bba8ba","fixed":"8f09ff41154f97258efeab05e965a7991d5ab51b","status":"affected"},{"type":"git","introduced":"b0eed085903e7758532696d64397901a75bba8ba","fixed":"8197c76ab20bc6040b1e136e823f164703482ac2","status":"affected"},{"type":"git","introduced":"b0eed085903e7758532696d64397901a75bba8ba","fixed":"e1d2d60b1f50296828d3f7ff26c45d1a90f142ef","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.18","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/8f09ff41154f97258efeab05e965a7991d5ab51b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8197c76ab20bc6040b1e136e823f164703482ac2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e1d2d60b1f50296828d3f7ff26c45d1a90f142ef","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139403","url":"https://www.cve.org/CVERecord?id=CVE-2026-139403","licence":"CVE Terms of Use","modified":"2026-11-30T13:34:26.107Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139403","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139403","licence":"Public domain","modified":"2026-11-30T14:19:08.660Z"}],"updatedAt":"2026-11-30T14:32:57.169Z","epss":{"score":0.00198,"percentile":0.10123,"date":"2026-12-01T12:00:22.000Z"}}