1. Accueil
  2. Vulnérabilités
  3. CVE-2024-26934

CVE-2024-26934

USB: core: Fix deadlock in usb_deauthorize_interface()

Publiée le 1 mai 2024 · modifiée le 15 oct. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Faible 33/100

Résumé

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 <samsun1006219@gmail.com> Reported by: xingwei lee <xrivendell7@gmail.com>

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Linux (10 ligne(s))
Linux
ProduitVersionsCorrigé dansSource
Linux 4.4 — CNA (éditeur ou attributeur)
Linux kernel de 4.4 (inclus) à 4.19.312 (exclu) — NVD
Linux kernel de 4.20.0 (inclus) à 5.4.274 (exclu) — NVD
Linux kernel de 5.5.0 (inclus) à 5.10.215 (exclu) — NVD
Linux kernel de 5.11.0 (inclus) à 5.15.154 (exclu) — NVD
Linux kernel de 5.16.0 (inclus) à 6.1.84 (exclu) — NVD
Linux kernel de 6.2.0 (inclus) à 6.6.24 (exclu) — NVD
Linux kernel de 6.7.0 (inclus) à 6.7.12 (exclu) — NVD
Linux kernel de 6.8.0 (inclus) à 6.8.3 (exclu) — NVD
Linux kernel 6.9 — NVD

Correctif

Non renseigné par l’éditeur.

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
NVD
Faiblesse (CWE)
NVD
Vecteur CVSS
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1, NVD)
Faiblesse
CWE-667 · Autre (CWE-667)

Comment sont obtenues et calculées ces données