Description
In the Linux kernel, the following vulnerability has been resolved: USB: serial: fix port tear down use-after-free Some drivers for multiport devices access port driver data from completion handlers of shared URBs submitted at attach() or first open() and stopped at disconnect() or last close(), respectively. A simple NULL check before accessing the driver data makes sure that a port state container has at least been allocated, but a completion handler can still race with port tear down. Reorder the disconnect handling so that ports are not deregistered (and their driver data freed) until after all ports have been hung up and the driver disconnect() callback has run so that all I/O has been stopped.
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
2d93148ab6988cad872e65d694c95e8944e1b626 to < 8ed69d299b9d7872f911f089e00cdd2ea6969d2caffected2d93148ab6988cad872e65d694c95e8944e1b626 to < bf296d7b75bfd49dc519ad0406e89ddc5c3f02e3affected2d93148ab6988cad872e65d694c95e8944e1b626 to < 94601d83fc4811485ca6fb1d50bece589fe1c24daffected2d93148ab6988cad872e65d694c95e8944e1b626 to < e4a6883ad9b4686a5f4bd90ff55a44d7ab65bd3caffected2d93148ab6988cad872e65d694c95e8944e1b626 to < 60cc9379c3e650d1ebfba4de63f1242537a62a32affected2d93148ab6988cad872e65d694c95e8944e1b626 to < 5e8980a81af195c49084be5b4c031085b56c7443affected2d93148ab6988cad872e65d694c95e8944e1b626 to < e80ee74206f260eb1282e7d1339ff146a4a410d0affected2d93148ab6988cad872e65d694c95e8944e1b626 to < 33c920f7c5952dfc42d1b8ea6efe16b1f0bb0c5baffected
Linux Linux
Default version status: affected
2.6.30affected0 to < 2.6.30unaffected5.10.273 to ≤ 5.10.*unaffected5.15.224 to ≤ 5.15.*unaffected6.1.191 to ≤ 6.1.*unaffected6.6.160 to ≤ 6.6.*unaffected6.12.113 to ≤ 6.12.*unaffected6.18.56 to ≤ 6.18.*unaffected7.2.10 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/8ed69d299b9d7872f911f089e00cdd2ea6969d2c ↗
- https://git.kernel.org/stable/c/bf296d7b75bfd49dc519ad0406e89ddc5c3f02e3 ↗
- https://git.kernel.org/stable/c/94601d83fc4811485ca6fb1d50bece589fe1c24d ↗
- https://git.kernel.org/stable/c/e4a6883ad9b4686a5f4bd90ff55a44d7ab65bd3c ↗
- https://git.kernel.org/stable/c/60cc9379c3e650d1ebfba4de63f1242537a62a32 ↗
- https://git.kernel.org/stable/c/5e8980a81af195c49084be5b4c031085b56c7443 ↗
- https://git.kernel.org/stable/c/e80ee74206f260eb1282e7d1339ff146a4a410d0 ↗
- https://git.kernel.org/stable/c/33c920f7c5952dfc42d1b8ea6efe16b1f0bb0c5b ↗