CVE-2026-143408 crypto: qat - initialise state_lock on every path in adf_devmgr_add_dev()
linux linux: no CVSS score yet.
In the Linux kernel, the following vulnerability has been resolved:
crypto: qat - initialise state_lock on every path in adf_devmgr_add_dev()
state_lock is initialised at the end of adf_devmgr_add_dev(), but the VF
on host path whose id mapping already exists returns earlier via
'goto unlock'. That mapping outlives the VF, so this path is taken every
time a VF is recreated on a BDF that already hosted one, e.g.:
echo 0 > sriov_numvfs
echo 32 > sriov_numvfs
accel_dev is freshly allocated on each probe, so state_lock is left zeroed
and adf_dev_up() takes an uninitialised mutex. With CONFIG_DEBUG_MUTEXES
this is reported on a dh895xcc with 32 host-bound VFs:
DEBUG_LOCKS_WARN_ON(lock->magic != lock)
WARNING: kernel/locking/mutex.c:159 at mutex_lock+0x171/0x1c0
Call Trace:
adf_dev_up+0x27/0xe0 [intel_qat]
adf_probe+0x700/0xa80 [qat_dh895xccvf]
local_pci_probe+0xd5/0x190
The same happens on teardown when adf_dev_down() locks it again.
Initialise the lock next to the other per-device state, before the tables
are updated, so it is done on every path.
- Published
- Assigned by
- Linux (CNA)
- NVD analysis
- Not in the NVD yet
- Record from
- the CVE List, synced
Fix and patched versions
- Linux Linux: fixed in 6.1.193
- Linux Linux: fixed in 6.6.163
- Linux Linux: fixed in 6.12.117
- Linux Linux: fixed in 6.18.63
- Linux Linux: fixed in 7.3.4
- Linux Linux: fixed in 7.4-rc1
Ask an AI about this CVE
Show the prompt
Explain CVE-2026-143408 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-143408?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-143408?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-143408 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
Versions
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Linux | from 6.1.28 before 6.1.193 |
| Linux | from 6.2.15 before 6.3 |
| Linux | from 6.3.2 before 6.4 |
| Linux | 6.4 and later |
Fixed in
| Product | Release line | Fixed in |
|---|---|---|
| Linux | 6.1 | 6.1.193 |
| Linux | 6.6 | 6.6.163 |
| Linux | 6.12 | 6.12.117 |
| Linux | 6.18 | 6.18.63 |
| Linux | 7.3 | 7.3.4 |
| Linux | later releases | 7.4-rc1 |
References
- https://git.kernel.org/stable/c/2bd1bac960fae5d723dc8e8ae4b86035530879bd
- https://git.kernel.org/stable/c/c3c7372d7bafdce29d0bdc46c9eab9818824df55
- https://git.kernel.org/stable/c/c8bb6220a64bc19451412190f48da637f8000562
- https://git.kernel.org/stable/c/741ac7c9673e65e5b2c02249ca9cf9c133ff21d6
- https://git.kernel.org/stable/c/486ed582d83aa64c4f7c25823944ea761c5d0036
- https://git.kernel.org/stable/c/4ad7c1bd5f3dcd3fd6efbb068d6ee2a68dddfece