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 ACB7E78C6C for ; Sat, 28 Dec 2024 09:47:43 +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=1735379263; cv=none; b=Ypp5pIwEo1DbycK0CkfNZ8AMWeF0xyz5wLERsL/XvqOG+7trZjGUnG1dwUjZfPdrdrXLQ2GjJMY7uNuUzcs/b3BzgmxwnnUb9tvHDtUmYJIDVCYbZTmFnxyUkWfDs7G1MftfhQB92Hk5zuVlCtigwmGh+RO3KL/4eKFH6i8Ji2g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735379263; c=relaxed/simple; bh=tYsgHQxTmeaxpntvotV2ppI6tVyJXnFcakmYBX0q8xw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YiG9sSYWMoKWqKd5qauOT9VKg//4TOCvkgaHClMNxTPsribidqH/WMoFeOADdlJxP3OyDChZK5yaA/UZ/+tmM0JoSoxG+7Nv8hj1qaoNUtI9D9OSfwbFBC7Upqiv0lj6Jo8GI+xqBD3MAZSlvhqaim9U2gD8JAIN3WM1DineqnQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NBQY154g; 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="NBQY154g" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7653C4CECD; Sat, 28 Dec 2024 09:47:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735379263; bh=tYsgHQxTmeaxpntvotV2ppI6tVyJXnFcakmYBX0q8xw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NBQY154gZEA4stsOerUJ7QzQxcxR2N88lJceIeV+RR/HDgKBmx4+5URhll6vneBIQ 7voHSX43Xq43bNznZhrUUBYsxixX4AJescDYC4iswRnQae3n47DqW6JxchXuJ2jKV6 QrF+eDFYbP86jqwDP/DFxqDatHwdUDI+YPW2FD/g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56705: media: atomisp: Add check for rgby_data memory allocation failure Date: Sat, 28 Dec 2024 10:45:57 +0100 Message-ID: <2024122837-CVE-2024-56705-049b@gregkh> X-Mailer: git-send-email 2.47.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=3230; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tYsgHQxTmeaxpntvotV2ppI6tVyJXnFcakmYBX0q8xw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn5Jw5ypy3rl2adI8Rnsd51SvP/ifqJR7ZU/CgzPb5Na 4HfGbZJHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR1yaGuYJx6UzCVScOPd3C y+vh1eH2ap31FYYF/SWBTHuq1Tr/225XbPZX/F07c/MHAA== 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: atomisp: Add check for rgby_data memory allocation failure In ia_css_3a_statistics_allocate(), there is no check on the allocation result of the rgby_data memory. If rgby_data is not successfully allocated, it may trigger the assert(host_stats->rgby_data) assertion in ia_css_s3a_hmem_decode(). Adding a check to fix this potential issue. The Linux kernel CVE team has assigned CVE-2024-56705 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit a49d25364dfb9f8a64037488a39ab1f56c5fa419 and fixed in 5.10.231 with commit 0c24b82bc4d12c6a58ceacbf2598cd4df63abf9a Issue introduced in 4.12 with commit a49d25364dfb9f8a64037488a39ab1f56c5fa419 and fixed in 5.15.174 with commit 4676e50444046b498555b849e6080a5c78cdda9b Issue introduced in 4.12 with commit a49d25364dfb9f8a64037488a39ab1f56c5fa419 and fixed in 6.1.120 with commit 02a97d9d7ff605fa4a1f908d1bd3ad8573234b61 Issue introduced in 4.12 with commit a49d25364dfb9f8a64037488a39ab1f56c5fa419 and fixed in 6.6.64 with commit 8066badaf7463194473fb4be19dbe50b11969aa0 Issue introduced in 4.12 with commit a49d25364dfb9f8a64037488a39ab1f56c5fa419 and fixed in 6.11.11 with commit 74aa783682c4d78c69d87898e40c78df1fec204e Issue introduced in 4.12 with commit a49d25364dfb9f8a64037488a39ab1f56c5fa419 and fixed in 6.12.2 with commit 0c25ab93f2878cab07d37ca5afd302283201e5af Issue introduced in 4.12 with commit a49d25364dfb9f8a64037488a39ab1f56c5fa419 and fixed in 6.13-rc1 with commit ed61c59139509f76d3592683c90dc3fdc6e23cd6 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-2024-56705 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/sh_css_params.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/0c24b82bc4d12c6a58ceacbf2598cd4df63abf9a https://git.kernel.org/stable/c/4676e50444046b498555b849e6080a5c78cdda9b https://git.kernel.org/stable/c/02a97d9d7ff605fa4a1f908d1bd3ad8573234b61 https://git.kernel.org/stable/c/8066badaf7463194473fb4be19dbe50b11969aa0 https://git.kernel.org/stable/c/74aa783682c4d78c69d87898e40c78df1fec204e https://git.kernel.org/stable/c/0c25ab93f2878cab07d37ca5afd302283201e5af https://git.kernel.org/stable/c/ed61c59139509f76d3592683c90dc3fdc6e23cd6