CVE-2026-143407: crypto: qat - fix use of destroyed vf2pf_lock on VF restart

Published Dec 5, 2026
·
Updated

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

crypto: qat - fix use of destroyed vf2pflock on VF restart

adfdevstopasync() sends the RESTARTINGCOMPLETE message after adfdevdown() has returned, but adfdevdown() already destroyed the lock that message takes.

Both run in sequence in the same worker, so every PF restart locks a destroyed mutex. With CONFIGDEBUGMUTEXES on a dh895xcc with 32 host-bound VFs this trips on the first PF reset:

DEBUGLOCKSWARNON(lock->magic != lock) WARNING: kernel/locking/mutex.c:159 at mutexlock+0x171/0x1c0 Workqueue: adfvfstopwq adfdevstopasync [intelqat] Call Trace: adfgen2pfvfsend+0x210/0x530 [intelqat] adfvf2pfnotifyrestartcomplete+0x55/0x80 [intelqat] adfdevstopasync+0xdb/0x140 [intelqat]

The notification cannot move before adfdevdown(): the PF waits for it before its own reset and the VF must tear down its rings first.

vf2pflock 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 statelock in adfdevmgradddev()/adfdevmgrrmdev(), so it stays valid for messages sent outside the device up/down cycle. It is only touched for VFs, which set isvf before adfdevmgradddev() and keep it set until adfdevmgrrmdev().

Affected Software

1 affected component
Linux Linux kernel

Event History

Dec 5, 2026
CVE Published
via MITRE·01:20 AM
Data Sourced
via MITRE·01:20 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the Linux kernel Intel QAT driver with virtual functions are exposed when a physical function restart occurs. The reported reproduction used a dh895xcc device with 32 host-bound VFs.

2

What event triggers the faulty lock use?

A PF restart triggers the VF restart workflow. In that workflow, adf_dev_stop_async() sends a RESTARTING_COMPLETE message after adf_dev_down() has already destroyed vf2pf_lock.

3

How can administrators identify a likely affected system?

With CONFIG_DEBUG_MUTEXES enabled, the first PF reset can produce a DEBUG_LOCKS_WARN_ON(lock->magic != lock) warning at mutex_lock, with adf_dev_stop_async and adf_vf2pf_notify_restart_complete in the call trace.

4

What does the fix change?

The fix ties vf2pf_lock's lifetime to the accelerator device rather than the device up/down cycle. This keeps the lock valid for VF-to-PF messages sent after device teardown during restart handling.

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