Description
In the Linux kernel, the following vulnerability has been resolved: xhci: dbc: lock the minor IDR on registration failure dbc_tty_minors is protected by dbc_tty_minors_lock when entries are allocated and during normal device removal. The registration error path removes an entry without taking that lock. Different DbC instances have separate event work items, so this removal can race with an IDR update for another instance. Take the same mutex around the error-path removal.
Affected products and versions
Linux Linux4b4315ab4a141e79858dc3bdaa665f1e0af57fdb – < 22d26e097fedff1b0fd50e8a31a240c864c00e42 · e1ec140f273e1e30cea7e6d5f50934d877232121 – < 5416385033e80146fb8448943ac6e69c5b4b0ddc · e1ec140f273e1e30cea7e6d5f50934d877232121 – < f5bb1677f78ce41094e0d69d962d482efc6ce2d1 · e1ec140f273e1e30cea7e6d5f50934d877232121 – < fb342305bb990b9de7abd17c809a9cbda7340eef · e1ec140f273e1e30cea7e6d5f50934d877232121 – < a438bbc58ff6f8cc7327d7ba2fe58c89dc3992b3 · e1ec140f273e1e30cea7e6d5f50934d877232121 – < 575b718df8d6475bb0cb94cf7f5f1599c23c2235 · e1ec140f273e1e30cea7e6d5f50934d877232121 – < 47f4e983b5de7616fb11d5f537fc9a605387d136 · 5.15.198 – < 5.15.226Fixed in: 22d26e097fedff1b0fd50e8a31a240c864c00e42 · 5416385033e80146fb8448943ac6e69c5b4b0ddc · f5bb1677f78ce41094e0d69d962d482efc6ce2d1 · fb342305bb990b9de7abd17c809a9cbda7340eef · a438bbc58ff6f8cc7327d7ba2fe58c89dc3992b3 · 575b718df8d6475bb0cb94cf7f5f1599c23c2235 · 47f4e983b5de7616fb11d5f537fc9a605387d136 · 5.15.226
Linux Linux5.18Fixed in: 5.15.226 · 6.1.193 · 6.6.163 · 6.12.119 · 6.18.65 · 7.3.6 · 7.4-rc1
References
- git.kernel.org/stable/c/22d26e097fedff1b0fd50e8a31a240c864c00e42
- git.kernel.org/stable/c/5416385033e80146fb8448943ac6e69c5b4b0ddc
- git.kernel.org/stable/c/f5bb1677f78ce41094e0d69d962d482efc6ce2d1
- git.kernel.org/stable/c/fb342305bb990b9de7abd17c809a9cbda7340eef
- git.kernel.org/stable/c/a438bbc58ff6f8cc7327d7ba2fe58c89dc3992b3
- git.kernel.org/stable/c/575b718df8d6475bb0cb94cf7f5f1599c23c2235
- git.kernel.org/stable/c/47f4e983b5de7616fb11d5f537fc9a605387d136
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.