{"id":"CVE-2026-143408","aliases":["EUVD-2026-145005","GHSA-66gm-53fx-2qfm"],"status":"published","title":"crypto: qat - initialise state_lock on every path in adf_devmgr_add_dev()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - initialise state_lock on every path in adf_devmgr_add_dev()\n\nstate_lock is initialised at the end of adf_devmgr_add_dev(), but the VF\non host path whose id mapping already exists returns earlier via\n'goto unlock'. That mapping outlives the VF, so this path is taken every\ntime a VF is recreated on a BDF that already hosted one, e.g.:\n\n\techo 0 \u003e sriov_numvfs\n\techo 32 \u003e sriov_numvfs\n\naccel_dev is freshly allocated on each probe, so state_lock is left zeroed\nand adf_dev_up() takes an uninitialised mutex. With CONFIG_DEBUG_MUTEXES\nthis is reported on a dh895xcc with 32 host-bound VFs:\n\n  DEBUG_LOCKS_WARN_ON(lock-\u003emagic != lock)\n  WARNING: kernel/locking/mutex.c:159 at mutex_lock+0x171/0x1c0\n  Call Trace:\n   adf_dev_up+0x27/0xe0 [intel_qat]\n   adf_probe+0x700/0xa80 [qat_dh895xccvf]\n   local_pci_probe+0xd5/0x190\n\nThe same happens on teardown when adf_dev_down() locks it again.\n\nInitialise the lock next to the other per-device state, before the tables\nare updated, so it is done on every path.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2026-12-05T01:20:33Z","modified":"2026-12-05T03:30:36Z","fixes":[{"ecosystem":"Linux","package":"Kernel","fixed_in":["6.1.193","6.3","6.4","6.6.163","6.12.117","6.18.63","7.3.4"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Linux","package":"Kernel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.1.28"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.15"},{"fixed":"6.3"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.3.2"},{"fixed":"6.4"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.4.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.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/2bd1bac960fae5d723dc8e8ae4b86035530879bd","tags":["web"]},{"url":"https://git.kernel.org/stable/c/c3c7372d7bafdce29d0bdc46c9eab9818824df55","tags":["web"]},{"url":"https://git.kernel.org/stable/c/c8bb6220a64bc19451412190f48da637f8000562","tags":["web"]},{"url":"https://git.kernel.org/stable/c/741ac7c9673e65e5b2c02249ca9cf9c133ff21d6","tags":["web"]},{"url":"https://git.kernel.org/stable/c/486ed582d83aa64c4f7c25823944ea761c5d0036","tags":["web"]},{"url":"https://git.kernel.org/stable/c/4ad7c1bd5f3dcd3fd6efbb068d6ee2a68dddfece","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143408","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-66gm-53fx-2qfm"},{"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-143408.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-143408","title":"crypto: qat - initialise state_lock on every path in adf_devmgr_add_dev()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - initialise state_lock on every path in adf_devmgr_add_dev()\n\nstate_lock is initialised at the end of adf_devmgr_add_dev(), but the VF\non host path whose id mapping already exists returns earlier via\n'goto unlock'. That mapping outlives the VF, so this path is taken every\ntime a VF is recreated on a BDF that already hosted one, e.g.:\n\n\techo 0 \u003e sriov_numvfs\n\techo 32 \u003e sriov_numvfs\n\naccel_dev is freshly allocated on each probe, so state_lock is left zeroed\nand adf_dev_up() takes an uninitialised mutex. With CONFIG_DEBUG_MUTEXES\nthis is reported on a dh895xcc with 32 host-bound VFs:\n\n  DEBUG_LOCKS_WARN_ON(lock-\u003emagic != lock)\n  WARNING: kernel/locking/mutex.c:159 at mutex_lock+0x171/0x1c0\n  Call Trace:\n   adf_dev_up+0x27/0xe0 [intel_qat]\n   adf_probe+0x700/0xa80 [qat_dh895xccvf]\n   local_pci_probe+0xd5/0x190\n\nThe same happens on teardown when adf_dev_down() locks it again.\n\nInitialise the lock next to the other per-device state, before the tables\nare updated, so it is done on every path.","status":"published","published":"2026-12-05T01:20:33.9Z","modified":"2026-12-05T01:20:33.9Z","updated_at":"2026-12-05T01:24:03.178575Z"}],"euvd":[{"id":"EUVD-2026-145005","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - initialise state_lock on every path in adf_devmgr_add_dev()\n\nstate_lock is initialised at the end of adf_devmgr_add_dev(), but the VF\non host path whose id mapping already exists returns earlier via\n'goto unlock'. That mapping outlives the VF, so this path is taken every\ntime a VF is recreated on a BDF that already hosted one, e.g.:\n\n\techo 0 \u003e sriov_numvfs\n\techo 32 \u003e sriov_numvfs\n\naccel_dev is freshly allocated on each probe, so state_lock is left zeroed\nand adf_dev_up() takes an uninitialised mutex. With CONFIG_DEBUG_MUTEXES\nthis is reported on a dh895xcc with 32 host-bound VFs:\n\n  DEBUG_LOCKS_WARN_ON(lock-\u003emagic != lock)\n  WARNING: kernel/locking/mutex.c:159 at mutex_lock+0x171/0x1c0\n  Call Trace:\n   adf_dev_up+0x27/0xe0 [intel_qat]\n   adf_probe+0x700/0xa80 [qat_dh895xccvf]\n   local_pci_probe+0xd5/0x190\n\nThe same happens on teardown when adf_dev_down() locks it again.\n\nInitialise the lock next to the other per-device state, before the tables\nare updated, so it is done on every path.","status":"published","published":"2026-12-05T01:20:33Z","modified":"2026-12-05T01:20:33Z","updated_at":"2026-12-05T02:44:01.14226Z"}],"ghsa":[{"id":"GHSA-66gm-53fx-2qfm","title":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - initialise...","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - initialise state_lock on every path in adf_devmgr_add_dev()\n\nstate_lock is initialised at the end of adf_devmgr_add_dev(), but the VF\non host path whose id mapping already exists returns earlier via\n'goto unlock'. That mapping outlives the VF, so this path is taken every\ntime a VF is recreated on a BDF that already hosted one, e.g.:\n\n\techo 0 \u003e sriov_numvfs\n\techo 32 \u003e sriov_numvfs\n\naccel_dev is freshly allocated on each probe, so state_lock is left zeroed\nand adf_dev_up() takes an uninitialised mutex. With CONFIG_DEBUG_MUTEXES\nthis is reported on a dh895xcc with 32 host-bound VFs:\n\n  DEBUG_LOCKS_WARN_ON(lock-\u003emagic != lock)\n  WARNING: kernel/locking/mutex.c:159 at mutex_lock+0x171/0x1c0\n  Call Trace:\n   adf_dev_up+0x27/0xe0 [intel_qat]\n   adf_probe+0x700/0xa80 [qat_dh895xccvf]\n   local_pci_probe+0xd5/0x190\n\nThe same happens on teardown when adf_dev_down() locks it again.\n\nInitialise the lock next to the other per-device state, before the tables\nare updated, so it is done on every path.","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-143408","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - initialise state_lock on every path in adf_devmgr_add_dev()\n\nstate_lock is initialised at the end of adf_devmgr_add_dev(), but the VF\non host path whose id mapping already exists returns earlier via\n'goto unlock'. That mapping outlives the VF, so this path is taken every\ntime a VF is recreated on a BDF that already hosted one, e.g.:\n\n\techo 0 \u003e sriov_numvfs\n\techo 32 \u003e sriov_numvfs\n\naccel_dev is freshly allocated on each probe, so state_lock is left zeroed\nand adf_dev_up() takes an uninitialised mutex. With CONFIG_DEBUG_MUTEXES\nthis is reported on a dh895xcc with 32 host-bound VFs:\n\n  DEBUG_LOCKS_WARN_ON(lock-\u003emagic != lock)\n  WARNING: kernel/locking/mutex.c:159 at mutex_lock+0x171/0x1c0\n  Call Trace:\n   adf_dev_up+0x27/0xe0 [intel_qat]\n   adf_probe+0x700/0xa80 [qat_dh895xccvf]\n   local_pci_probe+0xd5/0x190\n\nThe same happens on teardown when adf_dev_down() locks it again.\n\nInitialise the lock next to the other per-device state, before the tables\nare updated, so it is done on every path.","status":"published","published":"2026-12-05T03:19:51.107Z","modified":"2026-12-05T03:19:51.107Z","updated_at":"2026-12-05T03:21:31.003878Z"}],"osv":[{"id":"CVE-2026-143408","title":"crypto: qat - initialise state_lock on every path in adf_devmgr_add_dev()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - initialise state_lock on every path in adf_devmgr_add_dev()\n\nstate_lock is initialised at the end of adf_devmgr_add_dev(), but the VF\non host path whose id mapping already exists returns earlier via\n'goto unlock'. That mapping outlives the VF, so this path is taken every\ntime a VF is recreated on a BDF that already hosted one, e.g.:\n\n\techo 0 \u003e sriov_numvfs\n\techo 32 \u003e sriov_numvfs\n\naccel_dev is freshly allocated on each probe, so state_lock is left zeroed\nand adf_dev_up() takes an uninitialised mutex. With CONFIG_DEBUG_MUTEXES\nthis is reported on a dh895xcc with 32 host-bound VFs:\n\n  DEBUG_LOCKS_WARN_ON(lock-\u003emagic != lock)\n  WARNING: kernel/locking/mutex.c:159 at mutex_lock+0x171/0x1c0\n  Call Trace:\n   adf_dev_up+0x27/0xe0 [intel_qat]\n   adf_probe+0x700/0xa80 [qat_dh895xccvf]\n   local_pci_probe+0xd5/0x190\n\nThe same happens on teardown when adf_dev_down() locks it again.\n\nInitialise the lock next to the other per-device state, before the tables\nare updated, so it is done on every path.","status":"published","published":"2026-12-05T01:20:33.9Z","modified":"2026-12-05T03:00:59.546933861Z","updated_at":"2026-12-05T03:12:34.118495Z"}]}}
