Not scored
net: netpoll: initialize work queue before error checks
- Severity
- Not scored
- Exploit likelihood
- 0.18% (higher than 8% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: net: netpoll: initialize work queue before error checks Prevent a kernel warning when netconsole setup fails on devices with IFF_DISABLE_NETPOLL flag. The warning (at kernel/workqueue.c:4242 in __flush_work) occurs because the cleanup path tries to cancel an uninitialized work queue. When __netpoll_setup() encounters a device with IFF_DISABLE_NETPOLL, it fails early and calls skb_pool_flush() for cleanup. This function calls cancel_work_sync(&np->refill_wq), but refill_wq hasn't been initialized yet, triggering the warning. Move INIT_WORK() to the beginning of __netpoll_setup(), ensuring the work queue is properly initialized before any potential failure points. This allows the cleanup path to safely cancel the work queue regardless of where the setup fails.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 248f6571fd4c51531f7f8f07f186f7ae98a50afc before a90d0dc38a10347078cca60e7495ad0648838f18, from 248f6571fd4c51531f7f8f07f186f7ae98a50afc before 760bc6ceda8e2c273c0e2018ad2595967c3dd308, from 248f6571fd4c51531f7f8f07f186f7ae98a50afc before e5235eb6cfe02a51256013a78f7b28779a7740d5, 6.15 Not affected: before 6.15, from 6.17.13 up to 6.17.*, from 6.18.2 up to 6.18.*, from 6.19 up to * | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: net: netpoll: initialize work queue before error checks Prevent a kernel warning when netconsole setup fails on devices with IFF_DISABLE_NETPOLL flag. The warning (at kernel/workqueue.c:4242 in __flush_work) occurs because the cleanup path tries to cancel an uninitialized work queue. When __netpoll_setup() encounters a device with IFF_DISABLE_NETPOLL, it fails early and calls skb_pool_flush() for cleanup. This function calls cancel_work_sync(&np->refill_wq), but refill_wq hasn't been initialized yet, triggering the warning. Move INIT_WORK() to the beginning of __netpoll_setup(), ensuring the work queue is properly initialized before any potential failure points. This allows the cleanup path to safely cancel the work queue regardless of where the setup fails.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: netpoll: inicializar cola de trabajo antes de las comprobaciones de errores Prevenir una advertencia del kernel cuando la configuración de netconsole falla en dispositivos con la bandera IFF_DISABLE_NETPOLL. La advertencia (en kernel/workqueue.c:4242 en __flush_work) ocurre porque la ruta de limpieza intenta cancelar una cola de trabajo no inicializada. Cuando __netpoll_setup() encuentra un dispositivo con IFF_DISABLE_NETPOLL, falla tempranamente y llama a skb_pool_flush() para la limpieza. Esta función llama a cancel_work_sync(&np -> refill_wq), pero refill_wq aún no ha sido inicializada, lo que desencadena la advertencia. Mover INIT_WORK() al principio de __netpoll_setup(), asegurando que la cola de trabajo esté correctamente inicializada antes de cualquier punto de fallo potencial. Esto permite a la ruta de limpieza cancelar de forma segura la cola de trabajo independientemente de dónde falle la configuración.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68762 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-68762 changed 2026-10-14 | Public domain |