CVE-2025-40093: Linux kernel · usb: gadget: f_ecm: Refactor bind path to use __free() After an bind/unbind
Source GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 4% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 30 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
AI-suggested
A fix has been implemented in the Linux kernel by refactoring the bind path to use the __free() automatic cleanup mechanism. Users should apply the official kernel updates that include this fix. No alternative mitigations are indicated.
Description
A vulnerability in the Linux kernel's USB gadget function (f_ecm) involves improper cleanup after a bind/unbind cycle, leading to a NULL pointer dereference. This occurs because a stale notify request is freed incorrectly if a subsequent bind fails. The issue has been addressed by refactoring the error handling to use an automatic cleanup mechanism.
References
- nvd.nist.gov/vuln/detail/CVE-2025-40093 (opens in a new tab)
- git.kernel.org/stable/c/070f341d86cf2c098d63e484a86c7c1d2696a868 (opens in a new tab)
- git.kernel.org/stable/c/15b9faf53ba8719700596e7ef78879ce200e8c2e (opens in a new tab)
- git.kernel.org/stable/c/42988380ac67c76bb9dff8f77d7ef3eefd50b7b5 (opens in a new tab)
- git.kernel.org/stable/c/4630c68bade82f087eaaab22e9a361da2f18d139 (opens in a new tab)
- git.kernel.org/stable/c/d3745aaef19198d0c81637a7dd50ef53c4f879b7 (opens in a new tab)