# usb: cdns3: gadget: Use-after-free during failed initialization and exit of cdnsp gadget

CVE record · `CVE-2025-40314`

- **Identifiers:** `CVE-2025-40314`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 8 Dec 2025
- **Updated:** 11 May 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 8 Dec 2025, 00:46 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `8bc1901ca7b07d864fca11461b3875b31f949765 to before 0cf9a50af91fbdac3849f8d950e883a3eaa3ecea` (git)
  - affected: `8bc1901ca7b07d864fca11461b3875b31f949765 to before 37158ce6ba964b62d1e3eebd11f03c6900a52dd1` (git)
  - affected: `8bc1901ca7b07d864fca11461b3875b31f949765 to before ea37884097a0931abb8e11e40eacfb25e9fdb5e9` (git)
  - affected: `8bc1901ca7b07d864fca11461b3875b31f949765 to before 9c52f01429c377a2d32cafc977465f37b5384f77` (git)
  - affected: `8bc1901ca7b07d864fca11461b3875b31f949765 to before fdf573c517627a96f5040f988e9b21267806be5c` (git)
  - affected: `8bc1901ca7b07d864fca11461b3875b31f949765 to before 87c5ff5615dc0a37167e8faf3adeeddc6f1344a3` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.3`
  - unaffected: `before 5.3` (semver)
  - unaffected: `5.15.197 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.159 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.117 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.58 to 6.12.*, inclusive` (semver)
  - unaffected: `6.17.8 to 6.17.*, inclusive` (semver)
  - unaffected: `6.18 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0021, the 10th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 8 Dec 2025. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2025-40314](https://www.cve.org/CVERecord?id=CVE-2025-40314)
- [NVD: CVE-2025-40314](https://nvd.nist.gov/vuln/detail/CVE-2025-40314)

### References from the CNA

- <https://git.kernel.org/stable/c/0cf9a50af91fbdac3849f8d950e883a3eaa3ecea>
- <https://git.kernel.org/stable/c/37158ce6ba964b62d1e3eebd11f03c6900a52dd1>
- <https://git.kernel.org/stable/c/ea37884097a0931abb8e11e40eacfb25e9fdb5e9>
- <https://git.kernel.org/stable/c/9c52f01429c377a2d32cafc977465f37b5384f77>
- <https://git.kernel.org/stable/c/fdf573c517627a96f5040f988e9b21267806be5c>
- <https://git.kernel.org/stable/c/87c5ff5615dc0a37167e8faf3adeeddc6f1344a3>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2025-40314>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2025-40314/>. Everything for agents: <https://agentprime.io/llms.txt>.
