CyberRota Analysis
AI-GeneratedA use-after-free vulnerability exists in the Linux kernel's USB idmouse driver, where improper management of mutex locks can lead to accessing released memory during device disconnection. This flaw can potentially allow an attacker to execute arbitrary code or cause a denial of service. Organizations utilizing Linux systems, particularly those employing USB idmouse devices, should prioritize patching to mitigate the risk associated with this vulnerability.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: USB: idmouse: fix use-after-free on disconnect race mutex_unlock() may access the mutex structure after releasing the lock and therefore cannot be used to manage lifetime of objects directly (unlike spinlocks and refcounts). [1][2] Use a kref to release the driver data to avoid use-after-free in mutex_unlock() when release() races with disconnect(). [1] a51749ab34d9 ("locking/mutex: Document that mutex_unlock() is non-atomic") [2] 2b9d9e0a9ba0 ("locking/mutex: Clarify that mutex_unlock(), and most other sleeping locks, can still use the lock object after it's unlocked")