CVE-2026-89732

usb: gadget: f_fs: Prevent deadlock during ep0 read loop

No CVSS score yet EPSS 0.23%

Published 11 Sep 2026 Updated 19 Oct 2026 CNA: Linux

Check your servers for CVE-2026-89732

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-89732 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.1% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from ddf8abd2599491cbad959c700b90ba72a5dce8d0, before fbe3db4b650c284df8eb4cb68eebcf270cf861b5
affected from ddf8abd2599491cbad959c700b90ba72a5dce8d0, before 30430509c156e1df2bdafd5f1cadb160e53db5d6
affected from ddf8abd2599491cbad959c700b90ba72a5dce8d0, before bafddd0f20b5228760be303aa69c58502e92309c
affected from ddf8abd2599491cbad959c700b90ba72a5dce8d0, before b0a6bfac0c3c3edf5b2ecaee87a09234601fe78d
affected from ddf8abd2599491cbad959c700b90ba72a5dce8d0, before fd20cc68bbdb5620696ac108e8f2efd180fe2c1a
affected from ddf8abd2599491cbad959c700b90ba72a5dce8d0, before 34e88f53614640b59039a46717fb6142e9871022
affected from ddf8abd2599491cbad959c700b90ba72a5dce8d0, before eac233e63f9db82ba874e3cccafaafab162999e0
affected from ddf8abd2599491cbad959c700b90ba72a5dce8d0, before 569dd7e5dcffe1e1c6b26ca2cd3be57eb433e082
Other versions: unaffected
Linux
affected 2.6.35
unaffected before 2.6.35
unaffected from 5.10.270 up to and including 5.10.*
unaffected from 5.15.221 up to and including 5.15.*
unaffected from 6.1.188 up to and including 6.1.*
unaffected from 6.6.157 up to and including 6.6.*
unaffected from 6.12.109 up to and including 6.12.*
unaffected from 6.18.50 up to and including 6.18.*
unaffected from 7.2.4 up to and including 7.2.*
unaffected 7.3 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-89732 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-89732

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-89732
trivy image --scanners vuln IMAGE | grep CVE-2026-89732

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-89732 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.