{"id":"CVE-2026-139403","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:19:08.660","lastModified":"2026-11-30T14:19:08.660","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"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."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"b0eed085903e7758532696d64397901a75bba8ba","lessThan":"8f09ff41154f97258efeab05e965a7991d5ab51b","versionType":"git","status":"affected"},{"version":"b0eed085903e7758532696d64397901a75bba8ba","lessThan":"8197c76ab20bc6040b1e136e823f164703482ac2","versionType":"git","status":"affected"},{"version":"b0eed085903e7758532696d64397901a75bba8ba","lessThan":"e1d2d60b1f50296828d3f7ff26c45d1a90f142ef","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"5.18","status":"affected"},{"version":"0","lessThan":"5.18","versionType":"semver","status":"unaffected"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/8197c76ab20bc6040b1e136e823f164703482ac2","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/8f09ff41154f97258efeab05e965a7991d5ab51b","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/e1d2d60b1f50296828d3f7ff26c45d1a90f142ef","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}