CVE-2026-98757

usb: cdns3: fix use-after-free in cdns3_gadget_exit()

No CVSS score yet EPSS 0.22%

Published 18 Oct 2026 Updated 30 Oct 2026 CNA: Linux

Check your servers for CVE-2026-98757

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-98757 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: 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.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.36% of all scored CVEs. Scores of 29 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 7733f6c32e36ff9d7adadf40001039bf219b1cbe, before a980a250de22bb4a487e935176d5f7a6b81f9a02
affected from 7733f6c32e36ff9d7adadf40001039bf219b1cbe, before 5d148a6afe13db0ba0e7a83e0e355ff5b7d6e3e8
affected from 7733f6c32e36ff9d7adadf40001039bf219b1cbe, before 8650216d82e7713a0083377ebcc3a2af5978c8a8
affected from 7733f6c32e36ff9d7adadf40001039bf219b1cbe, before efdf0ddaed01161dc1c1f25382856f2fd1c1f44f
affected from 7733f6c32e36ff9d7adadf40001039bf219b1cbe, before cc448700db656cceb4b411bf99a2e7132144d035
affected from 7733f6c32e36ff9d7adadf40001039bf219b1cbe, before 95160fe606e685ff18de1e6ddcbc08289476004e
affected from 7733f6c32e36ff9d7adadf40001039bf219b1cbe, before 159dada48ee2d53eff46e66a8011d67b2c209bbc
affected from 7733f6c32e36ff9d7adadf40001039bf219b1cbe, before ebe9b68c396792c15d0ac690d592e449e74ed804
Other versions: unaffected
Linux
affected 5.4
unaffected before 5.4
unaffected from 5.10.273 up to and including 5.10.*
unaffected from 5.15.224 up to and including 5.15.*
unaffected from 6.1.191 up to and including 6.1.*
unaffected from 6.6.160 up to and including 6.6.*
unaffected from 6.12.113 up to and including 6.12.*
unaffected from 6.18.56 up to and including 6.18.*
unaffected from 7.2.10 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-98757 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98757

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-98757
trivy image --scanners vuln IMAGE | grep CVE-2026-98757

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