CVE-2025-40093 Details
Description
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_ecm: Refactor bind path to use __free() After an bind/unbind cycle, the ecm->notify_req is left stale. If a subsequent bind fails, the unified error label attempts to free this stale request, leading to a NULL pointer dereference when accessing ep->ops->free_request. Refactor the error handling in the bind path to use the __free() automatic cleanup mechanism.
A NULL pointer dereference vulnerability has been identified in the Linux kernel's USB Ethernet gadget function, specifically in the ECM (Ethernet Control Model) implementation. This issue arises after a bind/unbind cycle, where the notification request pointer is left in a stale state. If a subsequent bind operation fails, the error handling attempts to free this stale request, leading to a NULL pointer dereference when accessing the endpoint's request free operation. The vulnerability has been addressed by refactoring the error handling in the bind process to utilize the automatic cleanup mechanism, ensuring that stale pointers are properly managed and do not lead to memory access errors.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for downloading the patched version are available on the official Linux kernel website.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 30, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/070f341d86cf2c098d63e484a86c7c1d2696a868 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/15b9faf53ba8719700596e7ef78879ce200e8c2e | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/42988380ac67c76bb9dff8f77d7ef3eefd50b7b5 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/4630c68bade82f087eaaab22e9a361da2f18d139 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/d3745aaef19198d0c81637a7dd50ef53c4f879b7 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 30, 2025 | New CVE Received | kernel.org |
Volerion