{"id":"CVE-2024-26716","state":"PUBLISHED","title":"usb: core: Prevent null pointer dereference in update_port_device_state","description":"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->parent 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.","publishedAt":"2024-04-03T14:55:17.305Z","updatedAt":"2026-05-11T20:02:46.920Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"83cb2604f641cecadc275ca18adbba4bf262320f","status":"affected","lessThan":"ed85777c640cf9e6920bb1b60ed8cd48e1f4d873","versionType":"git"},{"version":"83cb2604f641cecadc275ca18adbba4bf262320f","status":"affected","lessThan":"465b545d1d7ef282192ddd4439b08279bdb13f6f","versionType":"git"},{"version":"83cb2604f641cecadc275ca18adbba4bf262320f","status":"affected","lessThan":"12783c0b9e2c7915a50d5ec829630ff2da50472c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/core/hub.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.5","versionType":"semver"},{"version":"6.6.18","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.6","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/core/hub.c"]}],"references":["https://git.kernel.org/stable/c/ed85777c640cf9e6920bb1b60ed8cd48e1f4d873","https://git.kernel.org/stable/c/465b545d1d7ef282192ddd4439b08279bdb13f6f","https://git.kernel.org/stable/c/12783c0b9e2c7915a50d5ec829630ff2da50472c"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:10.607Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/26xxx/CVE-2024-26716.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-26716","state":"PUBLISHED","datePublished":"2024-04-03T14:55:17.305Z","dateUpdated":"2026-05-11T20:02:46.920Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-19T14:20:24.160Z"},"containers":{"cna":{"title":"usb: core: Prevent null pointer dereference in update_port_device_state","descriptions":[{"lang":"en","value":"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->parent 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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"83cb2604f641cecadc275ca18adbba4bf262320f","status":"affected","lessThan":"ed85777c640cf9e6920bb1b60ed8cd48e1f4d873","versionType":"git"},{"version":"83cb2604f641cecadc275ca18adbba4bf262320f","status":"affected","lessThan":"465b545d1d7ef282192ddd4439b08279bdb13f6f","versionType":"git"},{"version":"83cb2604f641cecadc275ca18adbba4bf262320f","status":"affected","lessThan":"12783c0b9e2c7915a50d5ec829630ff2da50472c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/core/hub.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.5","versionType":"semver"},{"version":"6.6.18","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.6","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/core/hub.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ed85777c640cf9e6920bb1b60ed8cd48e1f4d873"},{"url":"https://git.kernel.org/stable/c/465b545d1d7ef282192ddd4439b08279bdb13f6f"},{"url":"https://git.kernel.org/stable/c/12783c0b9e2c7915a50d5ec829630ff2da50472c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:02:46.920Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"6.6.18"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"6.7.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"6.8"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-06-17T19:29:15.448916Z","id":"CVE-2024-26716","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-17T19:29:25.918Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/ed85777c640cf9e6920bb1b60ed8cd48e1f4d873","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/465b545d1d7ef282192ddd4439b08279bdb13f6f","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/12783c0b9e2c7915a50d5ec829630ff2da50472c","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T00:14:12.989Z"}}]}}}