usb: gadget: f_uac1_legacy: validate control request size
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.168 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_uac1_legacy: validate control request size f_audio_complete() copies req->length bytes into a 4-byte stack variable: u32 data = 0; memcpy(&data, req->buf, req->length); req->length is derived from the host-controlled USB request path, which can lead to a stack out-of-bounds write. Validate req->actual against the expected payload size for the supported control selectors and decode only the expected amount of data. This avoids copying a host-influenced length into a fixed-size stack object.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=2.6.31 <5.10.253, >=5.11 <5.15.203, >=5.16 <6.1.168, >=6.13 <6.18.22, >=6.19 <6.19.12, >=6.2 <6.6.134, >=6.7 <6.12.81, =7.0, >=c6994e6f067cf0fc4c6cca3d164018b1150916f8 <21b11e8581285c6f10ef43d05df349d445f24273, >=c6994e6f067cf0fc4c6cca3d164018b1150916f8 <26304d124e7f0383f8fe1168b5801a0ac7e16b1c, >=c6994e6f067cf0fc4c6cca3d164018b1150916f8 <557d1d4e862eccd0b74cc377b66de3e1e8d49605, >=c6994e6f067cf0fc4c6cca3d164018b1150916f8 <6e0e34d85cd46ceb37d16054e97a373a32770f6c, >=c6994e6f067cf0fc4c6cca3d164018b1150916f8 <8e5eb1d6e6a3d7bbea9c92132d0cda5793176426, >=c6994e6f067cf0fc4c6cca3d164018b1150916f8 <be2d32f0c3fe333d14c0a9ca90328dacbc3e06b8, >=c6994e6f067cf0fc4c6cca3d164018b1150916f8 <c6da4fed7537aec19880c24f6c3a95065adb1406, =2.6.31, >=c6994e6f067cf0fc4c6cca3d164018b1150916f8 <0d41772d98dcaf6c17e875b7d0ea0154ae1191ee | 5.10.253, 5.15.203, 6.1.168, 6.18.22, 6.19.12, 6.6.134, 6.12.81, 21b11e8581285c6f10ef43d05df349d445f24273, 26304d124e7f0383f8fe1168b5801a0ac7e16b1c, 557d1d4e862eccd0b74cc377b66de3e1e8d49605, 6e0e34d85cd46ceb37d16054e97a373a32770f6c, 8e5eb1d6e6a3d7bbea9c92132d0cda5793176426, be2d32f0c3fe333d14c0a9ca90328dacbc3e06b8, c6da4fed7537aec19880c24f6c3a95065adb1406, 0d41772d98dcaf6c17e875b7d0ea0154ae1191ee |
| linux-kernel: Kernel | >=2.6.31 <5.10.253, >=5.11.0 <5.15.203, >=5.16.0 <6.1.168, >=6.13.0 <6.18.22, >=6.19.0 <6.19.12, >=6.2.0 <6.6.134, >=6.7.0 <6.12.81 | 5.10.253, 5.15.203, 6.1.168, 6.18.22, 6.19.12, 6.6.134, 6.12.81 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket