CVE-2026-98757 (GCVE-0-2026-98757)

Vulnerability from cvelistv5 – Published: 2026-10-18 15:47 – Updated: 2026-10-30 12:39
VLAI
Title
usb: cdns3: fix use-after-free in cdns3_gadget_exit()
Summary
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.
Severity
No CVSS data available.
Impacted products
Vendor Product Version
Linux Linux Affected: 7733f6c32e36ff9d7adadf40001039bf219b1cbe , < a980a250de22bb4a487e935176d5f7a6b81f9a02 (git)
Affected: 7733f6c32e36ff9d7adadf40001039bf219b1cbe , < 5d148a6afe13db0ba0e7a83e0e355ff5b7d6e3e8 (git)
Affected: 7733f6c32e36ff9d7adadf40001039bf219b1cbe , < 8650216d82e7713a0083377ebcc3a2af5978c8a8 (git)
Affected: 7733f6c32e36ff9d7adadf40001039bf219b1cbe , < efdf0ddaed01161dc1c1f25382856f2fd1c1f44f (git)
Affected: 7733f6c32e36ff9d7adadf40001039bf219b1cbe , < cc448700db656cceb4b411bf99a2e7132144d035 (git)
Affected: 7733f6c32e36ff9d7adadf40001039bf219b1cbe , < 95160fe606e685ff18de1e6ddcbc08289476004e (git)
Affected: 7733f6c32e36ff9d7adadf40001039bf219b1cbe , < 159dada48ee2d53eff46e66a8011d67b2c209bbc (git)
Affected: 7733f6c32e36ff9d7adadf40001039bf219b1cbe , < ebe9b68c396792c15d0ac690d592e449e74ed804 (git)
Create a notification for this product.
Linux Linux Affected: 5.4
Unaffected: 0 , < 5.4 (semver)
Unaffected: 5.10.273 , ≤ 5.10.* (semver)
Unaffected: 5.15.224 , ≤ 5.15.* (semver)
Unaffected: 6.1.191 , ≤ 6.1.* (semver)
Unaffected: 6.6.160 , ≤ 6.6.* (semver)
Unaffected: 6.12.113 , ≤ 6.12.* (semver)
Unaffected: 6.18.56 , ≤ 6.18.* (semver)
Unaffected: 7.2.10 , ≤ 7.2.* (semver)
Unaffected: 7.3 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/cdns3/cdns3-gadget.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "a980a250de22bb4a487e935176d5f7a6b81f9a02",
              "status": "affected",
              "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
              "versionType": "git"
            },
            {
              "lessThan": "5d148a6afe13db0ba0e7a83e0e355ff5b7d6e3e8",
              "status": "affected",
              "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
              "versionType": "git"
            },
            {
              "lessThan": "8650216d82e7713a0083377ebcc3a2af5978c8a8",
              "status": "affected",
              "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
              "versionType": "git"
            },
            {
              "lessThan": "efdf0ddaed01161dc1c1f25382856f2fd1c1f44f",
              "status": "affected",
              "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
              "versionType": "git"
            },
            {
              "lessThan": "cc448700db656cceb4b411bf99a2e7132144d035",
              "status": "affected",
              "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
              "versionType": "git"
            },
            {
              "lessThan": "95160fe606e685ff18de1e6ddcbc08289476004e",
              "status": "affected",
              "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
              "versionType": "git"
            },
            {
              "lessThan": "159dada48ee2d53eff46e66a8011d67b2c209bbc",
              "status": "affected",
              "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
              "versionType": "git"
            },
            {
              "lessThan": "ebe9b68c396792c15d0ac690d592e449e74ed804",
              "status": "affected",
              "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/cdns3/cdns3-gadget.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.4"
            },
            {
              "lessThan": "5.4",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.273",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.224",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.191",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.160",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.113",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.56",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.2.*",
              "status": "unaffected",
              "version": "7.2.10",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.273",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.224",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.191",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.160",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.113",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.56",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2.10",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3",
                  "versionStartIncluding": "5.4",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-10-30T12:39:27.986Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/a980a250de22bb4a487e935176d5f7a6b81f9a02"
        },
        {
          "url": "https://git.kernel.org/stable/c/5d148a6afe13db0ba0e7a83e0e355ff5b7d6e3e8"
        },
        {
          "url": "https://git.kernel.org/stable/c/8650216d82e7713a0083377ebcc3a2af5978c8a8"
        },
        {
          "url": "https://git.kernel.org/stable/c/efdf0ddaed01161dc1c1f25382856f2fd1c1f44f"
        },
        {
          "url": "https://git.kernel.org/stable/c/cc448700db656cceb4b411bf99a2e7132144d035"
        },
        {
          "url": "https://git.kernel.org/stable/c/95160fe606e685ff18de1e6ddcbc08289476004e"
        },
        {
          "url": "https://git.kernel.org/stable/c/159dada48ee2d53eff46e66a8011d67b2c209bbc"
        },
        {
          "url": "https://git.kernel.org/stable/c/ebe9b68c396792c15d0ac690d592e449e74ed804"
        }
      ],
      "title": "usb: cdns3: fix use-after-free in cdns3_gadget_exit()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-98757",
    "datePublished": "2026-10-18T15:47:44.486Z",
    "dateReserved": "2026-09-25T10:25:14.368Z",
    "dateUpdated": "2026-10-30T12:39:27.986Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-98757",
      "date": "2026-11-17",
      "epss": "0.00176",
      "percentile": "0.07234"
    },
    "microsoft_vex": {
      "current_release_date": "2026-11-12T17:58:22.000Z",
      "cve": "CVE-2026-98757",
      "id": "msrc_CVE-2026-98757",
      "initial_release_date": "2026-10-20T01:03:24.000Z",
      "product_status:fixed": "1",
      "product_status:known_affected": "1",
      "product_status:known_not_affected": "1",
      "product_status:under_investigation": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "usb: cdns3: fix use-after-free in cdns3_gadget_exit()",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-98757.json",
      "version": "4"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/usb/cdns3/cdns3-gadget.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "a980a250de22bb4a487e935176d5f7a6b81f9a02",
                    "status": "affected",
                    "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "5d148a6afe13db0ba0e7a83e0e355ff5b7d6e3e8",
                    "status": "affected",
                    "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "8650216d82e7713a0083377ebcc3a2af5978c8a8",
                    "status": "affected",
                    "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "efdf0ddaed01161dc1c1f25382856f2fd1c1f44f",
                    "status": "affected",
                    "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "cc448700db656cceb4b411bf99a2e7132144d035",
                    "status": "affected",
                    "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "95160fe606e685ff18de1e6ddcbc08289476004e",
                    "status": "affected",
                    "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "159dada48ee2d53eff46e66a8011d67b2c209bbc",
                    "status": "affected",
                    "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "ebe9b68c396792c15d0ac690d592e449e74ed804",
                    "status": "affected",
                    "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/usb/cdns3/cdns3-gadget.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "5.4"
                  },
                  {
                    "lessThan": "5.4",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.10.*",
                    "status": "unaffected",
                    "version": "5.10.273",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.224",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.191",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.6.*",
                    "status": "unaffected",
                    "version": "6.6.160",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.113",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.56",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.2.*",
                    "status": "unaffected",
                    "version": "7.2.10",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.3",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "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": "CVE-2026-98757",
        "lastModified": "2026-10-30T13:21:25.223",
        "metrics": {},
        "published": "2026-10-18T16:17:29.500",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/159dada48ee2d53eff46e66a8011d67b2c209bbc"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/5d148a6afe13db0ba0e7a83e0e355ff5b7d6e3e8"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/8650216d82e7713a0083377ebcc3a2af5978c8a8"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/95160fe606e685ff18de1e6ddcbc08289476004e"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/a980a250de22bb4a487e935176d5f7a6b81f9a02"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/cc448700db656cceb4b411bf99a2e7132144d035"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/ebe9b68c396792c15d0ac690d592e449e74ed804"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/efdf0ddaed01161dc1c1f25382856f2fd1c1f44f"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-06T03:11:01+00:00",
      "cve": "CVE-2026-98757",
      "id": "CVE-2026-98757",
      "initial_release_date": "2026-10-18T00:00:00+00:00",
      "product_status:known_affected": "1",
      "product_status:known_not_affected": "202",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: usb: cdns3: fix use-after-free in cdns3_gadget_exit()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-98757.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-11-14T00:52:19Z",
      "cve": "CVE-2026-98757",
      "id": "CVE-2026-98757",
      "initial_release_date": "2026-10-19T23:48:00Z",
      "product_status:known_affected": "510",
      "product_status:known_not_affected": "226",
      "product_status:recommended": "313",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-98757",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-98757.json",
      "version": "11"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

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.

Loading…

Loading…

Loading…

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.


Loading…