{"id":"CVE-2024-26716","summary":"usb: core: Prevent null pointer dereference in update_port_device_state","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: core: Prevent null pointer dereference in update_port_device_state\n\nCurrently, the function update_port_device_state gets the usb_hub from\nudev-\u003eparent by calling usb_hub_to_struct_hub.\nHowever, in case the actconfig or the maxchild is 0, the usb_hub would\nbe NULL and upon further accessing to get port_dev would result in null\npointer dereference.\n\nFix this by introducing an if check after the usb_hub is populated.","modified":"2026-04-02T10:05:43.118474Z","published":"2024-04-03T14:55:17.305Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26716.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/12783c0b9e2c7915a50d5ec829630ff2da50472c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/465b545d1d7ef282192ddd4439b08279bdb13f6f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ed85777c640cf9e6920bb1b60ed8cd48e1f4d873"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26716.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26716"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"83cb2604f641cecadc275ca18adbba4bf262320f"},{"fixed":"ed85777c640cf9e6920bb1b60ed8cd48e1f4d873"},{"fixed":"465b545d1d7ef282192ddd4439b08279bdb13f6f"},{"fixed":"12783c0b9e2c7915a50d5ec829630ff2da50472c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26716.json"}}],"schema_version":"1.7.5"}