CVE-2024-42244: USB: serial: mos7840: fix crash on resume
In the Linux kernel, the following vulnerability has been resolved:
USB: serial: mos7840: fix crash on resume
Since commit c49cfa917025 ("USB: serial: use generic method if no alternative is provided in usb serial layer"), USB serial core calls the generic resume implementation when the driver has not provided one.
This can trigger a crash on resume with mos7840 since support for multiple read URBs was added back in 2011. Specifically, both port read URBs are now submitted on resume for open ports, but the context pointer of the second URB is left set to the core rather than mos7840 port structure.
Fix this by implementing dedicated suspend and resume functions for mos7840.
Tested with Delock 87414 USB 2.0 to 4x serial adapter.
[ johan: analyse crash and rewrite commit message; set busy flag on resume; drop bulk-in check; drop unnecessary usbkillurb() ]
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-42244?
CVE-2024-42244 is classified as a moderate severity vulnerability in the Linux kernel related to USB serial devices.
How do I fix CVE-2024-42244?
To resolve CVE-2024-42244, you should update your Linux kernel to the recommended versions, such as 5.10.223-1 or 6.1.123-1.
What versions of the Linux kernel are affected by CVE-2024-42244?
CVE-2024-42244 affects various kernel versions, specifically those between 3.3 and 6.6.41, excluding patched releases.
Is CVE-2024-42244 a local or remote vulnerability?
CVE-2024-42244 is considered a local vulnerability, as it pertains to the handling of USB serial devices when the system resumes.
Who is impacted by CVE-2024-42244?
Users operating affected versions of the Linux kernel, particularly those utilizing USB serial devices, are at risk from CVE-2024-42244.