CVE-2025-40095: Linux kernel · usb: gadget: f_rndis: Refactor bind path to use __free()
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.8 High · fixed in 6.8.0-1050.53~22.04.1 : patch Linux kernel soon.
Data as of 26 Oct 2026, 17:16 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.
- Patch
- Available – fixed in 6.8.0-1050.53~22.04.1, 6.8.0-1051.57~22.04.1, 6.8.0-1058.65~22.04.1 +38
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 26 Oct 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 25.10linuxpkg:deb/ubuntu/linux?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10linux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-oraclepkg:deb/ubuntu/linux-oracle?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and should be applied. The Ubuntu security advisory USN-8029-1 includes this fix as part of a broader Linux kernel update addressing multiple vulnerabilities. Users should update their Linux kernel packages to the fixed versions provided by their distribution vendors.
Description
A vulnerability in the Linux kernel's USB gadget f_rndis driver was resolved. The issue involved stale notify requests after bind/unbind cycles, which could lead to a NULL pointer dereference during error handling. This flaw could cause system crashes or potentially allow an attacker to compromise the system. Multiple Linux kernel versions are affected. A patch is available and has been incorporated in security updates.
References
- ubuntu.com/security/CVE-2025-40095 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-40095 (opens in a new tab)
- git.kernel.org/linus/08228941436047bdcd35a612c1aec0912a29d8cd (opens in a new tab)
- git.kernel.org/stable/c/08228941436047bdcd35a612c1aec0912a29d8cd (opens in a new tab)
- git.kernel.org/stable/c/380353c3a92be7d928e6f973bd065c5b79755ac3 (opens in a new tab)
- git.kernel.org/stable/c/5f65c8ad8c7292ed7e3716343fcd590a51818cc3 (opens in a new tab)
- git.kernel.org/stable/c/a8366263b7e5b663d7fb489d3a9ba1e2600049a6 (opens in a new tab)
- git.kernel.org/stable/c/ef81226bb1f8b6e761cd0b53d2696e9c1bc955d1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8029-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8030-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8029-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8048-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8029-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-8095-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8100-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8095-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8095-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-8095-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-8125-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8126-1 (opens in a new tab)