GHSA-CFX2-V35H-C74W
Vulnerability from github – Published: 2026-10-18 18:32 – Updated: 2026-10-30 15:33In 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": [],
"aliases": [
"CVE-2026-98757"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-10-18T16:17:29Z",
"severity": null
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: cdns3: fix use-after-free in cdns3_gadget_exit()\n\ncdns3_gadget_start() arms two works on system_freezable_wq:\npending_status_wq for the deferred ep0 status stage and aligned_buf_wq\nfor realigned request buffers. Both handlers use the cdns3_device the\nworks are embedded in, and cdns3_pending_setup_status_handler() also\ncalls the ep0 request completion.\n\ncdns3_gadget_exit() does not wait for these works. It frees all\nendpoints and aligned buffers and drops the last reference to the\ngadget device, which frees priv_dev, so a work queued before the exit\ncan run after the free.\n\nFix this by waiting for both works after the gadget driver is unbound\nand the IRQ is freed, when no new work can be queued, and before the\nendpoints and buffers are released.\n\nThis issue was found by an in-house static analysis tool.",
"id": "GHSA-cfx2-v35h-c74w",
"modified": "2026-10-30T15:33:59Z",
"published": "2026-10-18T18:32:02Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-98757"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/159dada48ee2d53eff46e66a8011d67b2c209bbc"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/5d148a6afe13db0ba0e7a83e0e355ff5b7d6e3e8"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/8650216d82e7713a0083377ebcc3a2af5978c8a8"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/95160fe606e685ff18de1e6ddcbc08289476004e"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/a980a250de22bb4a487e935176d5f7a6b81f9a02"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/cc448700db656cceb4b411bf99a2e7132144d035"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/ebe9b68c396792c15d0ac690d592e449e74ed804"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/efdf0ddaed01161dc1c1f25382856f2fd1c1f44f"
}
],
"schema_version": "1.4.0",
"severity": []
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.