In 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.
History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published: 2024-04-03T14:55:17.305Z

Updated: 2024-11-05T09:14:25.452Z

Reserved: 2024-02-19T14:20:24.160Z

Link: CVE-2024-26716

cve-icon Vulnrichment

Updated: 2024-08-02T00:14:12.989Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2024-04-03T15:15:53.800

Modified: 2024-11-21T09:02:54.497

Link: CVE-2024-26716

cve-icon Redhat

Severity : Low

Publid Date: 2024-04-03T00:00:00Z

Links: CVE-2024-26716 - Bugzilla