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 944A72563F for ; Wed, 28 Feb 2024 08:15:07 +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=1709108107; cv=none; b=I1qij6Oz9HFyzvB0+1NO7sVfeKjL8Xd6jA9n+GUML730WLUEx3MyQxOJAUt4mJysqmhZmZVPqi8um8ukHgfgSXwYkvzmq5qvcbWLGbCMlQ4tYytNnwilPGlfb2zYnjA0ani3uNtZEvzqBcyBc4QcVjyUqMcQwpkPxb6XvJgds1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709108107; c=relaxed/simple; bh=yet8IjiFNzlSuidKThiHhIhSzXyI1qxfti3EiuAHCa0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EjNsItQ6eerpAkp5VnplfRaSIf2W0RmmGXkrXmcPDXZdHZSOL9miZNRiXVyKy9ztFxrfVWaQXg9wYNaQmV0JtX/AEkP/PMC7H5bQfQpzds1hSvL32CygoTYtoIgXNYvzi6syhS2GPiL/1pyW3FliOaauP3Tsm21G8Y4msElfayE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NRgCQGYu; 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="NRgCQGYu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C18D7C433C7; Wed, 28 Feb 2024 08:15:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709108107; bh=yet8IjiFNzlSuidKThiHhIhSzXyI1qxfti3EiuAHCa0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NRgCQGYuhQjhyvd9CNPHF3JcJbX8JfWuiBEarL/RMQEYSCyAkptJB9BZp5jCrFnnC pWSJKWE5B3Io/FVGlEO4Tj0tocntL6HEkFBojhCaSXxKtIBM075gqRkI/8pDImmxnP HwfcglLr1jGjYQilfmUyC1mrR8nZxVbwtjZQhKtY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: gregkh@kernel.org Subject: CVE-2020-36785: media: atomisp: Fix use after free in atomisp_alloc_css_stat_bufs() Date: Wed, 28 Feb 2024 09:14:23 +0100 Message-ID: <2024022821-CVE-2020-36785-96c7@gregkh> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2162; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fqDL0QYKj60woaNkYGGwDkX5qaLM0Hjl/Apb6pfzx4g=; b=owGbwMvMwCRo6H6F97bub03G02pJDKn3Xsc+E9np/+Zv/Bz77B/fU+asXiimy8nspyRzaJrq+ aLDprv1O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiac8YFiz5uvSagldQ9V4X l3kqE1w6d0f/SWJY0DNpz37r21yVF9cp5zI3xXNG828qBAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: gregkh@kernel.org Description =========== In the Linux kernel, the following vulnerability has been resolved: media: atomisp: Fix use after free in atomisp_alloc_css_stat_bufs() The "s3a_buf" is freed along with all the other items on the "asd->s3a_stats" list. It leads to a double free and a use after free. The Linux kernel CVE team has assigned CVE-2020-36785 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit ad85094b293e and fixed in 5.10.37 with commit d218c7a0284f Issue introduced in 5.8 with commit ad85094b293e and fixed in 5.11.21 with commit 801c1d505894 Issue introduced in 5.8 with commit ad85094b293e and fixed in 5.12.4 with commit 8267ccd7b9df Issue introduced in 5.8 with commit ad85094b293e and fixed in 5.13 with commit ba11bbf303fa Please see https://www.kernel.org or 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-2020-36785 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/staging/media/atomisp/pci/atomisp_ioctl.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/d218c7a0284f6b92a7b82d2e19706e18663b4193 https://git.kernel.org/stable/c/801c1d505894008c888bc71d08d5cff5d87f8aba https://git.kernel.org/stable/c/8267ccd7b9df7ab682043507dd682fe0621cf045 https://git.kernel.org/stable/c/ba11bbf303fafb33989e95473e409f6ab412b18d