CVE-2024-26933
USB: core: Fix deadlock in port "disable" sysfs attribute
Reported by linux · Published May 1, 2024
In the Linux kernel, the following vulnerability has been resolved: USB: core: Fix deadlock in port "disable" sysfs attribute The show and store callback routines for the "disable" sysfs attribute file in port.c acquire the device lock for the port's parent hub device. This can cause problems if another process has locked the hub to remove it or change its configuration: Removing the hub or changing its configuration requires the hub interface to be removed, which requires the port device to be removed, and device_del() waits until all outstanding sysfs attribute callbacks for the ports have returned. The lock can't be released until then. But the disable_show() or disable_store() routine can't return until after it has acquired the lock. The resulting deadlock can be avoided by calling sysfs_break_active_protection(). This will cause the sysfs core not to wait for the attribute's callback routine to return, allowing the removal to proceed. The disadvantage is that after making this call, there is no guarantee that the hub structure won't be deallocated at any moment. To prevent this, we have to acquire a reference to it first by calling hub_get().
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-libbpf-static | Amazon Linux | 6.1.84-99.169.amzn2023 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | f061f43d7418cb62b8d073e221ec75d3f5b89e17, f061f43d7418cb62b8d073e221ec75d3f5b89e17, f061f43d7418cb62b8d073e221ec75d3f5b89e17 |
| Linux | Linux | 6.0, 0, 6.1.84 |
| amazon:2023 | kernel-libbpf-static | 0 |
| Linux | Linux | *, *, * |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| linux | linux_kernel | 6.0, 6.0, 6.0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-livepatch-6.1.84-99.169 | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-tools | 0 |
Timeline
- May 1, 2024 EPSS Score (30 in total, the first dated here)
- May 1, 2024 CVE Published
- Oct 4, 2024 Coalition ESS Score (9 in total, the first dated here)
- Jan 15, 2026 Security Advisory (308 in total, the first dated here)
- May 28, 2026 Distribution Patch (270 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-26933
vulnetix vdb fixes CVE-2024-26933
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-26933/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart