CVE-2025-40223
most: usb: Fix use-after-free in hdm_disconnect
Reported by linux · Published December 4, 2025
In the Linux kernel, the following vulnerability has been resolved: most: usb: Fix use-after-free in hdm_disconnect hdm_disconnect() calls most_deregister_interface(), which eventually unregisters the MOST interface device with device_unregister(iface->dev). If that drops the last reference, the device core may call release_mdev() immediately while hdm_disconnect() is still executing. The old code also freed several mdev-owned allocations in hdm_disconnect() and then performed additional put_device() calls. Depending on refcount order, this could lead to use-after-free or double-free when release_mdev() ran (or when unregister paths also performed puts). Fix by moving the frees of mdev-owned allocations into release_mdev(), so they happen exactly once when the device is truly released, and by dropping the extra put_device() calls in hdm_disconnect() that are redundant after device_unregister() and most_deregister_interface(). This addresses the KASAN slab-use-after-free reported by syzbot in hdm_disconnect(). See report and stack traces in the bug link below.
EPSS 0.22% · 12.6th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.18, 6.17.6, 6.12.56, 6.6.115, 6.1.158, 5.15.196, 5.10.246 |
| Linux | Linux | 5b5c478f09b1b35e7fe6fc9a1786c9bf6030e831, 5.9 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 97a6f772f36b7f52bcfa56a581bbd2470cffe23d, 97a6f772f36b7f52bcfa56a581bbd2470cffe23d, 97a6f772f36b7f52bcfa56a581bbd2470cffe23d |
| Linux | Linux | 5.9, 0, 5.10.246 |
| linux | linux_kernel | 5.9, 5.9, 5.9 |
| Linux | Linux | 97a6f772f36b7f52bcfa56a581bbd2470cffe23d, 97a6f772f36b7f52bcfa56a581bbd2470cffe23d, 97a6f772f36b7f52bcfa56a581bbd2470cffe23d |
Timeline
- Dec 4, 2025 CVE Published
- Dec 5, 2025 EPSS Score (30 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (168 in total, the first dated here)
- Mar 29, 2026 Security Advisory (218 in total, the first dated here)
- Jun 8, 2026 Coalition ESS Score
- Jun 17, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-40223
vulnetix vdb fixes CVE-2025-40223
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-40223/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart