CVE-2025-40092: Linux kernel · usb: gadget: f_ncm: Refactor bind path to use __free()
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.8 High · fixed in 5.15.0-1100.107~20.04.2 : patch Linux kernel soon.
Data as of 28 Oct 2026, 11:18 UTC
- Patch
- Available – fixed in 5.15.0-1100.107~20.04.2, 5.15.0-1110.119~20.04.1, 5.15.0-1100.109~20.04.1 +71
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.
Patches and advisories
- 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-8033-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-8034-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-8029-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-5 (opens in a new tab)
- ubuntu.com/security/notices/USN-8034-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8048-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-6 (opens in a new tab)
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 has been released in multiple Linux kernel versions starting from 5.15.0-1094.97~20.04.1 and other related builds. Users and administrators should update their Linux kernel to one of the fixed versions listed in the advisory to remediate this vulnerability. No additional mitigation steps are indicated beyond applying the official kernel updates.
Description
CVE-2025-40092 is a high-severity vulnerability in the Linux kernel's USB gadget function (f_ncm). It involves improper error handling in the bind path, where a stale notify request is freed incorrectly after a bind/unbind cycle, leading to a NULL pointer dereference. This flaw can cause kernel crashes and potentially allow an attacker with local privileges to compromise system integrity. The issue affects multiple Linux kernel versions prior to fixed releases in the 5.15.0 series. A patch is available and has been incorporated in various updated kernel versions.
References
- ubuntu.com/security/CVE-2025-40092 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-40092 (opens in a new tab)
- git.kernel.org/linus/75a5b8d4ddd4eb6b16cb0b475d14ff4ae64295ef (opens in a new tab)
- git.kernel.org/stable/c/185193a4714aa9c78437a7a1858fbe5771f0f45c (opens in a new tab)
- git.kernel.org/stable/c/1cde4516295a030cb8ab4c93114ca3b6c3c6a1e2 (opens in a new tab)
- git.kernel.org/stable/c/75a5b8d4ddd4eb6b16cb0b475d14ff4ae64295ef (opens in a new tab)
- git.kernel.org/stable/c/d3fe7143928d8dfa2ec7bac9f906b48bc75b98ee (opens in a new tab)
- git.kernel.org/stable/c/ed78f4d6079d872432b1ed54f155ef61965d3137 (opens in a new tab)
- git.kernel.org/stable/c/f37de8dec6a4c379b4b8486003a1de00ff8cff3b (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-8033-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-8034-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-8029-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8033-5 (opens in a new tab)
- ubuntu.com/security/notices/USN-8034-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8048-1 (opens in a new tab)