CVE-2025-40223: Linux kernel · most: usb: Fix use-after-free in hdm_disconnect
Source GCVE Database
Not known to be exploited.
Data as of 25 Nov 2026, 03:38 UTC
Rated Medium by Threat Radar's AI analysis · No CVSS score from NVD or the CNA
Exploitation evidence
Disclosed: evidence found.
CVE published 4 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: 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 24 Nov 2026.
What to do
AI-suggested
A fix for this vulnerability has been implemented in the Linux kernel by restructuring memory management in the hdm_disconnect() function. Users should apply the updated kernel version containing this fix once available. No additional mitigation steps are indicated.
Description
A use-after-free vulnerability was identified and fixed in the Linux kernel's most: usb driver, specifically in the hdm_disconnect function. The issue arose because hdm_disconnect() called most_deregister_interface(), which could lead to the device being released while hdm_disconnect() was still executing. This caused potential use-after-free or double-free conditions due to improper memory management and reference counting. The fix involved moving the freeing of device-owned allocations to the release_mdev() function and removing redundant put_device() calls.
References
- nvd.nist.gov/vuln/detail/CVE-2025-40223 (opens in a new tab)
- git.kernel.org/stable/c/33daf469f5294b9d07c4fc98216cace9f4f34cc6 (opens in a new tab)
- git.kernel.org/stable/c/3a3b8e89c7201c5b3b76ac4a4069d1adde1477d6 (opens in a new tab)
- git.kernel.org/stable/c/4b1270902609ef0d935ed2faa2ea6d122bd148f5 (opens in a new tab)
- git.kernel.org/stable/c/578eb18cd111addec94c43f61cd4b4429e454809 (opens in a new tab)
- git.kernel.org/stable/c/5b5c478f09b1b35e7fe6fc9a1786c9bf6030e831 (opens in a new tab)
- git.kernel.org/stable/c/72427dc6f87523995f4e6ae35a948bb2992cabce (opens in a new tab)
- git.kernel.org/stable/c/f93a84ffb884d761a9d4e869ba29c238711e81f1 (opens in a new tab)