CVE-2025-40093
usb: gadget: f_ecm: Refactor bind path to use __free()
Mitigation
- Upgrade Linux to 42988380ac67c76bb9dff8f77d7ef3eefd50b7b5 or later.
Who should check
- Anyone running Linux >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < d3745aaef19198d0c81637a7dd50ef53c4f879b7; >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 070f341d86cf2c098d63e484a86c7c1d2696a868; >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 15b9faf53ba8719700596e7ef78879ce200e8c2e; >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 4630c68bade82f087eaaab22e9a361da2f18d139; >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 42988380ac67c76bb9dff8f77d7ef3eefd50b7b5
- Anyone running Linux 2.6.27
Vulnerability facts
- Affected
- Linux >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < d3745aaef19198d0c81637a7dd50ef53c4f879b7; >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 070f341d86cf2c098d63e484a86c7c1d2696a868; >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 15b9faf53ba8719700596e7ef78879ce200e8c2e; >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 4630c68bade82f087eaaab22e9a361da2f18d139; >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 42988380ac67c76bb9dff8f77d7ef3eefd50b7b5; Linux 2.6.27
- Fixed in
- Linux 070f341d86cf2c098d63e484a86c7c1d2696a868, Linux 15b9faf53ba8719700596e7ef78879ce200e8c2e, Linux 4630c68bade82f087eaaab22e9a361da2f18d139, Linux 42988380ac67c76bb9dff8f77d7ef3eefd50b7b5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.24% chance of exploitation in 30 days (percentile 9, 2026-11-26)
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < d3745aaef19198d0c81637a7dd50ef53c4f879b7; >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 070f341d86cf2c098d63e484a86c7c1d2696a868; >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 15b9faf53ba8719700596e7ef78879ce200e8c2e; >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 4630c68bade82f087eaaab22e9a361da2f18d139; >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 42988380ac67c76bb9dff8f77d7ef3eefd50b7b5 | — | cvelist |
| Linux | 2.6.27 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-40093. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-40093.md Affected: Linux >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < d3745aaef19198d0c81637a7dd50ef53c4f879b7; >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 070f341d86cf2c098d63e484a86c7c1d2696a868; >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 15b9faf53ba8719700596e7ef78879ce200e8c2e; >= da741b8c56d612b5dd26ffa… Fixed in: Linux 070f341d86cf2c098d63e484a86c7c1d2696a868, Linux 15b9faf53ba8719700596e7ef78879ce200e8c2e, Linux 4630c68bade82f087eaaab22e9a361da2f18d139, Linux 42988380ac67c76bb9dff8f77d7ef3eefd50b7b5 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Other
- https://git.kernel.org/stable/c/d3745aaef19198d0c81637a7dd50ef53c4f879b7
- https://git.kernel.org/stable/c/070f341d86cf2c098d63e484a86c7c1d2696a868
- https://git.kernel.org/stable/c/15b9faf53ba8719700596e7ef78879ce200e8c2e
- https://git.kernel.org/stable/c/4630c68bade82f087eaaab22e9a361da2f18d139
- https://git.kernel.org/stable/c/42988380ac67c76bb9dff8f77d7ef3eefd50b7b5
FAQ
Is CVE-2025-40093 being exploited?
There is no confirmed exploitation: CVE-2025-40093 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-40093?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-40093?
Linux >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < d3745aaef19198d0c81637a7dd50ef53c4f879b7; >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 070f341d86cf2c098d63e484a86c7c1d2696a868; >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 15b9faf53ba8719700596e7ef78879ce200e8c2e; >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 4630c68bade82f087eaaab22e9a361da2f18d139; >= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 42988380ac67c76bb9dff8f77d7ef3eefd50b7b5; Linux 2.6.27.
Is there a fix for CVE-2025-40093?
Yes. Fixed in Linux 070f341d86cf2c098d63e484a86c7c1d2696a868, Linux 15b9faf53ba8719700596e7ef78879ce200e8c2e, Linux 4630c68bade82f087eaaab22e9a361da2f18d139, Linux 42988380ac67c76bb9dff8f77d7ef3eefd50b7b5. Upgrade Linux to 42988380ac67c76bb9dff8f77d7ef3eefd50b7b5 or later.
How do I check if I'm affected by CVE-2025-40093?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.