media: au0828: fix use-after-free in bulk_timeout timer on disconnect
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f6828fdabb07a9738419792273886d5b7d096757, Kernel 0cfc8c1884451c4c3839dfeb1e0e2b008bc00efc, Kernel 521030837bee352515d5ea57cc6a29581db3506e and 10 more.
In the Linux kernel, the following vulnerability has been resolved: media: au0828: fix use-after-free in bulk_timeout timer on disconnect start_urb_transfer() arms dev->bulk_timeout, whose callback au0828_bulk_timeout() queues dev->restart_streaming; that work in turn calls start_urb_transfer() and re-arms the timer. au0828_dvb_unregister() cancels restart_streaming on disconnect but does not sync bulk_timeout. au0828_usb_release() then frees dev with kfree(), so a timer still armed or pending at that point can fire after the free and dereference dev through timer_container_of(). Sync the timer with timer_shutdown_sync() before cancel_work_sync(). The timer callback queues the work, so the timer must be stopped first; the shutdown variant is needed because the work re-arms the timer through start_urb_transfer(). The dvb->frontend == NULL early return guards the register-failure path where the timer was never set up. This bug was found by static analysis.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=53460c53b7619c14e8564a3ba2c60fc27f303f6b <f6828fdabb07a9738419792273886d5b7d096757, >=53460c53b7619c14e8564a3ba2c60fc27f303f6b <0cfc8c1884451c4c3839dfeb1e0e2b008bc00efc, >=53460c53b7619c14e8564a3ba2c60fc27f303f6b <521030837bee352515d5ea57cc6a29581db3506e, >=53460c53b7619c14e8564a3ba2c60fc27f303f6b <5e30e92df3a0fb3985f3686536065219c28dd65d, >=53460c53b7619c14e8564a3ba2c60fc27f303f6b <95a1f45a82e51ff23bd82c0529bfd817c8ec437f, >=53460c53b7619c14e8564a3ba2c60fc27f303f6b <ca99be2c3c5e8794444fd4a5ce324c7672b0aa68, >=53460c53b7619c14e8564a3ba2c60fc27f303f6b <cb104ec7111aec9f9c19775422d70f917b39e947, =4.13 | f6828fdabb07a9738419792273886d5b7d096757, 0cfc8c1884451c4c3839dfeb1e0e2b008bc00efc, 521030837bee352515d5ea57cc6a29581db3506e, 5e30e92df3a0fb3985f3686536065219c28dd65d, 95a1f45a82e51ff23bd82c0529bfd817c8ec437f, ca99be2c3c5e8794444fd4a5ce324c7672b0aa68, cb104ec7111aec9f9c19775422d70f917b39e947 |
| linux-kernel: Kernel | >=5.16.0 <6.1.193, >=6.13.0 <6.18.61, >=6.19.0 <7.3.2, >=6.2.0 <6.6.163, >=6.7.0 <6.12.117, >=4.13.0 <5.15.226 | 6.1.193, 6.18.61, 7.3.2, 6.6.163, 6.12.117, 5.15.226 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket