Overview
About vulnerability
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.
Details
- Affected product:
- AlmaLinux 9.2 ESU , Amazon Linux 2 ELS , CentOS 8.4 ELS , CentOS 8.5 ELS , CentOS Stream 8 ELS , Debian 10 ELS , Debian 11 ELS , Oracle Linux 7 ELS , TuxCare 9.6 ESU , TuxCare 9.8 ESU , Ubuntu 16.04 ELS , Ubuntu 18.04 ELS , Ubuntu 20.04 ELS
- Affected packages:
- linux @ 4.19.0 (+13 more)
Fixes
KernelCare state
Live-patch status from KernelCare for each operating system.
| Operating system | Status | Covered kernels |
|---|---|---|
| Debian 12 | Will Not Fix |
42 kernels
|
| Debian 13 | Will Not Fix |
13 kernels
|
| Ubuntu 22.04 | Planned | — |
| Ubuntu 22.04 AWS | Planned | — |
| Ubuntu 22.04 Azure | Planned | — |
| Ubuntu 24.04 | Planned | — |
| Ubuntu 24.04 AWS | Planned | — |
| Ubuntu 26.04 | In Rollout |
2 kernels
|