usb: renesas_usbhs: fix use-after-free in ISR during device removal
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.10.253, Kernel 5.15.203, Kernel 6.1.167 and 12 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=3.0 <5.10.253, >=5.11 <5.15.203, >=5.16 <6.1.167, >=6.13 <6.18.19, >=6.19 <6.19.9, >=6.2 <6.6.130, >=6.7 <6.12.78, =7.0, >=f1407d5c66240b33d11a7f1a41d55ccf6a9d7647 <1899edac312ef17a7234851686e8a703f56d0a84, >=f1407d5c66240b33d11a7f1a41d55ccf6a9d7647 <3cbc242b88c607f55da3d0d0d336b49bf1e20412, >=f1407d5c66240b33d11a7f1a41d55ccf6a9d7647 <51afaf919bbaacdd9cc9e146033ae0a743a42dd7, >=f1407d5c66240b33d11a7f1a41d55ccf6a9d7647 <6287e0c01ccb818e7214f88d885ffb7c9e81b0e0, >=f1407d5c66240b33d11a7f1a41d55ccf6a9d7647 <6ffe44f022c95b1b29c691d2169c5abc046f7580, >=f1407d5c66240b33d11a7f1a41d55ccf6a9d7647 <9c6159d5b72d5fc265cce5da04f27d730b552e69, >=f1407d5c66240b33d11a7f1a41d55ccf6a9d7647 <c7012fc73dab4829404fedeeaa8531f12ac8545f, =3.0, >=f1407d5c66240b33d11a7f1a41d55ccf6a9d7647 <0b7d11fd6e742ecc0b1eca44b4f0b93140c74bae | 5.10.253, 5.15.203, 6.1.167, 6.18.19, 6.19.9, 6.6.130, 6.12.78, 1899edac312ef17a7234851686e8a703f56d0a84, 3cbc242b88c607f55da3d0d0d336b49bf1e20412, 51afaf919bbaacdd9cc9e146033ae0a743a42dd7, 6287e0c01ccb818e7214f88d885ffb7c9e81b0e0, 6ffe44f022c95b1b29c691d2169c5abc046f7580, 9c6159d5b72d5fc265cce5da04f27d730b552e69, c7012fc73dab4829404fedeeaa8531f12ac8545f, 0b7d11fd6e742ecc0b1eca44b4f0b93140c74bae |
| linux-kernel: Kernel | >=3.0.0 <5.10.253, >=5.11.0 <5.15.203, >=5.16.0 <6.1.167, >=6.13.0 <6.18.19, >=6.19.0 <6.19.9, >=6.2.0 <6.6.130, >=6.7.0 <6.12.78 | 5.10.253, 5.15.203, 6.1.167, 6.18.19, 6.19.9, 6.6.130, 6.12.78 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket