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

Summary

CVECVE-2026-143407
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-12-05 03:19:50 UTC
Updated2026-12-05 03:19:50 UTC
DescriptionIn 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().

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 6f1b5236348fced7e7691a933327694b4106bc39 3377a6a9ebb921829767524bf801b720c822b51d git Not specified
CNA Linux Linux affected 6f1b5236348fced7e7691a933327694b4106bc39 335a0eaaa0d72197c52ba7230c869ef587904109 git Not specified
CNA Linux Linux affected 6f1b5236348fced7e7691a933327694b4106bc39 0ef0d14f1b2641e274599c82e639f50facac2d8d git Not specified
CNA Linux Linux affected 6f1b5236348fced7e7691a933327694b4106bc39 4921634ac0a9a65aaa5e41308aabda3d3f562ee3 git Not specified
CNA Linux Linux affected f39df661e9f6703a79ef8ff121f7bdfb394a7734 git Not specified
CNA Linux Linux affected 18cc7feb11cba02c79037a5ffaeae7da267ba4a3 git Not specified
CNA Linux Linux affected 6.10.13 6.11 semver Not specified
CNA Linux Linux affected 6.11.2 6.12 semver Not specified
CNA Linux Linux affected 6.12 Not specified
CNA Linux Linux unaffected 6.12 semver Not specified
CNA Linux Linux unaffected 6.12.117 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.63 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.4 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/335a0eaaa0d72197c52ba7230c869ef587904109 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/3377a6a9ebb921829767524bf801b720c822b51d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/0ef0d14f1b2641e274599c82e639f50facac2d8d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/4921634ac0a9a65aaa5e41308aabda3d3f562ee3 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report