Vendors › Linux

CVE-2025-40314

N/A (no CVSS assigned) EPSS 0.3% Linux · drivers

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

A vulnerability in the Linux kernel drivers subsystem (drivers/usb/cdns3/cdnsp-gadget.c), assigned CVE-2025-40314. The issue was introduced in kernel 5.3 and is fixed in 5.15.197, 6.1.159, 6.6.117, 6.12.58, 6.17.8, 6.18. Updating to a fixed stable release resolves it.

Published2025-12-08
Updated2026-05-12
AffectedLinux kernel 5.3 and later, before the fix (fixed in 5.15.197, 6.1.159, 6.6.117, 6.12.58, 6.17.8, 6.18)
FixUpdate to kernel 5.15.197, 6.1.159, 6.6.117, 6.12.58, 6.17.8, 6.18 or later
Vendor advisoryhttps://cve.org/CVERecord/?id=CVE-2025-40314

CVEs (1)

CVECWETypeImpactLinks
CVE-2025-40314—OtherOtherNVD · CVE.org · EUVD

CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.

Same CVE in other advisories

Open in the CVEMesh app Create a free account

Track this advisory against your own stack — add your assets and CVEMesh shows which advisories actually apply to the versions you run.

CVEMesh aggregates public vendor advisories as guidance; always verify against the vendor's official advisory before patching or upgrading.