AZL-117109: CVE-2026-139403 affecting package kernel 6.6.161.1-1
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
Event History
Frequently Asked Questions
Which systems are exposed to the kernel crash?
Systems are exposed when a physical function is bound to the driver using driver_override and passed through to a virtual machine. In that configuration, the PF's pf_qm can remain NULL and a reset attempt can crash the kernel.
What event triggers the vulnerable path?
The path runs when open_device invokes pci_try_reset_function(), causing the PCI error handler's reset_prepare() to execute before the migration-operations gate. A NULL pf_qm is then dereferenced while logging the reset timeout.
Is this limited to migration-capable devices?
No. The issue occurs because reset_prepare() and aer_reset_done() performed QM_RESETTING coordination before checking mig_ops. Non-migration devices should skip that coordination.
What is the impact beyond the NULL dereference?
The reset-completion path could leave set_reset_flag set after clearing QM_RESETTING. A later timed-out reset could then release a lock belonging to another operation.