Vulnerability · Published May 1, 2024 · Assigned by Linux

CVE-2024-26933USB: core: Fix deadlock in port "disable" sysfs attribute

High 7.8

In plain English

A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 7% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.8High
Exploit odds (30 days)0.2%top 92.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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().

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8bpftool4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-abi-stablelists4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-core4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-cross-headers4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-debug4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-debug-core4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-debug-devel4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-debug-modules4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-debug-modules-extra4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-devel4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-doc4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-headers4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-modules4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-modules-extra4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-rt4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-core4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-debug4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-debug-core4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-debug-devel4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-debug-kvm4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-debug-modules4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-debug-modules-extra4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-devel4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-kvm4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-modules4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-rt-modules-extra4.18.0-553.5.1.rt7.346.el8_10ALSA-2024:3627
AlmaLinux:8kernel-tools4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-tools-libs4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-tools-libs-devel4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-zfcpdump4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-zfcpdump-core4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-zfcpdump-devel4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-zfcpdump-modules4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-zfcpdump-modules-extra4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8perf4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8python3-perf4.18.0-553.5.1.el8_10ALSA-2024:3618
Debian:12linux6.1.85-1DEBIAN-CVE-2024-26933
Debian:13linux6.7.12-1DEBIAN-CVE-2024-26933
Debian:14linux6.7.12-1DEBIAN-CVE-2024-26933
Rocky Linux:8kernel0:4.18.0-553.5.1.el8_10RLSA-2024:3618
Rocky Linux:8kernel-rt0:4.18.0-553.5.1.rt7.346.el8_10RLSA-2024:3627
Ubuntu:24.04:LTSlinux6.8.0-35.35UBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2024-26933
Ubuntu:24.04:LTSlinux-aws6.8.0-1009.9UBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-aws-6.5no fix listedUBUNTU-CVE-2024-26933
Ubuntu:24.04:LTSlinux-azure6.8.0-1008.8UBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-azure-6.5no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2024-26933
Ubuntu:24.04:LTSlinux-gcp6.8.0-1008.9UBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-gcp-6.5no fix listedUBUNTU-CVE-2024-26933
Ubuntu:24.04:LTSlinux-gke6.8.0-1004.7UBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-hwe-6.5no fix listedUBUNTU-CVE-2024-26933
Ubuntu:24.04:LTSlinux-ibm6.8.0-1006.6UBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-intel-iot-realtimeno fix listedUBUNTU-CVE-2024-26933
Ubuntu:24.04:LTSlinux-lowlatency6.8.0-35.35.1UBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.5no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-nvidia-6.5no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-oem-6.5no fix listedUBUNTU-CVE-2024-26933
Ubuntu:24.04:LTSlinux-oem-6.86.8.0-1006.6UBUNTU-CVE-2024-26933
Ubuntu:24.04:LTSlinux-oracle6.8.0-1006.6UBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-oracle-6.5no fix listedUBUNTU-CVE-2024-26933
Ubuntu:24.04:LTSlinux-raspi6.8.0-1005.5UBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2024-26933
Ubuntu:24.04:LTSlinux-riscv6.8.0-35.35.1UBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-riscv-6.5no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2024-26933
Ubuntu:22.04:LTSlinux-starfive-6.5no fix listedUBUNTU-CVE-2024-26933

Affected products (as reported)

VendorProductVersions
Linux Linux f061f43d7418cb62b8d073e221ec75d3f5b89e17 – before 9dac54f08198147f5ec0ec52fcf1bc8ac899ac05f061f43d7418cb62b8d073e221ec75d3f5b89e17 – before f51849833705dea5b4f9b0c8de714dd87bd6c95cf061f43d7418cb62b8d073e221ec75d3f5b89e17 – before 4facc9421117ba9d8148c73771b213887fec77f7f061f43d7418cb62b8d073e221ec75d3f5b89e17 – before 73d1589b91f2099e5f6534a8497b7c6b527e064ef061f43d7418cb62b8d073e221ec75d3f5b89e17 – before f4d1960764d8a70318b02f15203a1be2b2554ca1
Linux Linux 6.0

References