VDB

CVE-2024-26933

CVE-2024-26933 PUBLISHED

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.

PackageEcosystemFixed in
kernel-libbpf-staticAmazon Linux6.1.84-99.169.amzn2023

Affected products

VendorProductVersions
LinuxLinuxf061f43d7418cb62b8d073e221ec75d3f5b89e17, f061f43d7418cb62b8d073e221ec75d3f5b89e17, f061f43d7418cb62b8d073e221ec75d3f5b89e17
LinuxLinux6.0, 0, 6.1.84
amazon:2023kernel-libbpf-static0
LinuxLinux*, *, *
amazon:2023kernel-modules-extra0
amazon:2023kernel0
amazon:2023kernel-devel0
amazon:2023kernel-modules-extra-common0
linuxlinux_kernel6.0, 6.0, 6.0
amazon:2023perf0
amazon:2023kernel-libbpf0
amazon:2023kernel-headers0
amazon:2023kernel-livepatch-6.1.84-99.1690
amazon:2023kernel-libbpf-devel0
amazon:2023python3-perf0
amazon:2023kernel-tools-devel0
amazon:2023bpftool0
amazon:2023kernel-tools0

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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›