Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D0DBF40855 for ; Tue, 30 Dec 2025 12:03:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096213; cv=none; b=JqyGHNrRbmw1rIQHU6cnim7zER0ccupmVp7GZKhLa+WdFiF7uj2z3w6EscKD2RXP/vERYHUaCQjJvxaM+uHndc4ibwyx4FdEz3csEbLWqcVT28PUDzh4wI8U2fsFLLTy58szHIjmNqjFXhxaRleIRgeLqYa9X+Ztp05Ly0Q79k4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096213; c=relaxed/simple; bh=jix1PDZkOlXE1ayMJqNbbRt8LZUGMlO8BhX4JDoA6hc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fJeMPyNR5okMmaWpB48vzeS8djzpEANtMCpJusjJgIrCokTNOvgnf03NF9725XDdfKDq3lsZbeaSwPkDTkx5pE6JWc/2yeUJ2LPVROqHKAeajnXeIAYLLyGfZsef0kVpLNgAF8ddUrJ/6F1KhsGfLDRzc8L80wgnTl+Q9La58Z4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fMnSDaHa; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fMnSDaHa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C455C4CEFB; Tue, 30 Dec 2025 12:03:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096213; bh=jix1PDZkOlXE1ayMJqNbbRt8LZUGMlO8BhX4JDoA6hc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=fMnSDaHa0ITrH0wReihJLl4/NbuQGC9EUgh9OjqLksJ1Tu2rT3+HVW/6kdxquE0am gMdWha5wLjAR+d7BVgiuNGY9LJRBb03k5ELyQzOzSklhOc9OSthQUgySeCZh5AXjpn MGl+Ww4+fXESaU5YyTwG+UqasIlN4KWzSobovs2A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50785: fsi: occ: Prevent use after free Date: Tue, 30 Dec 2025 13:03:28 +0100 Message-ID: <2025123028-CVE-2022-50785-ed95@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1970; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vm4rXuCl0XqX6PqgHM8p3QojVZshghJJl+gMMV5qfm4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnB+ycwZVt/W7Vu1yOJVwdXftgfa/1tgngt/4FtW/sYZ hyp+/btWkcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMZN16hgVTZkn9uXH7TEzi QeYE/ye5H+efuiTKsGCyr8lFVu0bTsGs5s9YDOfN/mz16y0A X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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