7.8high
crypto: qat - protect service table iterations with service_lock
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.16% (higher than 5% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from d8cba25d2c68992a6e7c1d329b690a9ebe01167d before d36bff434e01d06d1e1fa98aa2b34ec32185c1ab, from d8cba25d2c68992a6e7c1d329b690a9ebe01167d before 11d48f777cf8fad00db044f4c15cdf821427746b, from d8cba25d2c68992a6e7c1d329b690a9ebe01167d before 222fa7b453b612f4407f260146d89a2ce2bc831d, from d8cba25d2c68992a6e7c1d329b690a9ebe01167d before c3c5925791cff3b84d313293fd60f384d877d793, from d8cba25d2c68992a6e7c1d329b690a9ebe01167d before 0dbcecea740d943002c1cbdafa39bdfc108e32a5, from d8cba25d2c68992a6e7c1d329b690a9ebe01167d before 5c6f845e77ec35f9b7b047cc8f9789bf397cdd3e, 3.17 Not affected: before 3.17, from 6.1.191 up to 6.1.*, from 6.6.160 up to 6.6.*, from 6.12.96 up to 6.12.*, from 6.18.39 up to 6.18.*, from 7.1.4 up to 7.1.* | CVE List |
| linux linux_kernel | from 3.17 before 6.12.96, from 6.13 before 6.18.39, from 6.19 before 7.1.4 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: crypto: qat - proteger las iteraciones de la tabla de servicios con service_lock La lista service_table está protegida por service_lock cuando se añaden o eliminan entradas (en adf_service_add() y adf_service_remove()), pero varias funciones iteran sobre la lista sin mantener este bloqueo. Una llamada concurrente a adf_service_register() o adf_service_unregister() podría modificar la lista durante el recorrido, lo que llevaría a la corrupción de la lista o a un uso después de liberación. Solucione esto manteniendo service_lock durante todas las iteraciones de list_for_each_entry() de service_table en adf_dev_init(), adf_dev_start(), adf_dev_stop(), adf_dev_shutdown(), adf_dev_restarting_notify(), adf_dev_restarted_notify() y adf_error_notifier(). El orden de los bloqueos es seguro: los llamadores de las funciones auxiliares estáticas (adf_dev_up() y adf_dev_down()) adquieren state_lock antes que service_lock, y ninguna devolución de llamada event_hld o poseedor de service_lock adquiere state_lock en el orden inverso.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-64305 changed 2026-11-06 | CVE Terms of Use |
| NVD | CVE-2026-64305 changed 2026-11-06 | Public domain |