crypto: qat - fix use of destroyed vf2pf_lock on VF restart
- CVE-2026-143407
- EUVD-2026-145004
Summary
In the Linux kernel's Intel QAT crypto driver, adf_dev_stop_async() sends the RESTARTING_COMPLETE message after adf_dev_down() has already destroyed the vf2pf_lock mutex that the message needs. Because both steps run in sequence in the same worker, every PF restart attempts to lock a destroyed mutex. With CONFIG_DEBUG_MUTEXES enabled, this produces a kernel warning on the first PF reset, shown on a dh895xcc device with 32 host-bound VFs. The fix ties the lifetime of vf2pf_lock to the accel device instead, alongside state_lock, so it remains valid for messages sent outside the device up/down cycle. The lock is only used for VFs.
AI summary · verify against the vendor advisory
Description
In the Linux kernel, the following vulnerability has been resolved: crypto: qat - fix use of destroyed vf2pf_lock on VF restart adf_dev_stop_async() sends the RESTARTING_COMPLETE message after adf_dev_down() has returned, but adf_dev_down() already destroyed the lock that message takes. Both run in sequence in the same worker, so every PF restart locks a destroyed mutex. With CONFIG_DEBUG_MUTEXES on a dh895xcc with 32 host-bound VFs this trips on the first PF reset: DEBUG_LOCKS_WARN_ON(lock->magic != lock) WARNING: kernel/locking/mutex.c:159 at mutex_lock+0x171/0x1c0 Workqueue: adf_vf_stop_wq adf_dev_stop_async [intel_qat] Call Trace: adf_gen2_pfvf_send+0x210/0x530 [intel_qat] adf_vf2pf_notify_restart_complete+0x55/0x80 [intel_qat] adf_dev_stop_async+0xdb/0x140 [intel_qat] The notification cannot move before adf_dev_down(): the PF waits for it before its own reset and the VF must tear down its rings first. vf2pf_lock protects the VF2PF CSR and is unrelated to the PF2VF bottom half it is initialised alongside. Tie its lifetime to the accel device, next to state_lock in adf_devmgr_add_dev()/adf_devmgr_rm_dev(), so it stays valid for messages sent outside the device up/down cycle. It is only touched for VFs, which set is_vf before adf_devmgr_add_dev() and keep it set until adf_devmgr_rm_dev().
Text from the CVE.org record.
Recommendation
Linux
- If you run a version from 6.10.13 to before 6.11update to 6.11 or laterMinor version change: check the release notes
Some affected versions have no stated fix.
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Linux
Affected versions Fixed in from 6.10.13 to before 6.11 6.11 from 6.11.2 to before 6.12 none stated 6.12 none stated before 6.12: not affected none stated from 6.12.117 up to 6.12.*: not affected none stated from 6.18.63 up to 6.18.*: not affected none stated from 7.3.4 up to 7.3.*: not affected none stated from 7.4-rc1 onwards: not affected none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.