PT-2025-49444 · Linux+3 · Linux Kernel+3
Published
2025-09-17
·
Updated
2026-05-07
·
CVE-2025-40315
CVSS v2.0
4.3
Medium
| Vector | AV:A/AC:H/Au:S/C:N/I:N/A:C |
Name of the Vulnerable Software and Affected Versions
Linux kernel (affected versions not specified)
Description
A race condition exists within the USB gadget f fs functionality. Specifically, a NULL pointer dereference can occur in the
ffs func eps enable() function when accessing epfile->ep after a successful usb ep enable(). This happens when ffs data reset() clears the ffs->epfiles pointer to NULL before resetting ffs->eps count to 0, and ffs func eps enable() is executed concurrently. The ffs->epfiles pointer is set to NULL in both ffs data clear() and ffs data close() functions, and its modification is protected by the ffs->eps lock spinlock. The ffs func eps enable() function is also protected by ffs->eps lock.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
NULL Pointer Dereference
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Debian
Linuxmint
Linux Kernel
Ubuntu