7.8high
i40e: fix IRQ freeing in i40e_vsi_request_irq_msix error path
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.17% (higher than 6% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: i40e: fix IRQ freeing in i40e_vsi_request_irq_msix error path If request_irq() in i40e_vsi_request_irq_msix() fails in an iteration later than the first, the error path wants to free the IRQs requested so far. However, it uses the wrong dev_id argument for free_irq(), so it does not free the IRQs correctly and instead triggers the warning: Trying to free already-free IRQ 173 WARNING: CPU: 25 PID: 1091 at kernel/irq/manage.c:1829 __free_irq+0x192/0x2c0 Modules linked in: i40e(+) [...] CPU: 25 UID: 0 PID: 1091 Comm: NetworkManager Not tainted 6.17.0-rc1+ #1 PREEMPT(lazy) Hardware name: [...] RIP: 0010:__free_irq+0x192/0x2c0 [...] Call Trace: <TASK> free_irq+0x32/0x70 i40e_vsi_request_irq_msix.cold+0x63/0x8b [i40e] i40e_vsi_request_irq+0x79/0x80 [i40e] i40e_vsi_open+0x21f/0x2f0 [i40e] i40e_open+0x63/0x130 [i40e] __dev_open+0xfc/0x210 __dev_change_flags+0x1fc/0x240 netif_change_flags+0x27/0x70 do_setlink.isra.0+0x341/0xc70 rtnl_newlink+0x468/0x860 rtnetlink_rcv_msg+0x375/0x450 netlink_rcv_skb+0x5c/0x110 netlink_unicast+0x288/0x3c0 netlink_sendmsg+0x20d/0x430 ____sys_sendmsg+0x3a2/0x3d0 ___sys_sendmsg+0x99/0xe0 __sys_sendmsg+0x8a/0xf0 do_syscall_64+0x82/0x2c0 entry_SYSCALL_64_after_hwframe+0x76/0x7e [...] </TASK> ---[ end trace 0000000000000000 ]--- Use the same dev_id for free_irq() as for request_irq(). I tested this with inserting code to fail intentionally.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 493fb30011b3ab5173cef96f1d1ce126da051792 before 13ab9adef3cd386511c930a9660ae06595007f89, from 493fb30011b3ab5173cef96f1d1ce126da051792 before 6e4016c0dca53afc71e3b99e24252b63417395df, from 493fb30011b3ab5173cef96f1d1ce126da051792 before b9721a023df38cf44a88f2739b4cf51efd051f85, from 493fb30011b3ab5173cef96f1d1ce126da051792 before b905b2acb3a0bbb08ad9be9984d8cdabdf827315, from 493fb30011b3ab5173cef96f1d1ce126da051792 before 23431998a37764c464737b855c71a81d50992e98, from 493fb30011b3ab5173cef96f1d1ce126da051792 before a30afd6617c30aaa338d1dbcb1e34e7a1890085c, from 493fb30011b3ab5173cef96f1d1ce126da051792 before c62580674ce5feb1be4f90b5873ff3ce50e0a1db, from 493fb30011b3ab5173cef96f1d1ce126da051792 before 915470e1b44e71d1dd07ee067276f003c3521ee3 and 1 more Not affected: before 3.13, from 5.4.300 up to 5.4.*, from 5.10.245 up to 5.10.*, from 5.15.194 up to 5.15.*, from 6.1.153 up to 6.1.*, from 6.6.107 up to 6.6.* | CVE List |
| linux linux_kernel | from 3.13 before 5.4.300, from 5.5 before 5.10.245, from 5.11 before 5.15.194, from 5.16 before 6.1.153, from 6.2 before 6.6.107, from 6.7 before 6.12.48, from 6.13 before 6.16.8, 6.17 | NVD |
| debian debian_linux | 11.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: i40e: fix IRQ freeing in i40e_vsi_request_irq_msix error path If request_irq() in i40e_vsi_request_irq_msix() fails in an iteration later than the first, the error path wants to free the IRQs requested so far. However, it uses the wrong dev_id argument for free_irq(), so it does not free the IRQs correctly and instead triggers the warning: Trying to free already-free IRQ 173 WARNING: CPU: 25 PID: 1091 at kernel/irq/manage.c:1829 __free_irq+0x192/0x2c0 Modules linked in: i40e(+) [...] CPU: 25 UID: 0 PID: 1091 Comm: NetworkManager Not tainted 6.17.0-rc1+ #1 PREEMPT(lazy) Hardware name: [...] RIP: 0010:__free_irq+0x192/0x2c0 [...] Call Trace: <TASK> free_irq+0x32/0x70 i40e_vsi_request_irq_msix.cold+0x63/0x8b [i40e] i40e_vsi_request_irq+0x79/0x80 [i40e] i40e_vsi_open+0x21f/0x2f0 [i40e] i40e_open+0x63/0x130 [i40e] __dev_open+0xfc/0x210 __dev_change_flags+0x1fc/0x240 netif_change_flags+0x27/0x70 do_setlink.isra.0+0x341/0xc70 rtnl_newlink+0x468/0x860 rtnetlink_rcv_msg+0x375/0x450 netlink_rcv_skb+0x5c/0x110 netlink_unicast+0x288/0x3c0 netlink_sendmsg+0x20d/0x430 ____sys_sendmsg+0x3a2/0x3d0 ___sys_sendmsg+0x99/0xe0 __sys_sendmsg+0x8a/0xf0 do_syscall_64+0x82/0x2c0 entry_SYSCALL_64_after_hwframe+0x76/0x7e [...] </TASK> ---[ end trace 0000000000000000 ]--- Use the same dev_id for free_irq() as for request_irq(). I tested this with inserting code to fail intentionally.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: i40e: corrección de la liberación de IRQ en la ruta de error de i40e_vsi_request_irq_msix Si request_irq() en i40e_vsi_request_irq_msix() falla en una iteración posterior a la primera, la ruta de error intenta liberar las IRQ solicitadas hasta el momento. Sin embargo, utiliza el argumento dev_id incorrecto para free_irq(), por lo que no libera las IRQ correctamente y en su lugar activa la advertencia: 'Intentando liberar IRQ 173 ya liberada' WARNING: CPU: 25 PID: 1091 en kernel/irq/manage.c:1829 __free_irq+0x192/0x2c0 Módulos enlazados: i40e(+) [...] CPU: 25 UID: 0 PID: 1091 Comm: NetworkManager No contaminado 6.17.0-rc1+ #1 PREEMPT(lazy) Nombre de hardware: [...] RIP: 0010:__free_irq+0x192/0x2c0 [...] Traza de llamada: <TASK> free_irq+0x32/0x70 i40e_vsi_request_irq_msix.cold+0x63/0x8b [i40e] i40e_vsi_request_irq+0x79/0x80 [i40e] i40e_vsi_open+0x21f/0x2f0 [i40e] i40e_open+0x63/0x130 [i40e] __dev_open+0xfc/0x210 __dev_change_flags+0x1fc/0x240 netif_change_flags+0x27/0x70 do_setlink.isra.0+0x341/0xc70 rtnl_newlink+0x468/0x860 rtnetlink_rcv_msg+0x375/0x450 netlink_rcv_skb+0x5c/0x110 netlink_unicast+0x288/0x3c0 netlink_sendmsg+0x20d/0x430 ____sys_sendmsg+0x3a2/0x3d0 ___sys_sendmsg+0x99/0xe0 __sys_sendmsg+0x8a/0xf0 do_syscall_64+0x82/0x2c0 entry_SYSCALL_64_after_hwframe+0x76/0x7e [...] </TASK> ---[ fin de traza 0000000000000000 ]--- Utilice el mismo dev_id para free_irq() que para request_irq(). Probé esto insertando código para que fallara intencionalmente.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-39911 changed 2026-06-11 | CVE Terms of Use |
| NVD | CVE-2025-39911 changed 2026-10-19 | Public domain |