# CVE-2026-89732: usb: gadget: f\_fs: Prevent deadlock during ep0 read loop

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **Published:** 2026-09-11T19:46:41.974Z
- **Modified:** 2026-10-19T09:18:15.860Z

## Who should check

- Anyone running Linux \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< fbe3db4b650c284df8eb4cb68eebcf270cf861b5; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< 30430509c156e1df2bdafd5f1cadb160e53db5d6; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< bafddd0f20b5228760be303aa69c58502e92309c; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< b0a6bfac0c3c3edf5b2ecaee87a09234601fe78d; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< fd20cc68bbdb5620696ac108e8f2efd180fe2c1a; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< 34e88f53614640b59039a46717fb6142e9871022; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< eac233e63f9db82ba874e3cccafaafab162999e0; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< 569dd7e5dcffe1e1c6b26ca2cd3be57eb433e082
- Anyone running Linux 2.6.35

## Description

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

usb: gadget: f\_fs: Prevent deadlock during ep0 read loop

Currently, ffs\_ep0\_read() holds ffs-\>mutex when it prepares to go to
sleep waiting for an event. When no setup events are pending, it calls
wait\_event\_interruptible\_exclusive\_locked\_irq() with the mutex still
held. The wait macro deliberately drops the waitqueue spinlock before
sleeping but does not drop the mutex.

If a userspace daemon is polling ep0 via read() and the gadget is
asynchronously torn down via configfs (e.g., echo "" \> UDC), a
deadlock can occur:

1. The configfs teardown calls functionfs\_unbind(), which queues a
   FUNCTIONFS\_UNBIND event.
2. The daemon wakes up, consumes the event, and drops the mutex.
3. However, if the daemon loops and immediately issues another read()
   before exiting, it reacquires ffs-\>mutex and again goes into an
   interruptible sleep.
4. Meanwhile, functionfs\_unbind() continues execution and attempts to
   acquire ffs-\>mutex to tear down ep0req.
5. The kernel deadlocks because the configfs thread is stuck in an
   uninterruptible sleep waiting for the mutex, while the userspace
   daemon is in an interruptible sleep holding the mutex forever
   because no more events will arrive.

To fix this, we drop both the waitqueue spinlock and ffs-\>mutex before
going to sleep, and use wait\_event\_interruptible\_exclusive() instead.
Upon waking up, we jump back to the \`retry\` label to safely reacquire
the mutex and re-evaluate the state machine. By not sleeping with
ffs-\>mutex held, we natively decouple gadget teardowns (which require
the mutex) from userspace polling.

## Affected and fixed versions

- Linux: \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< fbe3db4b650c284df8eb4cb68eebcf270cf861b5; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< 30430509c156e1df2bdafd5f1cadb160e53db5d6; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< bafddd0f20b5228760be303aa69c58502e92309c; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< b0a6bfac0c3c3edf5b2ecaee87a09234601fe78d; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< fd20cc68bbdb5620696ac108e8f2efd180fe2c1a; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< 34e88f53614640b59039a46717fb6142e9871022; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< eac233e63f9db82ba874e3cccafaafab162999e0; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< 569dd7e5dcffe1e1c6b26ca2cd3be57eb433e082 (cvelist)
- Linux: 2.6.35 (cvelist)

## Mitigation

- Upgrade Linux to 569dd7e5dcffe1e1c6b26ca2cd3be57eb433e082 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-89732.md
Affected: Linux >= ddf8abd2599491cbad959c700b90ba72a5dce8d0, < fbe3db4b650c284df8eb4cb68eebcf270cf861b5; >= ddf8abd2599491cbad959c700b90ba72a5dce8d0, < 30430509c156e1df2bdafd5f1cadb160e53db5d6; >= ddf8abd2599491cbad959c700b90ba72a5dce8d0, < bafddd0f20b5228760be303aa69c58502e92309c; >= ddf8abd2599491cbad959c7…
Fixed in: Linux 30430509c156e1df2bdafd5f1cadb160e53db5d6, Linux 34e88f53614640b59039a46717fb6142e9871022, Linux 569dd7e5dcffe1e1c6b26ca2cd3be57eb433e082

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-2026-89732 being exploited?

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

### How serious is CVE-2026-89732?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-89732?

Linux \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< fbe3db4b650c284df8eb4cb68eebcf270cf861b5; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< 30430509c156e1df2bdafd5f1cadb160e53db5d6; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< bafddd0f20b5228760be303aa69c58502e92309c; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< b0a6bfac0c3c3edf5b2ecaee87a09234601fe78d; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< fd20cc68bbdb5620696ac108e8f2efd180fe2c1a; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< 34e88f53614640b59039a46717fb6142e9871022; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< eac233e63f9db82ba874e3cccafaafab162999e0; \>= ddf8abd2599491cbad959c700b90ba72a5dce8d0, \< 569dd7e5dcffe1e1c6b26ca2cd3be57eb433e082; Linux 2.6.35.

### Is there a fix for CVE-2026-89732?

Yes. Fixed in Linux 30430509c156e1df2bdafd5f1cadb160e53db5d6, Linux 34e88f53614640b59039a46717fb6142e9871022, Linux 569dd7e5dcffe1e1c6b26ca2cd3be57eb433e082. Upgrade Linux to 569dd7e5dcffe1e1c6b26ca2cd3be57eb433e082 or later.

### How do I check if I'm affected by CVE-2026-89732?

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

- other: <https://git.kernel.org/stable/c/fbe3db4b650c284df8eb4cb68eebcf270cf861b5>
- other: <https://git.kernel.org/stable/c/30430509c156e1df2bdafd5f1cadb160e53db5d6>
- other: <https://git.kernel.org/stable/c/bafddd0f20b5228760be303aa69c58502e92309c>
- other: <https://git.kernel.org/stable/c/b0a6bfac0c3c3edf5b2ecaee87a09234601fe78d>
- other: <https://git.kernel.org/stable/c/fd20cc68bbdb5620696ac108e8f2efd180fe2c1a>
- other: <https://git.kernel.org/stable/c/34e88f53614640b59039a46717fb6142e9871022>
- other: <https://git.kernel.org/stable/c/eac233e63f9db82ba874e3cccafaafab162999e0>
- other: <https://git.kernel.org/stable/c/569dd7e5dcffe1e1c6b26ca2cd3be57eb433e082>

## 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-2026-89732>

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