From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796433713; b=dGdgnOQvLmMVOsTLm9HzpQFKvXlLJkqGmekC/CK6sbYqG52/CnOUaEGba9op3U0T0Dt4 1x5pjpWbdvx8uYV/nTTj8oCAZjeU88rBn+RqUSV/GPZDUbbjh68YqGXax/Y4NMQpGxLOi CNXgPKyvM+GURADAZrpfEaTdvp/8ofD5e9yxNlHEdU0mlYQqdK5AEHGRZ7z1S2smUZ1jJ N8IJZsONvOnmYRB6v+aHlAGB0d1NURm0vOoWn1JJMNAaSFqJQLd8wfnIFZB12PP4CAQg4 hUO2s6yUFp6vHeEKWFI6qPbngeAD3OLIRTbef6JGn2S+REInbEnOn8mhD13EHMgvLvA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796433713; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=SwYXfSPTdk/3rGVbqeBnHh/dGAavRLINOobM5jCTobM=; b=OgTI79VabBBeDOI6UAjRNI8J7Z6M4rStDxosSnTeCtvGBnsBxwn6wgfag/cds9s98PM/ hJ9XHG6YcWa7/6eKO7Ih3digx/PS5t/yXnvszGV8w7C3i+28thVdlGqJwtxnBeYf1UgWT O+WmsPJ6w2Slo4b65gfYEH8qFUsvIxHStJObtwnRU0LPnUE6qYJz6WC9eBxYx+QdtEgTp laq2xSSPjpMO7FZqNhJHQGWyz9bD0LaTGI5nHm3xrg1k2BBYTvhtw460ZujISogrcf2Vv Uo5yJAs6AduPhbtIPncYFg3x5SHRLcddHBRg/4iJ8+H9ozZdHMHlU/XHMo1xoNWzfRw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=p1jsGZKD; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 555CF606A330 for ; Sat, 5 Dec 2026 01:21:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=p1jsGZKD Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B4631F0092B; Sat, 5 Dec 2026 01:21:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796433712; bh=SwYXfSPTdk/3rGVbqeBnHh/dGAavRLINOobM5jCTobM=; h=From:To:Cc:Subject:Date:Reply-To; b=p1jsGZKD9VvCEiTIzCQpEAgt/+MUVu6Ycg4KOXd6AYkV++1BZVtJ8MR6d14CjJrK2 pfj9KoBU4dTYkhod0Ijruxzd/h1hxx4Bm2jhmgm8HFwqQq/kWIx+tvFwFG9J+Up1Iw 0BkXhdnxoolKwTQi3+zNw5UNEoWVlU+pUx50JDLU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-143407: crypto: qat - fix use of destroyed vf2pf_lock on VF restart Date: Sat, 5 Dec 2026 10:20:44 +0900 Message-ID: <2026120540-CVE-2026-143407-7530@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3699; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tuAEtJgH1l5xlNq03drWdf3n8whTs5ZlcMVIIdyZwtM=; b=owGbwMvMwCRo6H6F97bub03G02pJDNnCaS8kVl7d6Mg2NTloy/qGp4Lyb+XjZj4JF/LcdOCjo eMT3ei1HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARVy2GBWteqmw7pPh44XTz w3pvFLPevVE5MpNhDp/33vpgr0ufbjBP/WupvD9E/krTFgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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(). The Linux kernel CVE team has assigned CVE-2026-143407 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit 6f1b5236348fced7e7691a933327694b4106bc39 and fixed in 6.12.117 with commit 3377a6a9ebb921829767524bf801b720c822b51d Issue introduced in 6.12 with commit 6f1b5236348fced7e7691a933327694b4106bc39 and fixed in 6.18.63 with commit 335a0eaaa0d72197c52ba7230c869ef587904109 Issue introduced in 6.12 with commit 6f1b5236348fced7e7691a933327694b4106bc39 and fixed in 7.3.4 with commit 0ef0d14f1b2641e274599c82e639f50facac2d8d Issue introduced in 6.12 with commit 6f1b5236348fced7e7691a933327694b4106bc39 and fixed in 7.4-rc1 with commit 4921634ac0a9a65aaa5e41308aabda3d3f562ee3 Issue introduced in 6.10.13 with commit f39df661e9f6703a79ef8ff121f7bdfb394a7734 Issue introduced in 6.11.2 with commit 18cc7feb11cba02c79037a5ffaeae7da267ba4a3 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-143407 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/crypto/intel/qat/qat_common/adf_dev_mgr.c drivers/crypto/intel/qat/qat_common/adf_vf_isr.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/3377a6a9ebb921829767524bf801b720c822b51d https://git.kernel.org/stable/c/335a0eaaa0d72197c52ba7230c869ef587904109 https://git.kernel.org/stable/c/0ef0d14f1b2641e274599c82e639f50facac2d8d https://git.kernel.org/stable/c/4921634ac0a9a65aaa5e41308aabda3d3f562ee3