# CVE-2025-38376: usb: chipidea: udc: disconnect/reconnect from host when do suspend/resume

> 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.26% (percentile 11, 2026-11-26)
- **Published:** 2025-07-25T12:53:18.330Z
- **Modified:** 2026-06-17T09:16:44.107Z

## Who should check

- Anyone running Linux \>= 235ffc17d0146d806f6ad8c094c24ff4878f2edb, \< 937f49be49d6ee696eb5457c21ff89c135c9b5ae; \>= 235ffc17d0146d806f6ad8c094c24ff4878f2edb, \< c68a27bbebbdb4e0ccd45d4f0df7111a09ddac24; \>= 235ffc17d0146d806f6ad8c094c24ff4878f2edb, \< 5fd585fedb79bac2af9976b0fa3ffa354f0cc0bb; \>= 235ffc17d0146d806f6ad8c094c24ff4878f2edb, \< 31a6afbe86e8e9deba9ab53876ec49eafc7fd901
- Anyone running Linux 6.2

## Description

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

usb: chipidea: udc: disconnect/reconnect from host when do suspend/resume

Shawn and John reported a hang issue during system suspend as below:

 - USB gadget is enabled as Ethernet
 - There is data transfer over USB Ethernet (scp a big file between host
                                             and device)
 - Device is going in/out suspend (echo mem \> /sys/power/state)

The root cause is the USB device controller is suspended but the USB bus
is still active which caused the USB host continues to transfer data with
device and the device continues to queue USB requests (in this case, a
delayed TCP ACK packet trigger the issue) after controller is suspended,
however the USB controller clock is already gated off. Then if udc driver
access registers after that point, the system will hang.

The correct way to avoid such issue is to disconnect device from host when
the USB bus is not at suspend state. Then the host will receive disconnect
event and stop data transfer in time. To continue make USB gadget device
work after system resume, this will reconnect device automatically.

To make usb wakeup work if USB bus is already at suspend state, this will
keep connection for it only when USB device controller has enabled wakeup
capability.

## Affected and fixed versions

- Linux: \>= 235ffc17d0146d806f6ad8c094c24ff4878f2edb, \< 937f49be49d6ee696eb5457c21ff89c135c9b5ae; \>= 235ffc17d0146d806f6ad8c094c24ff4878f2edb, \< c68a27bbebbdb4e0ccd45d4f0df7111a09ddac24; \>= 235ffc17d0146d806f6ad8c094c24ff4878f2edb, \< 5fd585fedb79bac2af9976b0fa3ffa354f0cc0bb; \>= 235ffc17d0146d806f6ad8c094c24ff4878f2edb, \< 31a6afbe86e8e9deba9ab53876ec49eafc7fd901 (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- Upgrade Linux to 31a6afbe86e8e9deba9ab53876ec49eafc7fd901 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-38376. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38376.md
Affected: Linux >= 235ffc17d0146d806f6ad8c094c24ff4878f2edb, < 937f49be49d6ee696eb5457c21ff89c135c9b5ae; >= 235ffc17d0146d806f6ad8c094c24ff4878f2edb, < c68a27bbebbdb4e0ccd45d4f0df7111a09ddac24; >= 235ffc17d0146d806f6ad8c094c24ff4878f2edb, < 5fd585fedb79bac2af9976b0fa3ffa354f0cc0bb; >= 235ffc17d0146d806f6ad8c…
Fixed in: Linux 937f49be49d6ee696eb5457c21ff89c135c9b5ae, Linux 5fd585fedb79bac2af9976b0fa3ffa354f0cc0bb, Linux 31a6afbe86e8e9deba9ab53876ec49eafc7fd901

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-38376 being exploited?

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

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

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

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

Linux \>= 235ffc17d0146d806f6ad8c094c24ff4878f2edb, \< 937f49be49d6ee696eb5457c21ff89c135c9b5ae; \>= 235ffc17d0146d806f6ad8c094c24ff4878f2edb, \< c68a27bbebbdb4e0ccd45d4f0df7111a09ddac24; \>= 235ffc17d0146d806f6ad8c094c24ff4878f2edb, \< 5fd585fedb79bac2af9976b0fa3ffa354f0cc0bb; \>= 235ffc17d0146d806f6ad8c094c24ff4878f2edb, \< 31a6afbe86e8e9deba9ab53876ec49eafc7fd901; Linux 6.2.

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

Yes. Fixed in Linux 937f49be49d6ee696eb5457c21ff89c135c9b5ae, Linux 5fd585fedb79bac2af9976b0fa3ffa354f0cc0bb, Linux 31a6afbe86e8e9deba9ab53876ec49eafc7fd901. Upgrade Linux to 31a6afbe86e8e9deba9ab53876ec49eafc7fd901 or later.

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

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/937f49be49d6ee696eb5457c21ff89c135c9b5ae>
- patch: <https://git.kernel.org/stable/c/c68a27bbebbdb4e0ccd45d4f0df7111a09ddac24>
- patch: <https://git.kernel.org/stable/c/5fd585fedb79bac2af9976b0fa3ffa354f0cc0bb>
- patch: <https://git.kernel.org/stable/c/31a6afbe86e8e9deba9ab53876ec49eafc7fd901>

## 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-38376>

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