All of lore.kernel.org
 help / color / mirror / Atom feed
* CVE-2026-143407: crypto: qat - fix use of destroyed vf2pf_lock on VF restart
@ 2026-12-05  1:20 Greg Kroah-Hartman
  0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2026-12-05  1:20 UTC (permalink / raw)
  To: linux-cve-announce; +Cc: Greg Kroah-Hartman

From: Greg Kroah-Hartman <gregkh@kernel.org>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-05  1:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05  1:20 CVE-2026-143407: crypto: qat - fix use of destroyed vf2pf_lock on VF restart Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.