{"id":"CVE-2022-50785","summary":"fsi: occ: Prevent use after free","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nfsi: occ: Prevent use after free\n\nUse get_device and put_device in the open and close functions to\nmake sure the device doesn't get freed while a file descriptor is\nopen.\nAlso, lock around the freeing of the device buffer and check the\nbuffer before using it in the submit function.","modified":"2026-04-02T08:28:45.563669Z","published":"2025-12-30T12:03:22.224Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50785.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1d5ad0a874ddfcee9f932f54b1d34cbe8b9ddcfe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3593e8efc9f0dac6be70bd5c964eadaa86bf2713"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d3e1e24604031b0d83b6c2d38f54eeea265cfcc0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50785.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50785"},{"type":"PACKAGE","url":"https://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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.7.5"}