CVE-2024-26934CWE-667

CVE-2024-26934

High · published May 1, 2024

CVSS v3.1
7.8
EPSS
0%
Percentile
8.2
In the wild
Unconfirmed
What it is

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]>

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00190 · 8.2th percentile
Weakness
CWE-667 · Improper Locking
Published
2024-05-01T10:15Z
Affected products (9)
ProductVersionsFixed in
linux/linux_kernel≥ 5.11.0, < 5.15.1545.15.154
linux/linux_kernel≥ 5.16.0, < 6.1.846.1.84
linux/linux_kernel≥ 6.2.0, < 6.6.246.6.24
linux/linux_kernel≥ 6.7.0, < 6.7.126.7.12
linux/linux_kernel≥ 6.8.0, < 6.8.36.8.3
linux/linux_kernelall versions—
linux/linux_kernel≥ 4.4, < 4.19.3124.19.312
linux/linux_kernel≥ 4.20.0, < 5.4.2745.4.274
linux/linux_kernel≥ 5.5.0, < 5.10.2155.10.215
References (21)
https://git.kernel.org/stable/c/07acf979da33c721357ff27129edf74c23c036c6 · 416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/122a06f1068bf5e39089863f4f60b1f5d4273384 · 416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/12d6a5681a0a5cecc2af7860f0a1613fa7c6e947 · 416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/1b175bc579f46520b11ecda443bcd2ee4904f66a · 416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/80ba43e9f799cbdd83842fc27db667289b3150f5 · 416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/8cbdd324b41528994027128207fae8100dff094f · 416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/ab062fa3dc69aea88fe62162c5881ba14b50ecc5 · 416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/dbdf66250d2d33e8b27352fcb901de79f3521057 · 416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/e451709573f8be904a8a72d0775bf114d7c291d9 · 416baaa9-dc9f-4396-8d5f-8c081fb06d67https://git.kernel.org/stable/c/07acf979da33c721357ff27129edf74c23c036c6 · af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/122a06f1068bf5e39089863f4f60b1f5d4273384 · af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/12d6a5681a0a5cecc2af7860f0a1613fa7c6e947 · af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/1b175bc579f46520b11ecda443bcd2ee4904f66a · af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/80ba43e9f799cbdd83842fc27db667289b3150f5 · af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/8cbdd324b41528994027128207fae8100dff094f · af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/ab062fa3dc69aea88fe62162c5881ba14b50ecc5 · af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/dbdf66250d2d33e8b27352fcb901de79f3521057 · af854a3a-2127-422b-91ae-364da2661108https://git.kernel.org/stable/c/e451709573f8be904a8a72d0775bf114d7c291d9 · af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html · af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html · af854a3a-2127-422b-91ae-364da2661108https://cert-portal.siemens.com/productcert/html/ssa-265688.html · 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
EPSS history
Timeline
  • 01 MAY 05:17Z
    USB: core: Fix deadlock in usb_deauthorize_interface()
    cvelistv5