Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2024-26716

usb: core: Prevent null pointer dereference in update_port_device_state

Description

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 83cb2604f641cecadc275ca18adbba4bf262320f to < ed85777c640cf9e6920bb1b60ed8cd48e1f4d873affected
  • 83cb2604f641cecadc275ca18adbba4bf262320f to < 465b545d1d7ef282192ddd4439b08279bdb13f6faffected
  • 83cb2604f641cecadc275ca18adbba4bf262320f to < 12783c0b9e2c7915a50d5ec829630ff2da50472caffected

Linux Linux

Default version status: affected

  • 6.5affected
  • 0 to < 6.5unaffected
  • 6.6.18 to ≤ 6.6.*unaffected
  • 6.7.6 to ≤ 6.7.*unaffected
  • 6.8 to ≤ *unaffected

References