usb: core: Prevent null pointer dereference in update_port_device_state
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.6.18, 6.7.6
- CVEs
- CVE-2024-26716
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 00:55 UTC · Revision 1
Source evidence
usb: core: Prevent null pointer dereference in update_port_device_state
core-osv · Original sourcePublished 3 Apr 2024, 14:55 UTC
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.
osv:CVE-2024-26716
Kernel
Fixed versions: 6.6.18, 6.7.6
Complete source record
{
"id": "8181e98b9cfea0daf1fb3f609e4cbb5f32b30f32a98cbd90e3cba37aece5b5ae",
"url": "https://osv.dev/vulnerability/CVE-2024-26716",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "usb: core: Prevent null pointer dereference in update_port_device_state",
"summary": "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.",
"evidence": "osv:CVE-2024-26716",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.18",
"evidence": "/affected/1/ranges"
},
{
"value": "6.7.6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2024-26716",
"aliases": [
"CVE-2024-26716"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "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"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.5.0"
},
{
"fixed": "6.6.18"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.7.6"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26716.json"
}
}
],
"modified": "2026-10-28T02:30:48.970404177Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/12783c0b9e2c7915a50d5ec829630ff2da50472c",
"https://git.kernel.org/stable/c/465b545d1d7ef282192ddd4439b08279bdb13f6f",
"https://git.kernel.org/stable/c/ed85777c640cf9e6920bb1b60ed8cd48e1f4d873",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26716.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-26716",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26716.json"
}
},
"related_cves": [
{
"value": "CVE-2024-26716",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 516783,
"published_at": "2024-04-03T14:55:17.305+00:00"
}