# CVE-2025-22023: usb: xhci: Don't skip on Stopped - Length Invalid

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-04-16T10:23:28.381Z
- **Modified:** 2026-06-17T08:44:52.127Z

## Who should check

- Anyone running Linux \>= d56b0b2ab142940b06eac56dcb3ab1ab88df38a2, \< 6af20ac254cbd0e1178a3542767c9308e209eee5; \>= d56b0b2ab142940b06eac56dcb3ab1ab88df38a2, \< 49cf6f5293aeb706dd672608478336a003f37df6; \>= d56b0b2ab142940b06eac56dcb3ab1ab88df38a2, \< de9e78167f760a699806793d7c987239e4f6c8c3; \>= d56b0b2ab142940b06eac56dcb3ab1ab88df38a2, \< 58d0a3fab5f4fdc112c16a4c6d382f62097afd1c
- Anyone running Linux 6.11

## Description

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

usb: xhci: Don't skip on Stopped - Length Invalid

Up until commit d56b0b2ab142 ("usb: xhci: ensure skipped isoc TDs are
returned when isoc ring is stopped") in v6.11, the driver didn't skip
missed isochronous TDs when handling Stoppend and Stopped - Length
Invalid events. Instead, it erroneously cleared the skip flag, which
would cause the ring to get stuck, as future events won't match the
missed TD which is never removed from the queue until it's cancelled.

This buggy logic seems to have been in place substantially unchanged
since the 3.x series over 10 years ago, which probably speaks first
and foremost about relative rarity of this case in normal usage, but
by the spec I see no reason why it shouldn't be possible.

After d56b0b2ab142, TDs are immediately skipped when handling those
Stopped events. This poses a potential problem in case of Stopped -
Length Invalid, which occurs either on completed TDs (likely already
given back) or Link and No-Op TRBs. Such event won't be recognized
as matching any TD (unless it's the rare Link TRB inside a TD) and
will result in skipping all pending TDs, giving them back possibly
before they are done, risking isoc data loss and maybe UAF by HW.

As a compromise, don't skip and don't clear the skip flag on this
kind of event. Then the next event will skip missed TDs. A downside
of not handling Stopped - Length Invalid on a Link inside a TD is
that if the TD is cancelled, its actual length will not be updated
to account for TRBs (silently) completed before the TD was stopped.

I had no luck producing this sequence of completion events so there
is no compelling demonstration of any resulting disaster. It may be
a very rare, obscure condition. The sole motivation for this patch
is that if such unlikely event does occur, I'd rather risk reporting
a cancelled partially done isoc frame as empty than gamble with UAF.

This will be fixed more properly by looking at Stopped event's TRB
pointer when making skipping decisions, but such rework is unlikely
to be backported to v6.12, which will stay around for a few years.

## Affected and fixed versions

- Linux: \>= d56b0b2ab142940b06eac56dcb3ab1ab88df38a2, \< 6af20ac254cbd0e1178a3542767c9308e209eee5; \>= d56b0b2ab142940b06eac56dcb3ab1ab88df38a2, \< 49cf6f5293aeb706dd672608478336a003f37df6; \>= d56b0b2ab142940b06eac56dcb3ab1ab88df38a2, \< de9e78167f760a699806793d7c987239e4f6c8c3; \>= d56b0b2ab142940b06eac56dcb3ab1ab88df38a2, \< 58d0a3fab5f4fdc112c16a4c6d382f62097afd1c (cvelist)
- Linux: 6.11 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-22023.md
Affected: Linux >= d56b0b2ab142940b06eac56dcb3ab1ab88df38a2, < 6af20ac254cbd0e1178a3542767c9308e209eee5; >= d56b0b2ab142940b06eac56dcb3ab1ab88df38a2, < 49cf6f5293aeb706dd672608478336a003f37df6; >= d56b0b2ab142940b06eac56dcb3ab1ab88df38a2, < de9e78167f760a699806793d7c987239e4f6c8c3; >= d56b0b2ab142940b06eac56…
Fixed in: Linux 6af20ac254cbd0e1178a3542767c9308e209eee5, Linux 49cf6f5293aeb706dd672608478336a003f37df6, Linux 58d0a3fab5f4fdc112c16a4c6d382f62097afd1c

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

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

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

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

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

Linux \>= d56b0b2ab142940b06eac56dcb3ab1ab88df38a2, \< 6af20ac254cbd0e1178a3542767c9308e209eee5; \>= d56b0b2ab142940b06eac56dcb3ab1ab88df38a2, \< 49cf6f5293aeb706dd672608478336a003f37df6; \>= d56b0b2ab142940b06eac56dcb3ab1ab88df38a2, \< de9e78167f760a699806793d7c987239e4f6c8c3; \>= d56b0b2ab142940b06eac56dcb3ab1ab88df38a2, \< 58d0a3fab5f4fdc112c16a4c6d382f62097afd1c; Linux 6.11.

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

Yes. Fixed in Linux 6af20ac254cbd0e1178a3542767c9308e209eee5, Linux 49cf6f5293aeb706dd672608478336a003f37df6, Linux 58d0a3fab5f4fdc112c16a4c6d382f62097afd1c. Upgrade Linux to 58d0a3fab5f4fdc112c16a4c6d382f62097afd1c or later.

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

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/6af20ac254cbd0e1178a3542767c9308e209eee5>
- patch: <https://git.kernel.org/stable/c/49cf6f5293aeb706dd672608478336a003f37df6>
- patch: <https://git.kernel.org/stable/c/de9e78167f760a699806793d7c987239e4f6c8c3>
- patch: <https://git.kernel.org/stable/c/58d0a3fab5f4fdc112c16a4c6d382f62097afd1c>

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

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