{"api_version":"1","generated_at":"2026-09-22T10:23:29+00:00","cve":"CVE-2022-50785","urls":{"html":"https://cve.report/CVE-2022-50785","api":"https://cve.report/api/cve/CVE-2022-50785.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-50785","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-50785"},"summary":{"title":"fsi: occ: Prevent use after free","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2025-12-30 12:15:44","updated_at":"2026-08-04 10:18:24"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/1d5ad0a874ddfcee9f932f54b1d34cbe8b9ddcfe","name":"https://git.kernel.org/stable/c/1d5ad0a874ddfcee9f932f54b1d34cbe8b9ddcfe","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d3e1e24604031b0d83b6c2d38f54eeea265cfcc0","name":"https://git.kernel.org/stable/c/d3e1e24604031b0d83b6c2d38f54eeea265cfcc0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3593e8efc9f0dac6be70bd5c964eadaa86bf2713","name":"https://git.kernel.org/stable/c/3593e8efc9f0dac6be70bd5c964eadaa86bf2713","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-50785","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50785","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 008d3825a805557464c5e75f9eb806a3aa2f5e6d 1d5ad0a874ddfcee9f932f54b1d34cbe8b9ddcfe git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 008d3825a805557464c5e75f9eb806a3aa2f5e6d 3593e8efc9f0dac6be70bd5c964eadaa86bf2713 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 008d3825a805557464c5e75f9eb806a3aa2f5e6d d3e1e24604031b0d83b6c2d38f54eeea265cfcc0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.16","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.19.17 5.19.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.0.3 6.0.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2022","cve_id":"50785","cve":"CVE-2022-50785","epss":"0.001200000","percentile":"0.021340000","score_date":"2026-08-06","updated_at":"2026-08-07 00:14:20"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/fsi/fsi-occ.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"1d5ad0a874ddfcee9f932f54b1d34cbe8b9ddcfe","status":"affected","version":"008d3825a805557464c5e75f9eb806a3aa2f5e6d","versionType":"git"},{"lessThan":"3593e8efc9f0dac6be70bd5c964eadaa86bf2713","status":"affected","version":"008d3825a805557464c5e75f9eb806a3aa2f5e6d","versionType":"git"},{"lessThan":"d3e1e24604031b0d83b6c2d38f54eeea265cfcc0","status":"affected","version":"008d3825a805557464c5e75f9eb806a3aa2f5e6d","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/fsi/fsi-occ.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.16"},{"lessThan":"5.16","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.19.*","status":"unaffected","version":"5.19.17","versionType":"semver"},{"lessThanOrEqual":"6.0.*","status":"unaffected","version":"6.0.3","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.19.17","versionStartIncluding":"5.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.0.3","versionStartIncluding":"5.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1","versionStartIncluding":"5.16","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"providerMetadata":{"dateUpdated":"2026-08-04T09:10:03.924Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/1d5ad0a874ddfcee9f932f54b1d34cbe8b9ddcfe"},{"url":"https://git.kernel.org/stable/c/3593e8efc9f0dac6be70bd5c964eadaa86bf2713"},{"url":"https://git.kernel.org/stable/c/d3e1e24604031b0d83b6c2d38f54eeea265cfcc0"}],"title":"fsi: occ: Prevent use after free","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2022-50785","datePublished":"2025-12-30T12:03:22.224Z","dateReserved":"2025-12-24T13:02:21.548Z","dateUpdated":"2026-08-04T09:10:03.924Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2025-12-30 12:15:44","lastModifiedDate":"2026-08-04 10:18:24","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"50785","Ordinal":"1","Title":"fsi: occ: Prevent use after free","CVE":"CVE-2022-50785","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"50785","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"fsi: occ: Prevent use after free"}]}}}