CVE-2022-49936 Information
Description
In the Linux kernel the following vulnerability has been resolved:
USB: core: Prevent nested device-reset calls
Automatic kernel fuzzing revealed a recursive locking violation in usb-storage:
============================================ WARNING: possible recursive locking detected 5.18.0 3 Not tainted
kworker/1:3/1205 is trying to acquire lock: ffff888018638db8 (&us_interface_key[i])+.+.-3:3 at: usb_stor_pre_reset+0x35/0x40 drivers/usb/storage/usb.c:230
but task is already holding lock: ffff888018638db8 (&us_interface_key[i])+.+.-3:3 at: usb_stor_pre_reset+0x35/0x40 drivers/usb/storage/usb.c:230
…
stack backtrace:
CPU: 1 PID: 1205 Comm: kworker/1:3 Not tainted 5.18.0 3
Hardware name: QEMU Standard PC (i440FX + PIIX 1996) BIOS
1.13.0-1ubuntu1.1 04/01/2014
Workqueue: usb_hub_wq hub_event
Call Trace:
This turned out not to be an error in usb-storage but rather a nested device reset attempt. That is as the rtl8712 driver was being unbound from a composite device in preparation for an unrelated USB reset (that driver does not have pre_reset or post_reset callbacks) its ->remove routine called usb_reset_device() – thus nesting one reset call within another.
Performing a reset as part of disconnect processing is a questionable practice at best. However the bug report points out that the USB core does not have any protection against nested resets. Adding a reset_in_progress flag and testing it will prevent such errors in the future.
Reference
https://git.kernel.org/stable/c/1b29498669914c7f9afb619722421418a753d372 https://git.kernel.org/stable/c/9c6d778800b921bde3bff3cff5003d1650f942d1 https://git.kernel.org/stable/c/abe3cfb7a7c8e907b312c7dbd7bf4d142b745aa8 https://git.kernel.org/stable/c/c548b99e1c37db6f7df86ecfe9a1f895d6c5966e https://git.kernel.org/stable/c/cc9a12e12808af178c600cc485338bac2e37d2a8 https://git.kernel.org/stable/c/d5eb850b3e8836197a38475840725260b9783e94 https://git.kernel.org/stable/c/d90419b8b8322b6924f6da9da952647f2dadc21b https://git.kernel.org/stable/c/df1875084898b15cbc42f712e93d7f113ae6271b
Related CNNVD
CNNVD-202506-2223 (Published: 2025-06-18)
Share on: