CVE-2026-64305: crypto: qat - protect service table iterations with service_lock
Greg Kroah-Hartman <[email protected]> Sat, 25 Jul 2026 10:48:42 +0200
| Newsgroups | org.kernel.vger.linux-cve-announce |
|---|---|
| Message-ID | <2026072507-CVE-2026-64305-6cea@gregkh> |
From: Greg Kroah-Hartman <[email protected]> Description =========== In the Linux kernel, the following vulnerability has been resolved: crypto: qat - protect service table iterations with service_lock The service_table list is protected by service_lock when entries are added or removed (in adf_service_add() and adf_service_remove()), but several functions iterate over the list without holding this lock. A concurrent adf_service_register() or adf_service_unregister() call could modify the list during traversal, leading to list corruption or a use-after-free. Fix this by holding service_lock across all list_for_each_entry() iterations of service_table in adf_dev_init(), adf_dev_start(), adf_dev_stop(), adf_dev_shutdown(), adf_dev_restarting_notify(), adf_dev_restarted_notify(), and adf_error_notifier(). The lock ordering is safe: callers of the static helpers (adf_dev_up() and adf_dev_down()) acquire state_lock before service_lock, and no event_hld callback or service_lock holder ever acquires state_lock in the reverse order. The Linux kernel CVE team has assigned CVE-2026-64305 to this issue. Affected and fixed versions =========================== Issue introduced in 3.17 with commit d8cba25d2c68992a6e7c1d329b690a9ebe01167d and fixed in 6.12.96 with commit 222fa7b453b612f4407f260146d89a2ce2bc831d Issue introduced in 3.17 with commit d8cba25d2c68992a6e7c1d329b690a9ebe01167d and fixed in 6.18.39 with commit c3c5925791cff3b84d313293fd60f384d877d793 Issue introduced in 3.17 with commit d8cba25d2c68992a6e7c1d329b690a9ebe01167d and fixed in 7.1.4 with commit 0dbcecea740d943002c1cbdafa39bdfc108e32a5 Issue introduced in 3.17 with commit d8cba25d2c68992a6e7c1d329b690a9ebe01167d and fixed in 7.2-rc1 with commit 5c6f845e77ec35f9b7b047cc8f9789bf397cdd3e 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-64305 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_init.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/222fa7b453b612f4407f260146d89a2ce2bc831d https://git.kernel.org/stable/c/c3c5925791cff3b84d313293fd60f384d877d793 https://git.kernel.org/stable/c/0dbcecea740d943002c1cbdafa39bdfc108e32a5 https://git.kernel.org/stable/c/5c6f845e77ec35f9b7b047cc8f9789bf397cdd3e