usb: core: Prevent null pointer dereference in update_port_device_state
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.6.186.7.66.8In the Linux kernel, the following vulnerability has been resolved:
usb: core: Prevent null pointer dereference in update_port_device_state
Currently, the function update_port_device_state gets the usb_hub from udev->parent by calling usb_hub_to_struct_hub. However, in case the actconfig or the maxchild is 0, the usb_hub would be NULL and upon further accessing to get port_dev would result in null pointer dereference.
Fix this by introducing an if check after the usb_hub is populated.
From the CVE record · Linux
The Linux kernel’s USB core can dereference a null pointer in update_port_device_state when a USB hub’s actconfig or maxchild is 0. This can cause a kernel fault; the input does not specify how an attacker could trigger it or whether access or user interaction is required.
Engineers running Linux kernels should check whether their kernel includes the USB core fix; affected versions are not specified.