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

High 7.8 Published Updated

A use-after-free vulnerability in the Linux kernel FSI OCC driver allows attackers to potentially execute code or escalate privileges.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-50785?

CVE-2022-50785 is a high-severity use after free vulnerability in Linux, published on 30 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

fsi: occ: Prevent use after free

Use get_device and put_device 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.

Which versions are affected by CVE-2022-50785?

How do I fix CVE-2022-50785?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2022-50785 being exploited?

There is no known exploitation of CVE-2022-50785 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2022-50785, GHSA-wv6p-qh73-f5xp, ROOT-OS-UBUNTU-2204-CVE-2022-50785, UBUNTU-CVE-2022-50785.

Is CVE-2022-50785 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free