5.5medium
ice: fix NULL pointer dereference in ice_unplug_aux_dev() on reset
- Severity
- 5.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: ice: fix NULL pointer dereference in ice_unplug_aux_dev() on reset Issuing a reset when the driver is loaded without RDMA support, will results in a crash as it attempts to remove RDMA's non-existent auxbus device: echo 1 > /sys/class/net/<if>/device/reset BUG: kernel NULL pointer dereference, address: 0000000000000008 ... RIP: 0010:ice_unplug_aux_dev+0x29/0x70 [ice] ... Call Trace: <TASK> ice_prepare_for_reset+0x77/0x260 [ice] pci_dev_save_and_disable+0x2c/0x70 pci_reset_function+0x88/0x130 reset_store+0x5a/0xa0 kernfs_fop_write_iter+0x15e/0x210 vfs_write+0x273/0x520 ksys_write+0x6b/0xe0 do_syscall_64+0x79/0x3b0 entry_SYSCALL_64_after_hwframe+0x76/0x7e ice_unplug_aux_dev() checks pf->cdev_info->adev for NULL pointer, but pf->cdev_info will also be NULL, leading to the deref in the trace above. Introduce a flag to be set when the creation of the auxbus device is successful, to avoid multiple NULL pointer checks in ice_unplug_aux_dev().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from c24a65b6a27c78d8540409800886b6622ea86ebf before db783756a7d7cfaea039411971d0dc0a374e85cb, from c24a65b6a27c78d8540409800886b6622ea86ebf before 60dfe2434eed13082f26eb7409665dfafb38fa51, 6.16 Not affected: before 6.16, from 6.16.5 up to 6.16.*, from 6.17 up to * | CVE List |
| linux linux_kernel | from 6.16 before 6.16.5, 6.17 | NVD |
All scores
| CISA-ADP | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
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: ice: fix NULL pointer dereference in ice_unplug_aux_dev() on reset Issuing a reset when the driver is loaded without RDMA support, will results in a crash as it attempts to remove RDMA's non-existent auxbus device: echo 1 > /sys/class/net/<if>/device/reset BUG: kernel NULL pointer dereference, address: 0000000000000008 ... RIP: 0010:ice_unplug_aux_dev+0x29/0x70 [ice] ... Call Trace: <TASK> ice_prepare_for_reset+0x77/0x260 [ice] pci_dev_save_and_disable+0x2c/0x70 pci_reset_function+0x88/0x130 reset_store+0x5a/0xa0 kernfs_fop_write_iter+0x15e/0x210 vfs_write+0x273/0x520 ksys_write+0x6b/0xe0 do_syscall_64+0x79/0x3b0 entry_SYSCALL_64_after_hwframe+0x76/0x7e ice_unplug_aux_dev() checks pf->cdev_info->adev for NULL pointer, but pf->cdev_info will also be NULL, leading to the deref in the trace above. Introduce a flag to be set when the creation of the auxbus device is successful, to avoid multiple NULL pointer checks in ice_unplug_aux_dev().
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ice: solución para la desreferencia de puntero NULL en ice_unplug_aux_dev() al reiniciar Al emitir un reinicio cuando el controlador está cargado sin soporte RDMA, provocará un fallo mientras intenta eliminar el dispositivo auxbus no existente de RDMA: echo 1 > /sys/class/net/<if>/device/reset BUG: desreferencia de puntero NULL del kernel, dirección: 0000000000000008 ... RIP: 0010:ice_unplug_aux_dev+0x29/0x70 [ice] ... Traza de llamadas: <TASK> ice_prepare_for_reset+0x77/0x260 [ice] pci_dev_save_and_disable+0x2c/0x70 pci_reset_function+0x88/0x130 reset_store+0x5a/0xa0 kernfs_fop_write_iter+0x15e/0x210 vfs_write+0x273/0x520 ksys_write+0x6b/0xe0 do_syscall_64+0x79/0x3b0 entry_SYSCALL_64_after_hwframe+0x76/0x7e ice_unplug_aux_dev() comprueba pf->cdev_info->adev en busca de un puntero NULL, pero pf->cdev_info también será NULL, lo que lleva a la desreferencia en la traza anterior. Introducir una bandera que se establecerá cuando la creación del dispositivo auxbus sea exitosa, para evitar múltiples comprobaciones de puntero NULL en ice_unplug_aux_dev().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-39814 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-39814 changed 2026-10-19 | Public domain |