FICHE CVE

CVE-2026-31756

Publiée le 2026-05-01 · Dernière modification le 2026-06-17

🇫🇷 EN BREF

Les systèmes utilisant le noyau Linux avec le pilote USB gadget `dwc2` sont affectés par une erreur de verrouillage pouvant entraîner le gel ou le plantage du système. Un attaquant disposant d'un accès local avec des privilèges restreints sur la machine peut déclencher cet interblocage pour provoquer un déni de service. Cela nécessite que l'attaquant possède déjà un compte ou un moyen d'exécuter du code sur le système, mais ne requiert aucune interaction de la part d'autres utilisateurs.

CVSS 3.15.5 MOYENNE
Publiée2026-05-01
Dernière modification2026-06-17

DÉTAIL DU VECTEUR CVSS

Vecteur d'attaqueLocal
Complexité d'attaqueFaible
Privilèges requisFaibles
Interaction utilisateurAucune
PortéeInchangée
Impact sur la confidentialitéAucun
Impact sur l'intégritéAucun
Impact sur la disponibilitéÉlevé

RÉFÉRENCES

Description officielle du NVD (en anglais)

In the Linux kernel, the following vulnerability has been resolved: usb: dwc2: gadget: Fix spin_lock/unlock mismatch in dwc2_hsotg_udc_stop() dwc2_gadget_exit_clock_gating() internally calls call_gadget() macro, which expects hsotg->lock to be held since it does spin_unlock/spin_lock around the gadget driver callback invocation. However, dwc2_hsotg_udc_stop() calls dwc2_gadget_exit_clock_gating() without holding the lock. This leads to: - spin_unlock on a lock that is not held (undefined behavior) - The lock remaining held after dwc2_gadget_exit_clock_gating() returns, causing a deadlock when spin_lock_irqsave() is called later in the same function. Fix this by acquiring hsotg->lock before calling dwc2_gadget_exit_clock_gating() and releasing it afterwards, which satisfies the locking requirement of the call_gadget() macro.