CVE-2025-68290: most: usb: fix double free on late probe failure
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
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.
The Linux kernel CVE team has assigned CVE-2025-68290 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.6 with commit 723de0f9171eeb49a3ae98cae82ebbbb992b3a7c and fixed in 5.10.247 with commit 90e6ce2b1b19fb8b9d4afee69f40e4c6a4791154 Issue introduced in 5.6 with commit 723de0f9171eeb49a3ae98cae82ebbbb992b3a7c and fixed in 5.15.197 with commit a4c4118c2af284835b16431bbfe77e0130c06fef Issue introduced in 5.6 with commit 723de0f9171eeb49a3ae98cae82ebbbb992b3a7c and fixed in 6.1.159 with commit 0dece48660be16918ecf2dbdc7193e8be03e1693 Issue introduced in 5.6 with commit 723de0f9171eeb49a3ae98cae82ebbbb992b3a7c and fixed in 6.6.119 with commit 993bfdc3842893c394de13c8200c338ebb979589 Issue introduced in 5.6 with commit 723de0f9171eeb49a3ae98cae82ebbbb992b3a7c and fixed in 6.12.61 with commit 2274767dc02b756b25e3db1e31c0ed47c2a78442 Issue introduced in 5.6 with commit 723de0f9171eeb49a3ae98cae82ebbbb992b3a7c and fixed in 6.17.11 with commit 8d8ffefe3d5d8b7b73efb866db61130107299c5c Issue introduced in 5.6 with commit 723de0f9171eeb49a3ae98cae82ebbbb992b3a7c and fixed in 6.18 with commit baadf2a5c26e802a46573eaad331b427b49aaa36
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-68290
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/most/most_usb.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/90e6ce2b1b19fb8b9d4afee69f40e4c6a4791154 https://git.kernel.org/stable/c/a4c4118c2af284835b16431bbfe77e0130c06fef https://git.kernel.org/stable/c/0dece48660be16918ecf2dbdc7193e8be03e1693 https://git.kernel.org/stable/c/993bfdc3842893c394de13c8200c338ebb979589 https://git.kernel.org/stable/c/2274767dc02b756b25e3db1e31c0ed47c2a78442 https://git.kernel.org/stable/c/8d8ffefe3d5d8b7b73efb866db61130107299c5c https://git.kernel.org/stable/c/baadf2a5c26e802a46573eaad331b427b49aaa36