linux/drivers/most
Johan Hovold baadf2a5c2 most: usb: fix double free on late probe failure
The MOST subsystem has a non-standard registration function which frees
the interface on registration failures and on deregistration.

This unsurprisingly leads to bugs in the MOST drivers, and a couple of
recent changes turned a reference underflow and use-after-free in the
USB driver into several double free and a use-after-free on late probe
failures.

Fixes: 723de0f917 ("staging: most: remove device from interface structure")
Fixes: 4b12709026 ("most: usb: Fix use-after-free in hdm_disconnect")
Fixes: a8cc9e5fcb ("most: usb: hdm_probe: Fix calling put_device() before device initialization")
Cc: stable@vger.kernel.org
Cc: Christian Gromm <christian.gromm@microchip.com>
Cc: Victoria Votokina <Victoria.Votokina@kaspersky.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20251029093029.28922-1-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-11-09 11:15:20 +09:00
..
Kconfig most: tell what the MOST acronym means 2023-01-19 17:16:05 +01:00
Makefile
configfs.c staging: most: Replace all non-returning strlcpy with strscpy 2023-06-01 07:07:37 -07:00
core.c most: core: Drop device reference after usage in get_channel() 2025-08-19 12:57:34 +02:00
most_cdev.c most: remove usage of the deprecated ida_simple_xx() API 2024-06-24 22:25:08 -07:00
most_snd.c
most_usb.c most: usb: fix double free on late probe failure 2025-11-09 11:15:20 +09:00