# CVE-2026-98757: usb: cdns3: fix use-after-free in cdns3\_gadget\_exit()

> 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.22% (percentile 7, 2026-11-26)
- **Published:** 2026-10-18T15:47:44.486Z
- **Modified:** 2026-10-30T13:21:25.223Z

## Who should check

- Anyone running Linux \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< a980a250de22bb4a487e935176d5f7a6b81f9a02; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< 5d148a6afe13db0ba0e7a83e0e355ff5b7d6e3e8; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< 8650216d82e7713a0083377ebcc3a2af5978c8a8; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< efdf0ddaed01161dc1c1f25382856f2fd1c1f44f; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< cc448700db656cceb4b411bf99a2e7132144d035; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< 95160fe606e685ff18de1e6ddcbc08289476004e; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< 159dada48ee2d53eff46e66a8011d67b2c209bbc; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< ebe9b68c396792c15d0ac690d592e449e74ed804
- Anyone running Linux 5.4

## Description

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

usb: cdns3: fix use-after-free in cdns3\_gadget\_exit()

cdns3\_gadget\_start() arms two works on system\_freezable\_wq:
pending\_status\_wq for the deferred ep0 status stage and aligned\_buf\_wq
for realigned request buffers. Both handlers use the cdns3\_device the
works are embedded in, and cdns3\_pending\_setup\_status\_handler() also
calls the ep0 request completion.

cdns3\_gadget\_exit() does not wait for these works. It frees all
endpoints and aligned buffers and drops the last reference to the
gadget device, which frees priv\_dev, so a work queued before the exit
can run after the free.

Fix this by waiting for both works after the gadget driver is unbound
and the IRQ is freed, when no new work can be queued, and before the
endpoints and buffers are released.

This issue was found by an in-house static analysis tool.

## Affected and fixed versions

- Linux: \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< a980a250de22bb4a487e935176d5f7a6b81f9a02; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< 5d148a6afe13db0ba0e7a83e0e355ff5b7d6e3e8; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< 8650216d82e7713a0083377ebcc3a2af5978c8a8; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< efdf0ddaed01161dc1c1f25382856f2fd1c1f44f; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< cc448700db656cceb4b411bf99a2e7132144d035; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< 95160fe606e685ff18de1e6ddcbc08289476004e; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< 159dada48ee2d53eff46e66a8011d67b2c209bbc; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< ebe9b68c396792c15d0ac690d592e449e74ed804 (cvelist)
- Linux: 5.4 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-98757.md
Affected: Linux >= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, < a980a250de22bb4a487e935176d5f7a6b81f9a02; >= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, < 5d148a6afe13db0ba0e7a83e0e355ff5b7d6e3e8; >= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, < 8650216d82e7713a0083377ebcc3a2af5978c8a8; >= 7733f6c32e36ff9d7adadf4…
Fixed in: Linux 5d148a6afe13db0ba0e7a83e0e355ff5b7d6e3e8, Linux 8650216d82e7713a0083377ebcc3a2af5978c8a8, Linux 95160fe606e685ff18de1e6ddcbc08289476004e, Linux 159dada48ee2d53eff46e66a8011d67b2c209bbc

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< a980a250de22bb4a487e935176d5f7a6b81f9a02; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< 5d148a6afe13db0ba0e7a83e0e355ff5b7d6e3e8; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< 8650216d82e7713a0083377ebcc3a2af5978c8a8; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< efdf0ddaed01161dc1c1f25382856f2fd1c1f44f; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< cc448700db656cceb4b411bf99a2e7132144d035; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< 95160fe606e685ff18de1e6ddcbc08289476004e; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< 159dada48ee2d53eff46e66a8011d67b2c209bbc; \>= 7733f6c32e36ff9d7adadf40001039bf219b1cbe, \< ebe9b68c396792c15d0ac690d592e449e74ed804; Linux 5.4.

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

Yes. Fixed in Linux 5d148a6afe13db0ba0e7a83e0e355ff5b7d6e3e8, Linux 8650216d82e7713a0083377ebcc3a2af5978c8a8, Linux 95160fe606e685ff18de1e6ddcbc08289476004e, Linux 159dada48ee2d53eff46e66a8011d67b2c209bbc. No fix listed yet: follow the vendor advisory.

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

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/a980a250de22bb4a487e935176d5f7a6b81f9a02>
- other: <https://git.kernel.org/stable/c/5d148a6afe13db0ba0e7a83e0e355ff5b7d6e3e8>
- other: <https://git.kernel.org/stable/c/8650216d82e7713a0083377ebcc3a2af5978c8a8>
- other: <https://git.kernel.org/stable/c/efdf0ddaed01161dc1c1f25382856f2fd1c1f44f>
- other: <https://git.kernel.org/stable/c/cc448700db656cceb4b411bf99a2e7132144d035>
- other: <https://git.kernel.org/stable/c/95160fe606e685ff18de1e6ddcbc08289476004e>
- other: <https://git.kernel.org/stable/c/159dada48ee2d53eff46e66a8011d67b2c209bbc>
- other: <https://git.kernel.org/stable/c/ebe9b68c396792c15d0ac690d592e449e74ed804>

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

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