Bug 2155788 (CVE-2022-4662)

Summary: CVE-2022-4662 kernel: Recursive locking violation in usb-storage that can cause the kernel to deadlock
Product: [Other] Security Response Reporter: Alex <allarkin>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: acaringi, adscvr, airlied, alciregi, bhu, chwhite, crwood, ddepaula, debarbos, dfreiber, dvlasenk, ezulian, hdegoede, hkrzesin, hpa, jarod, jarodwilson, jburrell, jfaracco, jferlan, jforbes, jglisse, jlelli, joe.lawrence, josef, jshortt, jstancek, jwboyer, jwyatt, kcarcia, kernel-maint, kernel-mgr, lgoncalv, linville, lzampier, masami256, mchehab, nmurray, ptalbert, qzhao, rogbas, rvrbovsk, scweaver, sgrubb, steved, tyberry, vkumar, walters, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Linux kernel 6.0-rc4 Doc Type: If docs needed, set a value
Doc Text:
An incorrect access control flaw was found in the Linux kernel USB core subsystem. When attaching a malicious usb device, the recursive locking violation in usb-storage can cause the kernel to deadlock. This issue could allow a local user to crash the system.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2113003, 2113004, 2155823, 2155854, 2155855, 2155856, 2155857    
Bug Blocks: 2135318    

Description Alex 2022-12-22 11:29:58 UTC
A flaw Incorrect Access Control in the Linux Kernel found. When attaching a malicious usb device or other way triggering bug in struct usb_device, the recursive locking violation in usb-storage could happen that can cause the kernel to deadlock.

References:
https://lore.kernel.org/all/20220913140355.910732567@linuxfoundation.org/
https://lore.kernel.org/all/CAB7eexLLApHJwZfMQ=X-PtRhw0BgO+5KcSMS05FNUYejJXqtSA@mail.gmail.com/

Comment 1 Alex 2022-12-22 13:51:34 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2155823]

Comment 7 Justin M. Forbes 2022-12-22 22:46:11 UTC
This was fixed for Fedora with the 5.19.8 stable kernel updates.