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 E794119EEBD for ; Wed, 26 Feb 2025 01:57:51 +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=1740535072; cv=none; b=E4TeEJbG4g0LqsULPxTW7yKr7PipLV6IDUmu7RDlXcvB+OvXN65oqIjx8yR0sR63+eN0+oCiIGGeN11ScjUTX5p982Xx8b8NV873qlMMxQpNYJmgjPyDAhvBLczuDUSmaBhS/3T/aI1H6THqtW1E4A+B9IeJVCkHk8fphisWHV8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535072; c=relaxed/simple; bh=cOkcEHwN/hL322zMw30DXpyd2YBs6y4UyA/dui3dVhc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QPDiz90j/O65TV7rKivZ4/iAB19js2QGBsdvAXYcXYU8FhO6OyxZp0qDh9JkaUqJaaw4IdIlK5z9O7V2NamR2sye6w3ZSwMxSP3lnZ7K3qqxkAg4vHnSg8CQoMIC/f15/11XkZZ4IqtuR3uz8VA0DL5n1IayaXjhL4QqXLtGdBE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TCpVomSm; 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="TCpVomSm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 561F8C4CEDD; Wed, 26 Feb 2025 01:57:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535071; bh=cOkcEHwN/hL322zMw30DXpyd2YBs6y4UyA/dui3dVhc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=TCpVomSm5uXzfy9Q3mJtHirhEZMfpmxYLW6i5yI4Kt42Fv3L5JK56dVADdyEuHndk l31FS7mf28kdGtXnsHuVv6r7ioAVCTLXg6gbw3NKHpYVNotbXxrY5dT5Gn6gV42G9t vfxD/ciP34d1WOOQGI+zNncjanwAArUG7dv33nbg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47645: media: staging: media: zoran: calculate the right buffer number for zoran_reap_stat_com Date: Wed, 26 Feb 2025 02:53:56 +0100 Message-ID: <2025022648-CVE-2021-47645-ab28@gregkh> X-Mailer: git-send-email 2.48.1 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=2273; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cOkcEHwN/hL322zMw30DXpyd2YBs6y4UyA/dui3dVhc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SnQed0xT1YsLu3NQIUS8Zp1RR8bCF7U3JsgUdb9cc FQucJ5VRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExE04dhrvDuH/L+0zMfO8tt DPRIeTXt7+vkjwyzmC/0rLeOmcS9cYtVnv7tWfM+cMtVAAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: media: staging: media: zoran: calculate the right buffer number for zoran_reap_stat_com On the case tmp_dcim=1, the index of buffer is miscalculated. This generate a NULL pointer dereference later. So let's fix the calcul and add a check to prevent this to reappear. The Linux kernel CVE team has assigned CVE-2021-47645 to this issue. Affected and fixed versions =========================== Fixed in 5.10.110 with commit bafec1a6ba4b187a7fcdcfce0faebdc623d4ef8e Fixed in 5.15.33 with commit 7e76f3ed7ab2ae026c6ef9cc23096a7554af8c52 Fixed in 5.16.19 with commit 20db2ed1e2f9fcd417fa67853e5154f0c2537d6c Fixed in 5.17.2 with commit 20811bbe685ca3eddd34b0c750860427d7030910 Fixed in 5.18 with commit e3b86f4e558cea9eed71d894df2f19b10d60a207 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-2021-47645 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/zoran/zoran_device.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/bafec1a6ba4b187a7fcdcfce0faebdc623d4ef8e https://git.kernel.org/stable/c/7e76f3ed7ab2ae026c6ef9cc23096a7554af8c52 https://git.kernel.org/stable/c/20db2ed1e2f9fcd417fa67853e5154f0c2537d6c https://git.kernel.org/stable/c/20811bbe685ca3eddd34b0c750860427d7030910 https://git.kernel.org/stable/c/e3b86f4e558cea9eed71d894df2f19b10d60a207