usb: host: max3421: Fix shift-out-of-bounds in max3421_hub_control()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel e5fa9d8f40746ec3447335c9642c03410f5fd3af, Kernel 00dd025324b56d39d37e57a08f473dab3a660f30, Kernel 02d03c61e8a7b016956acb48e8a2512d16d87517 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: usb: host: max3421: Fix shift-out-of-bounds in max3421_hub_control() The `max3421_hub_control()` function handles USB hub class requests to the virtual root hub. In the `default` branches of both the `ClearPortFeature` and `SetPortFeature` switch statements, it modifies `max3421_hcd->port_status` by left shifting 1 by the request's `value` parameter. However, it does not validate whether this shift will exceed the width of `port_status`. So if a malicious userspace task with access to the root hub via /dev/bus/usb/.../001 issues a USBDEVFS_CONTROL ioctl with `wValue` greater than or equal to 32, the left shift operation invokes shift-out-of-bounds undefined behavior. This results in arbitrary bit corruption of `port_status`, including the normally-immutable change bits, which can bypass internal state checks and confuse the hub status. Fix this by rejecting requests whose `value` exceeds the shift width before performing the shift. This issue was found using a KLEE-based symbolic execution tool for kernel drivers that I'm currently developing.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=2d53139f31626bad6f8983d8e519ddde2cbba921 <e5fa9d8f40746ec3447335c9642c03410f5fd3af, >=2d53139f31626bad6f8983d8e519ddde2cbba921 <00dd025324b56d39d37e57a08f473dab3a660f30, >=2d53139f31626bad6f8983d8e519ddde2cbba921 <02d03c61e8a7b016956acb48e8a2512d16d87517, >=2d53139f31626bad6f8983d8e519ddde2cbba921 <08b1d4cab0230697bc74c63fc4e40170a7559c54, >=2d53139f31626bad6f8983d8e519ddde2cbba921 <3be5f24e8270ba53b3c814d13689bb8644c86237, >=2d53139f31626bad6f8983d8e519ddde2cbba921 <4da073d57176d8e1c2bca34febfbc81d2560c1a5, >=2d53139f31626bad6f8983d8e519ddde2cbba921 <cff06b03b530ae1fe8a13e93a7848f2130e00fb4, >=2d53139f31626bad6f8983d8e519ddde2cbba921 <d512bdefd241b98f4d7bcb5bab5614a86411fad4, =3.16 | e5fa9d8f40746ec3447335c9642c03410f5fd3af, 00dd025324b56d39d37e57a08f473dab3a660f30, 02d03c61e8a7b016956acb48e8a2512d16d87517, 08b1d4cab0230697bc74c63fc4e40170a7559c54, 3be5f24e8270ba53b3c814d13689bb8644c86237, 4da073d57176d8e1c2bca34febfbc81d2560c1a5, cff06b03b530ae1fe8a13e93a7848f2130e00fb4, d512bdefd241b98f4d7bcb5bab5614a86411fad4 |
| linux-kernel: Kernel | >=5.11.0 <5.15.212, >=5.16.0 <6.1.178, >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.2.0 <6.6.145, >=6.7.0 <6.12.97, >=3.16.0 <5.10.261 | 5.15.212, 6.1.178, 6.18.40, 7.1.5, 6.6.145, 6.12.97, 5.10.261 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket