7.8high
usb: renesas_usbhs: fix use-after-free in ISR during device removal
- Severity
- 7.8high CVSS:3.1 by NVD
- 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: usb: renesas_usbhs: fix use-after-free in ISR during device removal In usbhs_remove(), the driver frees resources (including the pipe array) while the interrupt handler (usbhs_interrupt) is still registered. If an interrupt fires after usbhs_pipe_remove() but before the driver is fully unbound, the ISR may access freed memory, causing a use-after-free. Fix this by calling devm_free_irq() before freeing resources. This ensures the interrupt handler is both disabled and synchronized (waits for any running ISR to complete) before usbhs_pipe_remove() is called.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from f1407d5c66240b33d11a7f1a41d55ccf6a9d7647 before c7012fc73dab4829404fedeeaa8531f12ac8545f, from f1407d5c66240b33d11a7f1a41d55ccf6a9d7647 before 51afaf919bbaacdd9cc9e146033ae0a743a42dd7, from f1407d5c66240b33d11a7f1a41d55ccf6a9d7647 before 1899edac312ef17a7234851686e8a703f56d0a84, from f1407d5c66240b33d11a7f1a41d55ccf6a9d7647 before 9c6159d5b72d5fc265cce5da04f27d730b552e69, from f1407d5c66240b33d11a7f1a41d55ccf6a9d7647 before 6287e0c01ccb818e7214f88d885ffb7c9e81b0e0, from f1407d5c66240b33d11a7f1a41d55ccf6a9d7647 before 0b7d11fd6e742ecc0b1eca44b4f0b93140c74bae, from f1407d5c66240b33d11a7f1a41d55ccf6a9d7647 before 6ffe44f022c95b1b29c691d2169c5abc046f7580, from f1407d5c66240b33d11a7f1a41d55ccf6a9d7647 before 3cbc242b88c607f55da3d0d0d336b49bf1e20412 and 1 more Not affected: before 3.0, from 5.10.253 up to 5.10.*, from 5.15.203 up to 5.15.*, from 6.1.167 up to 6.1.*, from 6.6.130 up to 6.6.*, from 6.12.78 up to 6.12.* | CVE List |
| linux linux_kernel | from 3.0 before 5.10.253, from 5.11 before 5.15.203, from 5.16 before 6.1.167, from 6.2 before 6.6.130, from 6.7 before 6.12.78, from 6.13 before 6.18.19, from 6.19 before 6.19.9, 7.0 | NVD |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: usb: renesas_usbhs: fix use-after-free in ISR during device removal In usbhs_remove(), the driver frees resources (including the pipe array) while the interrupt handler (usbhs_interrupt) is still registered. If an interrupt fires after usbhs_pipe_remove() but before the driver is fully unbound, the ISR may access freed memory, causing a use-after-free. Fix this by calling devm_free_irq() before freeing resources. This ensures the interrupt handler is both disabled and synchronized (waits for any running ISR to complete) before usbhs_pipe_remove() is called.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: usb: renesas_usbhs: corrección de uso después de liberación en la ISR durante la eliminación del dispositivo En usbhs_remove(), el controlador libera recursos (incluyendo el array de pipes) mientras el gestor de interrupciones (usbhs_interrupt) todavía está registrado. Si una interrupción se dispara después de usbhs_pipe_remove() pero antes de que el controlador esté completamente desvinculado, la ISR puede acceder a memoria liberada, causando un uso después de liberación. Esto se corrige llamando a devm_free_irq() antes de liberar recursos. Esto asegura que el gestor de interrupciones esté tanto deshabilitado como sincronizado (espera a que cualquier ISR en ejecución se complete) antes de que se llame a usbhs_pipe_remove().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43426 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2026-43426 changed 2026-11-11 | Public domain |