7.8
HIGH
CVE-2024-26934
Ubuntu Linux USB Core Deadlock Vulnerability
Description

In the Linux kernel, the following vulnerability has been resolved: USB: core: Fix deadlock in usb_deauthorize_interface() Among the attribute file callback routines in drivers/usb/core/sysfs.c, the interface_authorized_store() function is the only one which acquires a device lock on an ancestor device: It calls usb_deauthorize_interface(), which locks the interface's parent USB device. The will lead to deadlock if another process already owns that lock and tries to remove the interface, whether through a configuration change or because the device has been disconnected. As part of the removal procedure, device_del() waits for all ongoing sysfs attribute callbacks to complete. But usb_deauthorize_interface() can't complete until the device lock has been released, and the lock won't be released until the removal has finished. The mechanism provided by sysfs to prevent this kind of deadlock is to use the sysfs_break_active_protection() function, which tells sysfs not to wait for the attribute callback. Reported-and-tested by: Yue Sun <[email protected]> Reported by: xingwei lee <[email protected]>

INFO

Published Date :

May 1, 2024, 6:15 a.m.

Last Modified :

June 27, 2024, 1:15 p.m.

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2024-26934 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-26934 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-26934 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 27, 2024

    Action Type Old Value New Value
    Added Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html [No types assigned]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 25, 2024

    Action Type Old Value New Value
    Added Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html [No types assigned]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 29, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    May. 23, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://git.kernel.org/stable/c/07acf979da33c721357ff27129edf74c23c036c6 No Types Assigned https://git.kernel.org/stable/c/07acf979da33c721357ff27129edf74c23c036c6 Patch
    Changed Reference Type https://git.kernel.org/stable/c/122a06f1068bf5e39089863f4f60b1f5d4273384 No Types Assigned https://git.kernel.org/stable/c/122a06f1068bf5e39089863f4f60b1f5d4273384 Patch
    Changed Reference Type https://git.kernel.org/stable/c/12d6a5681a0a5cecc2af7860f0a1613fa7c6e947 No Types Assigned https://git.kernel.org/stable/c/12d6a5681a0a5cecc2af7860f0a1613fa7c6e947 Patch
    Changed Reference Type https://git.kernel.org/stable/c/1b175bc579f46520b11ecda443bcd2ee4904f66a No Types Assigned https://git.kernel.org/stable/c/1b175bc579f46520b11ecda443bcd2ee4904f66a Patch
    Changed Reference Type https://git.kernel.org/stable/c/80ba43e9f799cbdd83842fc27db667289b3150f5 No Types Assigned https://git.kernel.org/stable/c/80ba43e9f799cbdd83842fc27db667289b3150f5 Patch
    Changed Reference Type https://git.kernel.org/stable/c/8cbdd324b41528994027128207fae8100dff094f No Types Assigned https://git.kernel.org/stable/c/8cbdd324b41528994027128207fae8100dff094f Patch
    Changed Reference Type https://git.kernel.org/stable/c/ab062fa3dc69aea88fe62162c5881ba14b50ecc5 No Types Assigned https://git.kernel.org/stable/c/ab062fa3dc69aea88fe62162c5881ba14b50ecc5 Patch
    Changed Reference Type https://git.kernel.org/stable/c/dbdf66250d2d33e8b27352fcb901de79f3521057 No Types Assigned https://git.kernel.org/stable/c/dbdf66250d2d33e8b27352fcb901de79f3521057 Patch
    Changed Reference Type https://git.kernel.org/stable/c/e451709573f8be904a8a72d0775bf114d7c291d9 No Types Assigned https://git.kernel.org/stable/c/e451709573f8be904a8a72d0775bf114d7c291d9 Patch
    Added CWE NIST CWE-667
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.4 up to (excluding) 4.19.312 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20.0 up to (excluding) 5.4.274 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5.0 up to (excluding) 5.10.215 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11.0 up to (excluding) 5.15.154 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16.0 up to (excluding) 6.1.84 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2.0 up to (excluding) 6.6.24 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7.0 up to (excluding) 6.7.12 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.8.0 up to (excluding) 6.8.3 *cpe:2.3:o:linux:linux_kernel:6.9:r1:*:*:*:*:*:*
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 01, 2024

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: USB: core: Fix deadlock in usb_deauthorize_interface() Among the attribute file callback routines in drivers/usb/core/sysfs.c, the interface_authorized_store() function is the only one which acquires a device lock on an ancestor device: It calls usb_deauthorize_interface(), which locks the interface's parent USB device. The will lead to deadlock if another process already owns that lock and tries to remove the interface, whether through a configuration change or because the device has been disconnected. As part of the removal procedure, device_del() waits for all ongoing sysfs attribute callbacks to complete. But usb_deauthorize_interface() can't complete until the device lock has been released, and the lock won't be released until the removal has finished. The mechanism provided by sysfs to prevent this kind of deadlock is to use the sysfs_break_active_protection() function, which tells sysfs not to wait for the attribute callback. Reported-and-tested by: Yue Sun <[email protected]> Reported by: xingwei lee <[email protected]>
    Added Reference kernel.org https://git.kernel.org/stable/c/8cbdd324b41528994027128207fae8100dff094f [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/12d6a5681a0a5cecc2af7860f0a1613fa7c6e947 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/e451709573f8be904a8a72d0775bf114d7c291d9 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/1b175bc579f46520b11ecda443bcd2ee4904f66a [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/ab062fa3dc69aea88fe62162c5881ba14b50ecc5 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/122a06f1068bf5e39089863f4f60b1f5d4273384 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/dbdf66250d2d33e8b27352fcb901de79f3521057 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/07acf979da33c721357ff27129edf74c23c036c6 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/80ba43e9f799cbdd83842fc27db667289b3150f5 [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-26934 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-26934 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability