#VU119306 Use-after-free in Linux kernel - CVE-2025-40314
Published: December 8, 2025
Vulnerability identifier: #VU119306
Vulnerability risk: Low
CVSSv4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2025-40314
CWE-ID: CWE-416
Exploitation vector: Local access
Exploit availability:
No public exploit available
Vulnerable software:
Linux kernel
Linux kernel
Software vendor:
Linux Foundation
Linux Foundation
Description
The vulnerability allows a local user to escalate privileges on the system.
The vulnerability exists due to a use-after-free error within the __cdnsp_gadget_init() and cdnsp_gadget_exit() functions in drivers/usb/cdns3/cdnsp-gadget.c. A local user can escalate privileges on the system.
Remediation
Install update from vendor's repository.
External links
- https://git.kernel.org/stable/c/0cf9a50af91fbdac3849f8d950e883a3eaa3ecea
- https://git.kernel.org/stable/c/37158ce6ba964b62d1e3eebd11f03c6900a52dd1
- https://git.kernel.org/stable/c/87c5ff5615dc0a37167e8faf3adeeddc6f1344a3
- https://git.kernel.org/stable/c/9c52f01429c377a2d32cafc977465f37b5384f77
- https://git.kernel.org/stable/c/ea37884097a0931abb8e11e40eacfb25e9fdb5e9
- https://git.kernel.org/stable/c/fdf573c517627a96f5040f988e9b21267806be5c