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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
f1407d5c66240b33d11a7f1a41d55ccf6a9d7647 to < c7012fc73dab4829404fedeeaa8531f12ac8545faffectedf1407d5c66240b33d11a7f1a41d55ccf6a9d7647 to < 51afaf919bbaacdd9cc9e146033ae0a743a42dd7affectedf1407d5c66240b33d11a7f1a41d55ccf6a9d7647 to < 1899edac312ef17a7234851686e8a703f56d0a84affectedf1407d5c66240b33d11a7f1a41d55ccf6a9d7647 to < 9c6159d5b72d5fc265cce5da04f27d730b552e69affectedf1407d5c66240b33d11a7f1a41d55ccf6a9d7647 to < 6287e0c01ccb818e7214f88d885ffb7c9e81b0e0affectedf1407d5c66240b33d11a7f1a41d55ccf6a9d7647 to < 0b7d11fd6e742ecc0b1eca44b4f0b93140c74baeaffectedf1407d5c66240b33d11a7f1a41d55ccf6a9d7647 to < 6ffe44f022c95b1b29c691d2169c5abc046f7580affectedf1407d5c66240b33d11a7f1a41d55ccf6a9d7647 to < 3cbc242b88c607f55da3d0d0d336b49bf1e20412affected
Linux Linux
Default version status: affected
3.0affected0 to < 3.0unaffected5.10.253 to ≤ 5.10.*unaffected5.15.203 to ≤ 5.15.*unaffected6.1.167 to ≤ 6.1.*unaffected6.6.130 to ≤ 6.6.*unaffected6.12.78 to ≤ 6.12.*unaffected6.18.19 to ≤ 6.18.*unaffected6.19.9 to ≤ 6.19.*unaffected7.0 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/c7012fc73dab4829404fedeeaa8531f12ac8545f ↗
- https://git.kernel.org/stable/c/51afaf919bbaacdd9cc9e146033ae0a743a42dd7 ↗
- https://git.kernel.org/stable/c/1899edac312ef17a7234851686e8a703f56d0a84 ↗
- https://git.kernel.org/stable/c/9c6159d5b72d5fc265cce5da04f27d730b552e69 ↗
- https://git.kernel.org/stable/c/6287e0c01ccb818e7214f88d885ffb7c9e81b0e0 ↗
- https://git.kernel.org/stable/c/0b7d11fd6e742ecc0b1eca44b4f0b93140c74bae ↗
- https://git.kernel.org/stable/c/6ffe44f022c95b1b29c691d2169c5abc046f7580 ↗
- https://git.kernel.org/stable/c/3cbc242b88c607f55da3d0d0d336b49bf1e20412 ↗