CVE-2026-139403: hisi_acc_vfio_pci: fix NULL dereference in reset_prepare on PF passthrough

Published Nov 30, 2026
·
Updated

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

hisiaccvfiopci: fix NULL dereference in resetprepare on PF passthrough

When a PF is bound to the driver via driveroverride and passed through to a VM, its pfqm stays NULL. The PCI error handler resetprepare() runs during opendevice through pcitryresetfunction(), before the migops gate, and dereferences the NULL pfqm for the timeout log, crashing the kernel.

Move the migops check to the entry of resetprepare() and aerresetdone() so non-migration devices skip the QMRESETTING coordination. The dev local resolved &qm->pdev->dev before the gate, so open code it at the deverr() call where qm is known valid. Also clear setresetflag together with QMRESETTING in aerresetdone(); the flag was never cleared before, so a later timed-out reset could release a foreign lock.

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:34 PM
Data Sourced
via MITRE·01:34 PM
Description

Frequently Asked Questions

1

Which systems are exposed to the NULL dereference?

Systems are exposed when a HiSilicon accelerator PF is bound through driver_override and passed through to a VM, leaving its pf_qm NULL. The crash occurs when open_device triggers pci_try_reset_function() and invokes reset_prepare().

2

Does this affect devices that do not support migration?

The vulnerable reset path incorrectly performed QM_RESETTING coordination before checking mig_ops. The fix makes reset_prepare() and aer_reset_done() skip that coordination for non-migration devices.

3

What is the practical impact if the issue is triggered?

The kernel can crash due to a NULL pf_qm dereference during the PCI error handler's reset_prepare() path. A separate reset-state flaw could also allow a later timed-out reset to release a foreign lock because set_reset_flag was not cleared.

4

How can administrators identify a potentially affected configuration?

Check for HiSilicon accelerator PFs that are bound using driver_override and assigned directly to virtual machines. Such PF passthrough configurations can enter the affected reset path during device open/reset operations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203