7.8high
net: mana: Fix double destroy_workqueue on service rescan PCI path
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.12% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: net: mana: Fix double destroy_workqueue on service rescan PCI path While testing corner cases in the driver, a use-after-free crash was found on the service rescan PCI path. When mana_serv_reset() calls mana_gd_suspend(), mana_gd_cleanup() destroys gc->service_wq. If the subsequent mana_gd_resume() fails with -ETIMEDOUT or -EPROTO, the code falls through to mana_serv_rescan() which triggers pci_stop_and_remove_bus_device(). This invokes the PCI .remove callback (mana_gd_remove), which calls mana_gd_cleanup() a second time, attempting to destroy the already- freed workqueue. Fix this by NULL-checking gc->service_wq in mana_gd_cleanup() and setting it to NULL after destruction. Call stack of issue for reference: [Sat Feb 21 18:53:48 2026] Call Trace: [Sat Feb 21 18:53:48 2026] <TASK> [Sat Feb 21 18:53:48 2026] mana_gd_cleanup+0x33/0x70 [mana] [Sat Feb 21 18:53:48 2026] mana_gd_remove+0x3a/0xc0 [mana] [Sat Feb 21 18:53:48 2026] pci_device_remove+0x41/0xb0 [Sat Feb 21 18:53:48 2026] device_remove+0x46/0x70 [Sat Feb 21 18:53:48 2026] device_release_driver_internal+0x1e3/0x250 [Sat Feb 21 18:53:48 2026] device_release_driver+0x12/0x20 [Sat Feb 21 18:53:48 2026] pci_stop_bus_device+0x6a/0x90 [Sat Feb 21 18:53:48 2026] pci_stop_and_remove_bus_device+0x13/0x30 [Sat Feb 21 18:53:48 2026] mana_do_service+0x180/0x290 [mana] [Sat Feb 21 18:53:48 2026] mana_serv_func+0x24/0x50 [mana] [Sat Feb 21 18:53:48 2026] process_one_work+0x190/0x3d0 [Sat Feb 21 18:53:48 2026] worker_thread+0x16e/0x2e0 [Sat Feb 21 18:53:48 2026] kthread+0xf7/0x130 [Sat Feb 21 18:53:48 2026] ? __pfx_worker_thread+0x10/0x10 [Sat Feb 21 18:53:48 2026] ? __pfx_kthread+0x10/0x10 [Sat Feb 21 18:53:48 2026] ret_from_fork+0x269/0x350 [Sat Feb 21 18:53:48 2026] ? __pfx_kthread+0x10/0x10 [Sat Feb 21 18:53:48 2026] ret_from_fork_asm+0x1a/0x30 [Sat Feb 21 18:53:48 2026] </TASK>
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 505cc26bcae00699bacaee66cd50ede7a9cc89cb before fa3c2f8d9152344a478abb847081c1b5f84a94f5, from 505cc26bcae00699bacaee66cd50ede7a9cc89cb before a9a7c3203fdc4d4a8d8a7a3b1ed05d2bb4c6e77e, from 505cc26bcae00699bacaee66cd50ede7a9cc89cb before f975a0955276579e2176a134366ed586071c7c6a, 6.16 Not affected: before 6.16, from 6.18.16 up to 6.18.*, from 6.19.6 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.16 before 6.18.16, from 6.19 before 6.19.6, 7.0 | 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: net: mana: Fix double destroy_workqueue on service rescan PCI path While testing corner cases in the driver, a use-after-free crash was found on the service rescan PCI path. When mana_serv_reset() calls mana_gd_suspend(), mana_gd_cleanup() destroys gc->service_wq. If the subsequent mana_gd_resume() fails with -ETIMEDOUT or -EPROTO, the code falls through to mana_serv_rescan() which triggers pci_stop_and_remove_bus_device(). This invokes the PCI .remove callback (mana_gd_remove), which calls mana_gd_cleanup() a second time, attempting to destroy the already- freed workqueue. Fix this by NULL-checking gc->service_wq in mana_gd_cleanup() and setting it to NULL after destruction. Call stack of issue for reference: [Sat Feb 21 18:53:48 2026] Call Trace: [Sat Feb 21 18:53:48 2026] <TASK> [Sat Feb 21 18:53:48 2026] mana_gd_cleanup+0x33/0x70 [mana] [Sat Feb 21 18:53:48 2026] mana_gd_remove+0x3a/0xc0 [mana] [Sat Feb 21 18:53:48 2026] pci_device_remove+0x41/0xb0 [Sat Feb 21 18:53:48 2026] device_remove+0x46/0x70 [Sat Feb 21 18:53:48 2026] device_release_driver_internal+0x1e3/0x250 [Sat Feb 21 18:53:48 2026] device_release_driver+0x12/0x20 [Sat Feb 21 18:53:48 2026] pci_stop_bus_device+0x6a/0x90 [Sat Feb 21 18:53:48 2026] pci_stop_and_remove_bus_device+0x13/0x30 [Sat Feb 21 18:53:48 2026] mana_do_service+0x180/0x290 [mana] [Sat Feb 21 18:53:48 2026] mana_serv_func+0x24/0x50 [mana] [Sat Feb 21 18:53:48 2026] process_one_work+0x190/0x3d0 [Sat Feb 21 18:53:48 2026] worker_thread+0x16e/0x2e0 [Sat Feb 21 18:53:48 2026] kthread+0xf7/0x130 [Sat Feb 21 18:53:48 2026] ? __pfx_worker_thread+0x10/0x10 [Sat Feb 21 18:53:48 2026] ? __pfx_kthread+0x10/0x10 [Sat Feb 21 18:53:48 2026] ret_from_fork+0x269/0x350 [Sat Feb 21 18:53:48 2026] ? __pfx_kthread+0x10/0x10 [Sat Feb 21 18:53:48 2026] ret_from_fork_asm+0x1a/0x30 [Sat Feb 21 18:53:48 2026] </TASK>
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: mana: Corregir doble destroy_workqueue en la ruta PCI de reescaneo de servicio Mientras se probaban casos extremos en el controlador, se encontró un fallo de uso después de liberación en la ruta PCI de reescaneo de servicio. Cuando mana_serv_reset() llama a mana_gd_suspend(), mana_gd_cleanup() destruye gc -> service_wq. Si el subsiguiente mana_gd_resume() falla con -ETIMEDOUT o -EPROTO, el código pasa a mana_serv_rescan(), lo que activa pci_stop_and_remove_bus_device(). Esto invoca la llamada de retorno .remove de PCI (mana_gd_remove), que llama a mana_gd_cleanup() una segunda vez, intentando destruir la workqueue ya liberada. Esto se corrige verificando si gc -> service_wq es NULL en mana_gd_cleanup() y estableciéndolo en NULL después de la destrucción. Pila de llamadas del problema para referencia: [Sáb Feb 21 18:53:48 2026] Traza de Llamada: [Sáb Feb 21 18:53:48 2026] [TAREA] [Sáb Feb 21 18:53:48 2026] mana_gd_cleanup+0x33/0x70 [mana] [Sáb Feb 21 18:53:48 2026] mana_gd_remove+0x3a/0xc0 [mana] [Sáb Feb 21 18:53:48 2026] pci_device_remove+0x41/0xb0 [Sáb Feb 21 18:53:48 2026] device_remove+0x46/0x70 [Sáb Feb 21 18:53:48 2026] device_release_driver_internal+0x1e3/0x250 [Sáb Feb 21 18:53:48 2026] device_release_driver+0x12/0x20 [Sáb Feb 21 18:53:48 2026] pci_stop_bus_device+0x6a/0x90 [Sáb Feb 21 18:53:48 2026] pci_stop_and_remove_bus_device+0x13/0x30 [Sáb Feb 21 18:53:48 2026] mana_do_service+0x180/0x290 [mana] [Sáb Feb 21 18:53:48 2026] mana_serv_func+0x24/0x50 [mana] [Sáb Feb 21 18:53:48 2026] process_one_work+0x190/0x3d0 [Sáb Feb 21 18:53:48 2026] worker_thread+0x16e/0x2e0 [Sáb Feb 21 18:53:48 2026] kthread+0xf7/0x130 [Sáb Feb 21 18:53:48 2026] ? __pfx_worker_thread+0x10/0x10 [Sáb Feb 21 18:53:48 2026] ? __pfx_kthread+0x10/0x10 [Sáb Feb 21 18:53:48 2026] ret_from_fork+0x269/0x350 [Sáb Feb 21 18:53:48 2026] ? __pfx_kthread+0x10/0x10 [Sáb Feb 21 18:53:48 2026] ret_from_fork_asm+0x1a/0x30 [Sáb Feb 21 18:53:48 2026] [/TAREA]
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43276 changed 2026-11-06 | CVE Terms of Use |
| NVD | CVE-2026-43276 changed 2026-11-11 | Public domain |