{"id":"CVE-2026-143407","aliases":["EUVD-2026-145004","GHSA-grxr-5q34-h2h2"],"status":"published","title":"crypto: qat - fix use of destroyed vf2pf_lock on VF restart","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - fix use of destroyed vf2pf_lock on VF restart\n\nadf_dev_stop_async() sends the RESTARTING_COMPLETE message after\nadf_dev_down() has returned, but adf_dev_down() already destroyed the\nlock that message takes.\n\nBoth run in sequence in the same worker, so every PF restart locks a\ndestroyed mutex. With CONFIG_DEBUG_MUTEXES on a dh895xcc with 32 host-bound\nVFs this trips on the first PF reset:\n\n  DEBUG_LOCKS_WARN_ON(lock-\u003emagic != lock)\n  WARNING: kernel/locking/mutex.c:159 at mutex_lock+0x171/0x1c0\n  Workqueue: adf_vf_stop_wq adf_dev_stop_async [intel_qat]\n  Call Trace:\n   adf_gen2_pfvf_send+0x210/0x530 [intel_qat]\n   adf_vf2pf_notify_restart_complete+0x55/0x80 [intel_qat]\n   adf_dev_stop_async+0xdb/0x140 [intel_qat]\n\nThe notification cannot move before adf_dev_down(): the PF waits for it\nbefore its own reset and the VF must tear down its rings first.\n\nvf2pf_lock protects the VF2PF CSR and is unrelated to the PF2VF bottom half\nit is initialised alongside. Tie its lifetime to the accel device, next to\nstate_lock in adf_devmgr_add_dev()/adf_devmgr_rm_dev(), so it stays valid\nfor messages sent outside the device up/down cycle. It is only touched for\nVFs, which set is_vf before adf_devmgr_add_dev() and keep it set until\nadf_devmgr_rm_dev().","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2026-12-05T01:20:32Z","modified":"2026-12-05T03:30:36Z","fixes":[{"ecosystem":"Linux","package":"Kernel","fixed_in":["6.11","6.12","6.12.117","6.18.63","7.3.4"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Linux","package":"Kernel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.10.13"},{"fixed":"6.11"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.11.2"},{"fixed":"6.12"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.12.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}]}],"products":[{"vendor":"linux","product":"linux"}],"references":[{"url":"https://git.kernel.org/stable/c/3377a6a9ebb921829767524bf801b720c822b51d","tags":["web"]},{"url":"https://git.kernel.org/stable/c/335a0eaaa0d72197c52ba7230c869ef587904109","tags":["web"]},{"url":"https://git.kernel.org/stable/c/0ef0d14f1b2641e274599c82e639f50facac2d8d","tags":["web"]},{"url":"https://git.kernel.org/stable/c/4921634ac0a9a65aaa5e41308aabda3d3f562ee3","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143407","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-grxr-5q34-h2h2"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143407.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-143407","title":"crypto: qat - fix use of destroyed vf2pf_lock on VF restart","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - fix use of destroyed vf2pf_lock on VF restart\n\nadf_dev_stop_async() sends the RESTARTING_COMPLETE message after\nadf_dev_down() has returned, but adf_dev_down() already destroyed the\nlock that message takes.\n\nBoth run in sequence in the same worker, so every PF restart locks a\ndestroyed mutex. With CONFIG_DEBUG_MUTEXES on a dh895xcc with 32 host-bound\nVFs this trips on the first PF reset:\n\n  DEBUG_LOCKS_WARN_ON(lock-\u003emagic != lock)\n  WARNING: kernel/locking/mutex.c:159 at mutex_lock+0x171/0x1c0\n  Workqueue: adf_vf_stop_wq adf_dev_stop_async [intel_qat]\n  Call Trace:\n   adf_gen2_pfvf_send+0x210/0x530 [intel_qat]\n   adf_vf2pf_notify_restart_complete+0x55/0x80 [intel_qat]\n   adf_dev_stop_async+0xdb/0x140 [intel_qat]\n\nThe notification cannot move before adf_dev_down(): the PF waits for it\nbefore its own reset and the VF must tear down its rings first.\n\nvf2pf_lock protects the VF2PF CSR and is unrelated to the PF2VF bottom half\nit is initialised alongside. Tie its lifetime to the accel device, next to\nstate_lock in adf_devmgr_add_dev()/adf_devmgr_rm_dev(), so it stays valid\nfor messages sent outside the device up/down cycle. It is only touched for\nVFs, which set is_vf before adf_devmgr_add_dev() and keep it set until\nadf_devmgr_rm_dev().","status":"published","published":"2026-12-05T01:20:32.992Z","modified":"2026-12-05T01:20:32.992Z","updated_at":"2026-12-05T01:24:03.178575Z"}],"euvd":[{"id":"EUVD-2026-145004","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - fix use of destroyed vf2pf_lock on VF restart\n\nadf_dev_stop_async() sends the RESTARTING_COMPLETE message after\nadf_dev_down() has returned, but adf_dev_down() already destroyed the\nlock that message takes.\n\nBoth run in sequence in the same worker, so every PF restart locks a\ndestroyed mutex. With CONFIG_DEBUG_MUTEXES on a dh895xcc with 32 host-bound\nVFs this trips on the first PF reset:\n\n  DEBUG_LOCKS_WARN_ON(lock-\u003emagic != lock)\n  WARNING: kernel/locking/mutex.c:159 at mutex_lock+0x171/0x1c0\n  Workqueue: adf_vf_stop_wq adf_dev_stop_async [intel_qat]\n  Call Trace:\n   adf_gen2_pfvf_send+0x210/0x530 [intel_qat]\n   adf_vf2pf_notify_restart_complete+0x55/0x80 [intel_qat]\n   adf_dev_stop_async+0xdb/0x140 [intel_qat]\n\nThe notification cannot move before adf_dev_down(): the PF waits for it\nbefore its own reset and the VF must tear down its rings first.\n\nvf2pf_lock protects the VF2PF CSR and is unrelated to the PF2VF bottom half\nit is initialised alongside. Tie its lifetime to the accel device, next to\nstate_lock in adf_devmgr_add_dev()/adf_devmgr_rm_dev(), so it stays valid\nfor messages sent outside the device up/down cycle. It is only touched for\nVFs, which set is_vf before adf_devmgr_add_dev() and keep it set until\nadf_devmgr_rm_dev().","status":"published","published":"2026-12-05T01:20:32Z","modified":"2026-12-05T01:20:32Z","updated_at":"2026-12-05T02:44:01.14226Z"}],"ghsa":[{"id":"GHSA-grxr-5q34-h2h2","title":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - fix use of...","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - fix use of destroyed vf2pf_lock on VF restart\n\nadf_dev_stop_async() sends the RESTARTING_COMPLETE message after\nadf_dev_down() has returned, but adf_dev_down() already destroyed the\nlock that message takes.\n\nBoth run in sequence in the same worker, so every PF restart locks a\ndestroyed mutex. With CONFIG_DEBUG_MUTEXES on a dh895xcc with 32 host-bound\nVFs this trips on the first PF reset:\n\n  DEBUG_LOCKS_WARN_ON(lock-\u003emagic != lock)\n  WARNING: kernel/locking/mutex.c:159 at mutex_lock+0x171/0x1c0\n  Workqueue: adf_vf_stop_wq adf_dev_stop_async [intel_qat]\n  Call Trace:\n   adf_gen2_pfvf_send+0x210/0x530 [intel_qat]\n   adf_vf2pf_notify_restart_complete+0x55/0x80 [intel_qat]\n   adf_dev_stop_async+0xdb/0x140 [intel_qat]\n\nThe notification cannot move before adf_dev_down(): the PF waits for it\nbefore its own reset and the VF must tear down its rings first.\n\nvf2pf_lock protects the VF2PF CSR and is unrelated to the PF2VF bottom half\nit is initialised alongside. Tie its lifetime to the accel device, next to\nstate_lock in adf_devmgr_add_dev()/adf_devmgr_rm_dev(), so it stays valid\nfor messages sent outside the device up/down cycle. It is only touched for\nVFs, which set is_vf before adf_devmgr_add_dev() and keep it set until\nadf_devmgr_rm_dev().","status":"published","published":"2026-12-05T03:30:28Z","modified":"2026-12-05T03:30:36Z","updated_at":"2026-12-05T03:31:20.896926Z"}],"nvd":[{"id":"CVE-2026-143407","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - fix use of destroyed vf2pf_lock on VF restart\n\nadf_dev_stop_async() sends the RESTARTING_COMPLETE message after\nadf_dev_down() has returned, but adf_dev_down() already destroyed the\nlock that message takes.\n\nBoth run in sequence in the same worker, so every PF restart locks a\ndestroyed mutex. With CONFIG_DEBUG_MUTEXES on a dh895xcc with 32 host-bound\nVFs this trips on the first PF reset:\n\n  DEBUG_LOCKS_WARN_ON(lock-\u003emagic != lock)\n  WARNING: kernel/locking/mutex.c:159 at mutex_lock+0x171/0x1c0\n  Workqueue: adf_vf_stop_wq adf_dev_stop_async [intel_qat]\n  Call Trace:\n   adf_gen2_pfvf_send+0x210/0x530 [intel_qat]\n   adf_vf2pf_notify_restart_complete+0x55/0x80 [intel_qat]\n   adf_dev_stop_async+0xdb/0x140 [intel_qat]\n\nThe notification cannot move before adf_dev_down(): the PF waits for it\nbefore its own reset and the VF must tear down its rings first.\n\nvf2pf_lock protects the VF2PF CSR and is unrelated to the PF2VF bottom half\nit is initialised alongside. Tie its lifetime to the accel device, next to\nstate_lock in adf_devmgr_add_dev()/adf_devmgr_rm_dev(), so it stays valid\nfor messages sent outside the device up/down cycle. It is only touched for\nVFs, which set is_vf before adf_devmgr_add_dev() and keep it set until\nadf_devmgr_rm_dev().","status":"published","published":"2026-12-05T03:19:50.98Z","modified":"2026-12-05T03:19:50.98Z","updated_at":"2026-12-05T03:21:31.003878Z"}],"osv":[{"id":"CVE-2026-143407","title":"crypto: qat - fix use of destroyed vf2pf_lock on VF restart","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - fix use of destroyed vf2pf_lock on VF restart\n\nadf_dev_stop_async() sends the RESTARTING_COMPLETE message after\nadf_dev_down() has returned, but adf_dev_down() already destroyed the\nlock that message takes.\n\nBoth run in sequence in the same worker, so every PF restart locks a\ndestroyed mutex. With CONFIG_DEBUG_MUTEXES on a dh895xcc with 32 host-bound\nVFs this trips on the first PF reset:\n\n  DEBUG_LOCKS_WARN_ON(lock-\u003emagic != lock)\n  WARNING: kernel/locking/mutex.c:159 at mutex_lock+0x171/0x1c0\n  Workqueue: adf_vf_stop_wq adf_dev_stop_async [intel_qat]\n  Call Trace:\n   adf_gen2_pfvf_send+0x210/0x530 [intel_qat]\n   adf_vf2pf_notify_restart_complete+0x55/0x80 [intel_qat]\n   adf_dev_stop_async+0xdb/0x140 [intel_qat]\n\nThe notification cannot move before adf_dev_down(): the PF waits for it\nbefore its own reset and the VF must tear down its rings first.\n\nvf2pf_lock protects the VF2PF CSR and is unrelated to the PF2VF bottom half\nit is initialised alongside. Tie its lifetime to the accel device, next to\nstate_lock in adf_devmgr_add_dev()/adf_devmgr_rm_dev(), so it stays valid\nfor messages sent outside the device up/down cycle. It is only touched for\nVFs, which set is_vf before adf_devmgr_add_dev() and keep it set until\nadf_devmgr_rm_dev().","status":"published","published":"2026-12-05T01:20:32.992Z","modified":"2026-12-05T03:00:58.267437504Z","updated_at":"2026-12-05T03:12:35.299313Z"}]}}
