Skip to main content

Linux Kernel CVE-2026-31721

| EUVDEUVD-2026-26534 MEDIUM
2026-05-01 Linux
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain local low-privilege access
  2. Delivery
    Confirm f_hid gadget configured, /dev/hidg0 present
  3. Exploit
    Open /dev/hidg0, register fd with epoll (EPOLL_CTL_ADD)
  4. Install
    Trigger or await UDC unbind/rebind cycle
  5. C2
    hidg_bind re-initializes live wait queues
  6. Execute
    Call EPOLL_CTL_DEL to trigger list_del corruption
  7. Impact
    Kernel panic, system unavailable

Vulnerability Assessment

Exploitation Conditions

Exploitation requires all of the following: (1) the Linux kernel f_hid USB HID gadget driver must be active and a /dev/hidgN device must exist - this requires an explicit USB gadget configuration, not a default kernel state; (2) a process must have opened /dev/hidgN and registered that file descriptor with the epoll subsystem via EPOLL_CTL_ADD; (3) the USB Device Controller must be unbound and rebound while the epoll registration remains active - this typically requires root or privileged access to the gadget configfs interface; (4) the process must then perform EPOLL_CTL_DEL on the file descriptor. The CVSS PR:L metric confirms low-privilege local access is sufficient for the triggering process, but the UDC rebind likely requires elevated privilege in practice, raising the effective bar. Exploitation is limited to systems explicitly configured as USB gadgets (embedded Linux, Raspberry Pi in gadget mode, USB Armory, etc.) - standard servers and desktops running Linux are not vulnerable in default configurations.

Impact

Real-world risk is low-to-moderate despite the kernel-level impact. CVSS 5.5 (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) correctly reflects a local, low-privilege denial-of-service scenario. EPSS at 0.02% (7th percentile) aligns with the highly specific preconditions required: the vulnerability is not exploitable remotely and requires a deliberate bind/unbind cycle while epoll is in use. The vulnerability is not in CISA KEV and no POC has been identified. The 'Information Disclosure' tag in source intelligence conflicts with the CVSS C:N metric and the CVE description - no confidentiality impact is described; this tag appears to be a mis-classification artifact from automated tagging. SSVC assessment: exploitation status is 'none', the attack is not automatable (requires physical or privileged access to UDC control), and technical impact is partial (availability only). This is a genuine availability risk only for embedded or IoT systems running Linux with USB HID gadget emulation enabled - an uncommon production configuration. Standard enterprise servers and desktops are not affected unless explicitly configured as USB gadgets.

Exploit ScenarioDerived

A local attacker or a compromised process with low-privilege access on a Linux system configured as a USB HID gadget opens /dev/hidg0 and registers the file descriptor with epoll via EPOLL_CTL_ADD. The attacker then triggers or waits for an administrator to perform a UDC unbind/rebind cycle - for example, via configfs operations. When the UDC rebinds, hidg_bind() corrupts the wait queue; the attacker's subsequent EPOLL_CTL_DEL call triggers list_del corruption, crashing the kernel and causing a denial of service. No public POC has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

List corruption in the Linux kernel's USB HID gadget driver (f_hid) can crash systems configured with USB gadget functionality. When a user-space process opens /dev/hidg0, registers the file descriptor with epoll, and the UDC (USB Device Controller) is subsequently unbound and rebound, the hidg_bind() function re-initializes wait queues that still contain registered waiters - corrupting the kernel's internal list structures and triggering an availability-impacting kernel panic upon epoll removal. The vulnerability carries a CVSS score of 5.5 (Medium), EPSS of 0.02% (7th percentile), is not listed in CISA KEV, and no public exploit code has been identified at time of analysis.

RemediationAI

Upgrade to a patched Linux kernel version: mainline 7.0, or stable branch releases 6.19.12, 6.18.22, 6.12.81, 6.6.135, 6.1.169, 5.15.203, or 5.10.253. The upstream fix is available across eight stable-branch commits at git.kernel.org/stable (see references). Ubuntu users should apply the kernel update referenced in USN-8567-1 at https://ubuntu.com/security/notices/USN-8567-1. Red Hat and SUSE users should monitor their respective errata channels for kernel updates incorporating these upstream commits. If patching is not immediately possible, a specific compensating control is to avoid registering /dev/hidgN file descriptors with epoll on systems that perform UDC bind/unbind operations; alternatively, disable the f_hid USB gadget module (modprobe -r usb_f_hid) if HID gadget emulation is not required - this eliminates the attack surface entirely with no functional impact on non-gadget deployments.

Affected VersionsENISA

Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <8ec6a58586f195a88479edcdb0b8027c39f12d03
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <26a879a41ed960b3fb4ec773ef2788c515c0e488
Linux patch: 7.0
Linux patch: 6.18.22
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <5d1bb391ceeebb28327703dd07af8c6324af298f
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <de93e0862169b5539e00c2b9980b93fd80c37c0d
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <81aee4500055876883658b024b6fb61801afe134
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <f7d00ee1c8082c8a134340aaf16d71a27e29c362
Linux patch: 6.19.12
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <13440c0db227c5db01da751ed966dde4cdd2ea18
Linux patch: 6.6.135
Linux patch: 5.15.203
Linux patch: 5.10.253
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <4e0a88254ad59f6c53a34bf5fa241884ec09e8b2
Linux patch: 6.1.169
Linux patch: 6.12.81

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw resides in drivers/usb/gadget/function/f_hid.c within the Linux kernel's USB gadget framework. The f_hid function exposes HID (Human Interface Device) emulation over USB via /dev/hidgN character devices. Two wait queues - used to signal readable/writable state to user-space pollers - were initialized via init_waitqueue_head() inside hidg_bind(), the function called each time a UDC is bound. If a file descriptor is registered with the Linux epoll subsystem (EPOLL_CTL_ADD) while the gadget is bound, and the UDC is then unbound and rebound, hidg_bind() re-initializes the wait queues in-place while poll_wait() waiters are still enqueued. The subsequent EPOLL_CTL_DEL triggers ep_remove_wait_queue → remove_wait_queue, which calls list_del on an element whose list head has been clobbered by the re-initialization. With CONFIG_DEBUG_LIST enabled this manifests as a detectable list_del corruption; without it, silent memory corruption or a kernel oops may occur. The fix moves all relevant initialization calls from hidg_bind() to hidg_alloc(), tying the lifetime of wait queues to the function instance rather than the bind/unbind cycle. CPE string cpe:2.3:a:linux:linux identifies the Linux kernel as the sole affected product.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 4.7 MEDIUM

AC:H reflects the precise sequence required: gadget active, fd in epoll, and UDC rebind triggered; PR:L for the opening process, no confidentiality or integrity impact.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

5
CVSS changed
May 06, 2026 - 21:07 NVD
5.5 (MEDIUM)
Patch available
May 01, 2026 - 16:02 EUVD
Patch released
May 01, 2026 - 15:24 nvd
Patch available
CVE Published
May 01, 2026 - 14:14 nvd
MEDIUM 5.5
CVE Published
May 01, 2026 - 14:14 nvd
N/A

DescriptionNVD

In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: f_hid: move list and spinlock inits from bind to alloc

There was an issue when you did the following:

  • setup and bind an hid gadget
  • open /dev/hidg0
  • use the resulting fd in EPOLL_CTL_ADD
  • unbind the UDC
  • bind the UDC
  • use the fd in EPOLL_CTL_DEL

When CONFIG_DEBUG_LIST was enabled, a list_del corruption was reported within remove_wait_queue (via ep_remove_wait_queue). After some debugging I found out that the queues, which f_hid registers via poll_wait were the problem. These were initialized using init_waitqueue_head inside hidg_bind. So effectively, the bind function re-initialized the queues while there were still items in them.

The solution is to move the initialization from hidg_bind to hidg_alloc to extend their lifetimes to the lifetime of the function instance.

Additionally, I found many other possibly problematic init calls in the bind function, which I moved as well.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Prevalence
Ubiquitous
Linux kernel runs on the vast majority of servers, cloud, and embedded systems
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy