CVE-2022-50785

Source
https://cve.org/CVERecord?id=CVE-2022-50785
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50785.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50785
Downstream
Published
2025-12-30T12:03:22.224Z
Modified
2026-04-02T08:28:45.563669Z
Summary
fsi: occ: Prevent use after free
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50785.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
008d3825a805557464c5e75f9eb806a3aa2f5e6d
Fixed
1d5ad0a874ddfcee9f932f54b1d34cbe8b9ddcfe
Fixed
3593e8efc9f0dac6be70bd5c964eadaa86bf2713
Fixed
d3e1e24604031b0d83b6c2d38f54eeea265cfcc0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50785.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.19.17
Type
ECOSYSTEM
Events
Introduced
5.20.0
Fixed
6.0.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50785.json"