[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025123028-CVE-2022-50785-ed95@gregkh>
Date: Tue, 30 Dec 2025 13:03:28 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-50785: fsi: occ: Prevent use after free
From: Greg Kroah-Hartman <gregkh@...nel.org>
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.
The Linux kernel CVE team has assigned CVE-2022-50785 to this issue.
Affected and fixed versions
===========================
Fixed in 5.19.17 with commit 1d5ad0a874ddfcee9f932f54b1d34cbe8b9ddcfe
Fixed in 6.0.3 with commit 3593e8efc9f0dac6be70bd5c964eadaa86bf2713
Fixed in 6.1 with commit d3e1e24604031b0d83b6c2d38f54eeea265cfcc0
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2022-50785
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/fsi/fsi-occ.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/1d5ad0a874ddfcee9f932f54b1d34cbe8b9ddcfe
https://git.kernel.org/stable/c/3593e8efc9f0dac6be70bd5c964eadaa86bf2713
https://git.kernel.org/stable/c/d3e1e24604031b0d83b6c2d38f54eeea265cfcc0
Powered by blists - more mailing lists