cbcvebase.
CVE-2025-40223
published 2025-12-04

CVE-2025-40223: In the Linux kernel, the following vulnerability has been resolved: most: usb: Fix use-after-free in hdm_disconnect hdm_disconnect() calls…

PriorityP424high7.8
EPSS
0.20%
10.3th percentile
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.

Affected

29 ranges· showing 25
VendorProductVersion rangeFixed in
debianlinux< linux 6.1.158-1 (bookworm)linux 6.1.158-1 (bookworm)
linuxlinux
linuxlinux>= 97a6f772f36b7f52bcfa56a581bbd2470cffe23d < 5b5c478f09b1b35e7fe6fc9a1786c9bf6030e8315b5c478f09b1b35e7fe6fc9a1786c9bf6030e831
linuxlinux>= 97a6f772f36b7f52bcfa56a581bbd2470cffe23d < 578eb18cd111addec94c43f61cd4b4429e454809578eb18cd111addec94c43f61cd4b4429e454809
linuxlinux>= 97a6f772f36b7f52bcfa56a581bbd2470cffe23d < 33daf469f5294b9d07c4fc98216cace9f4f34cc633daf469f5294b9d07c4fc98216cace9f4f34cc6
linuxlinux>= 97a6f772f36b7f52bcfa56a581bbd2470cffe23d < 72427dc6f87523995f4e6ae35a948bb2992cabce72427dc6f87523995f4e6ae35a948bb2992cabce
linuxlinux>= 97a6f772f36b7f52bcfa56a581bbd2470cffe23d < f93a84ffb884d761a9d4e869ba29c238711e81f1f93a84ffb884d761a9d4e869ba29c238711e81f1
linuxlinux>= 97a6f772f36b7f52bcfa56a581bbd2470cffe23d < 3a3b8e89c7201c5b3b76ac4a4069d1adde1477d63a3b8e89c7201c5b3b76ac4a4069d1adde1477d6
linuxlinux>= 97a6f772f36b7f52bcfa56a581bbd2470cffe23d < 4b1270902609ef0d935ed2faa2ea6d122bd148f54b1270902609ef0d935ed2faa2ea6d122bd148f5
linuxlinux_kernel>= 0 < 5.10.247-15.10.247-1
linuxlinux_kernel>= 0 < 6.1.158-16.1.158-1
linuxlinux_kernel>= 0 < 6.12.57-16.12.57-1
linuxlinux_kernel>= 0 < 6.17.6-16.17.6-1
linuxlinux_kernel>= 0 < 5.15.0-170.1805.15.0-170.180
linuxlinux_kernel>= 0 < 6.8.0-106.1066.8.0-106.106
linuxlinux_kernel>= 0 < 6.17.0-14.146.17.0-14.14
linuxlinux_kernel>= 5.11.0 < 5.15.1965.15.196
linuxlinux_kernel>= 5.16.0 < 6.1.1586.1.158
linuxlinux_kernel>= 5.9.0 < 5.10.2465.10.246
linuxlinux_kernel>= 6.13.0 < 6.17.66.17.6
linuxlinux_kernel>= 6.2.0 < 6.6.1156.6.115
linuxlinux_kernel>= 6.7.0 < 6.12.566.12.56
msrcazl3_kernel_6.6.112.1-2_on_azure_linux_3.0
ubuntulinux-aws
ubuntulinux-azure-5.15

CVSS provenance

osv7.8HIGH
vendor_msrc7.8HIGH
vendor_ubuntu7.8HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.