CVE-2022-50785: fsi: occ: Prevent use after free
In the Linux kernel, the following vulnerability has been resolved:
fsi: occ: Prevent use after free
Use getdevice and putdevice in the open and close functions to make sure the device doesn't get freed while a file descriptor is open. Also, lock around the freeing of the device buffer and check the buffer before using it in the submit function.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.0.3-1 - Compensating control
In the Linux kernel fsi: occ driver, use get_device and put_device in the open and close functions to ensure the device is not freed while a file descriptor is open.
- Compensating control
In the submit function, lock around freeing the device buffer and check the buffer before using it.
Event History
Frequently Asked Questions
What is the severity of CVE-2022-50785?
CVE-2022-50785 is classified as a medium-severity vulnerability in the Linux kernel.
How do I fix CVE-2022-50785?
To fix CVE-2022-50785, ensure you are using the patched version of the Linux kernel that addresses the vulnerability.
What component of the Linux kernel is affected by CVE-2022-50785?
CVE-2022-50785 affects the fsi (file system interface) component of the Linux kernel.
What type of vulnerability is CVE-2022-50785?
CVE-2022-50785 is a use-after-free vulnerability that can occur when device freeing is not properly managed.
Who is impacted by CVE-2022-50785?
Users running vulnerable versions of the Linux kernel could be at risk if they do not apply the necessary updates.