CVE-2022-50785: fsi: occ: Prevent use after free

Published Dec 30, 2025
·
Updated

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

5 affected componentsFixes available
linux/kernel
debian/linux<6.0.3-1
6.0.3-1
debian/linux<6.0.3-1
6.0.3-1
debian/linux<6.0.3-1
6.0.3-1
debian/linux
6.0.3-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.0.3-1
  2. 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.

  3. Compensating control

    In the submit function, lock around freeing the device buffer and check the buffer before using it.

Event History

Dec 30, 2025
CVE Published
via MITRE·12:03 PM
Data Sourced
via MITRE·12:03 PM
Description
Data Sourced
via NVD·12:15 PM
Description
Data Sourced
via OSV·12:15 PM
DescriptionSeverityAffected Software
Aug 4, 2026
Data Sourced
via MITRE·09:10 AM
Severity
Data Sourced
via NVD·10:18 AM
Severity

Frequently Asked Questions

1

What is the severity of CVE-2022-50785?

CVE-2022-50785 is classified as a medium-severity vulnerability in the Linux kernel.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203