Skip to main content
VulnerabilityPublished

CVE-2025-40314: Linux kernel · usb: cdns3: gadget: Use-after-free during failed initialization and exit of cdnsp gadget

Source GCVE Database

0
Compare

Not known to be exploited.

Data as of 25 Nov 2026, 21:38 UTC

Severity
High

Rated High by Threat Radar's AI analysis · No CVSS score from NVD or the CNA

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 8 Dec 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 25 Nov 2026.

What to do

AI-suggested

A fix for this vulnerability has been implemented by modifying the order of freeing the gadget structure and its endpoints. Users should apply the official Linux kernel patches that address this issue. Since no specific patch links or fixed versions are provided, users should consult the Linux kernel vendor advisories or source repositories for the relevant updates.

Description

A use-after-free vulnerability exists in the Linux kernel's cdns3 USB gadget driver during failed initialization and exit of the cdnsp gadget. The gadget structure is freed before its endpoints, leaving dangling pointers that cause use-after-free when endpoints are freed later. This flaw has been resolved by changing the order of freeing operations to ensure endpoints are freed before the gadget structure.

References

Community reviews

Loading reviews…