Skip to main content
VulnerabilityPublished Updated

CVE-2026-31721: Linux kernel · usb: gadget: f_hid: move list and spinlock inits from bind to alloc

Source GCVE Database

0

Not known to be exploited · CVSS 5.5 Medium.

Data as of 27 Oct 2026, 02:20 UTC

CVSS 3.1 base score
5.5Medium
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

AI-suggested

A fix is available that moves the initialization of wait queues from the bind function to the allocation function in the f_hid USB gadget driver. Users should apply the official Linux kernel patch that addresses this issue. Since this is a kernel-level vulnerability, updating to a fixed kernel version is the recommended remediation. No additional mitigation steps are indicated.

Description

CVE-2026-31721 is a medium severity vulnerability in the Linux kernel's USB gadget HID function. It involves improper initialization of wait queues in the f_hid driver during the bind operation, which can lead to list corruption when debug list checking is enabled. The issue occurs when binding and unbinding the USB device controller (UDC) while using file descriptors with epoll operations. The fix moves initialization of these queues from the bind function to the allocation function to ensure proper lifetime management.

References

Community reviews

Loading reviews…