# CVE-2025-21776: USB: hub: Ignore non-compliant devices with too many configs or interfaces

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-02-27T02:18:21.503Z
- **Modified:** 2026-11-05T21:17:42.807Z

## Who should check

- Anyone running Linux \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< 49f077106fa07919a6a6dda99bb490dd1d1a8218; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< d343fe0fad5c1d689775f2dda24a85ce98e29566; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< d3a67adb365cdfdac4620daf38a82e57ca45806c; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< c3720b04df84b5459050ae4e03ec7d545652f897; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< e905a0fca7bff0855d312c16f71e60e1773b393e; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< 62d8f4c5454dd39aded4f343720d1c5a1803cfef; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< 5b9778e1fe715700993ce436c152dc3b7df0b490; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< 2240fed37afbcdb5e8b627bc7ad986891100e05d
- Anyone running Linux 3.9

## Description

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

USB: hub: Ignore non-compliant devices with too many configs or interfaces

Robert Morris created a test program which can cause
usb\_hub\_to\_struct\_hub() to dereference a NULL or inappropriate
pointer:

Oops: general protection fault, probably for non-canonical address
0xcccccccccccccccc: 0000 \[\#1\] SMP DEBUG\_PAGEALLOC PTI
CPU: 7 UID: 0 PID: 117 Comm: kworker/7:1 Not tainted 6.13.0-rc3-00017-gf44d154d6e3d \#14
Hardware name: FreeBSD BHYVE/BHYVE, BIOS 14.0 10/17/2021
Workqueue: usb\_hub\_wq hub\_event
RIP: 0010:usb\_hub\_adjust\_deviceremovable+0x78/0x110
...
Call Trace:
 \<TASK\>
 ? die\_addr+0x31/0x80
 ? exc\_general\_protection+0x1b4/0x3c0
 ? asm\_exc\_general\_protection+0x26/0x30
 ? usb\_hub\_adjust\_deviceremovable+0x78/0x110
 hub\_probe+0x7c7/0xab0
 usb\_probe\_interface+0x14b/0x350
 really\_probe+0xd0/0x2d0
 ? \_\_pfx\_\_\_device\_attach\_driver+0x10/0x10
 \_\_driver\_probe\_device+0x6e/0x110
 driver\_probe\_device+0x1a/0x90
 \_\_device\_attach\_driver+0x7e/0xc0
 bus\_for\_each\_drv+0x7f/0xd0
 \_\_device\_attach+0xaa/0x1a0
 bus\_probe\_device+0x8b/0xa0
 device\_add+0x62e/0x810
 usb\_set\_configuration+0x65d/0x990
 usb\_generic\_driver\_probe+0x4b/0x70
 usb\_probe\_device+0x36/0xd0

The cause of this error is that the device has two interfaces, and the
hub driver binds to interface 1 instead of interface 0, which is where
usb\_hub\_to\_struct\_hub() looks.

We can prevent the problem from occurring by refusing to accept hub
devices that violate the USB spec by having more than one
configuration or interface.

## Affected and fixed versions

- Linux: \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< 49f077106fa07919a6a6dda99bb490dd1d1a8218; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< d343fe0fad5c1d689775f2dda24a85ce98e29566; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< d3a67adb365cdfdac4620daf38a82e57ca45806c; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< c3720b04df84b5459050ae4e03ec7d545652f897; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< e905a0fca7bff0855d312c16f71e60e1773b393e; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< 62d8f4c5454dd39aded4f343720d1c5a1803cfef; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< 5b9778e1fe715700993ce436c152dc3b7df0b490; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< 2240fed37afbcdb5e8b627bc7ad986891100e05d (cvelist)
- Linux: 3.9 (cvelist)

## Mitigation

- Upgrade Linux to 2240fed37afbcdb5e8b627bc7ad986891100e05d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-21776. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21776.md
Affected: Linux >= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, < 49f077106fa07919a6a6dda99bb490dd1d1a8218; >= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, < d343fe0fad5c1d689775f2dda24a85ce98e29566; >= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, < d3a67adb365cdfdac4620daf38a82e57ca45806c; >= d2123fd9e1a56b8006986ed…
Fixed in: Linux 49f077106fa07919a6a6dda99bb490dd1d1a8218, Linux 62d8f4c5454dd39aded4f343720d1c5a1803cfef, Linux 5b9778e1fe715700993ce436c152dc3b7df0b490, Linux 2240fed37afbcdb5e8b627bc7ad986891100e05d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-21776 being exploited?

There is no confirmed exploitation: CVE-2025-21776 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-21776?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-21776?

Linux \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< 49f077106fa07919a6a6dda99bb490dd1d1a8218; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< d343fe0fad5c1d689775f2dda24a85ce98e29566; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< d3a67adb365cdfdac4620daf38a82e57ca45806c; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< c3720b04df84b5459050ae4e03ec7d545652f897; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< e905a0fca7bff0855d312c16f71e60e1773b393e; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< 62d8f4c5454dd39aded4f343720d1c5a1803cfef; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< 5b9778e1fe715700993ce436c152dc3b7df0b490; \>= d2123fd9e1a56b8006986ed37e0aaf93ef0dd978, \< 2240fed37afbcdb5e8b627bc7ad986891100e05d; Linux 3.9.

### Is there a fix for CVE-2025-21776?

Yes. Fixed in Linux 49f077106fa07919a6a6dda99bb490dd1d1a8218, Linux 62d8f4c5454dd39aded4f343720d1c5a1803cfef, Linux 5b9778e1fe715700993ce436c152dc3b7df0b490, Linux 2240fed37afbcdb5e8b627bc7ad986891100e05d. Upgrade Linux to 2240fed37afbcdb5e8b627bc7ad986891100e05d or later.

### How do I check if I'm affected by CVE-2025-21776?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/c3720b04df84b5459050ae4e03ec7d545652f897>
- patch: <https://git.kernel.org/stable/c/e905a0fca7bff0855d312c16f71e60e1773b393e>
- patch: <https://git.kernel.org/stable/c/62d8f4c5454dd39aded4f343720d1c5a1803cfef>
- patch: <https://git.kernel.org/stable/c/5b9778e1fe715700993ce436c152dc3b7df0b490>
- patch: <https://git.kernel.org/stable/c/2240fed37afbcdb5e8b627bc7ad986891100e05d>
- other: <https://git.kernel.org/stable/c/49f077106fa07919a6a6dda99bb490dd1d1a8218>
- other: <https://git.kernel.org/stable/c/d343fe0fad5c1d689775f2dda24a85ce98e29566>
- other: <https://git.kernel.org/stable/c/d3a67adb365cdfdac4620daf38a82e57ca45806c>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-503939.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21776>

HTML: <https://flawdb.com/CVE-2025-21776> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21776>
