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 1AFC518952C for ; Fri, 27 Dec 2024 14:24:39 +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=1735309480; cv=none; b=kPb+tKCZIt2chXIU+O0VOdg2fT8glyKtw0jMFs9Fk+hbq7+1yu9UdBCDE6+xTjEOyCq7zaQ2EYxdGtG1YYxzTdH8j+uPCD07zE+gLwh3zFJillowbLT0gTX1KuFo59V4U3R3MO8bm/Nfpz5TugNlXGWlVLaA+sJv9g+mA/LIzag= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735309480; c=relaxed/simple; bh=jVrSux+MV+3/p3mkjlxBkxwDXS8mg19qrm1UuKCpZ48=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DM1ERp2AJIzx3f2w9qwvs+K479H7d5CsCnqoYdlPOow/mlmbTYNMwXmxdziA4KB2dSFlQEJ6iAQkgHLULgW05IvVsKFzkRhEiFzAAuaMhdOm2snMTKqYkBJQmzKEnE8SwUPodiAwOt3Q7qkwebKDShq7OFL6G6oU9SvtUI5Mz1U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Cv/CpxQD; 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="Cv/CpxQD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F89FC4CED0; Fri, 27 Dec 2024 14:24:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735309479; bh=jVrSux+MV+3/p3mkjlxBkxwDXS8mg19qrm1UuKCpZ48=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Cv/CpxQDS77+2KXxu4S/SSfmXyTSBe/vM/NCMcSdPYCQ2YspMtP8zxGMrGdDurlRr aljsu45seZAkBZZpiuW26/onDVNHo0GkiGrh69nWkCjpsqUJ0F00KRIxQEjrHMCZwj LiTlupBd17tEAY//p5pK/Ddc8Cvig8mu18HIK/ZU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56578: media: imx-jpeg: Set video drvdata before register video device Date: Fri, 27 Dec 2024 15:23:29 +0100 Message-ID: <2024122719-CVE-2024-56578-48e7@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=2639; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jVrSux+MV+3/p3mkjlxBkxwDXS8mg19qrm1UuKCpZ48=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5O8IdZk3ukLAPzlf0qRYTdF/XpNvOdY29Srpsw2nug 47c7SodsSwMgkwMsmKKLF+28RzdX3FI0cvQ9jTMHFYmkCEMXJwCMJF+HoZ5CjnWdd+Spy8UVtm6 KGW9VMLbC8cWMsyzrvi/5Z7BrKX3J9xnCC/zDJHjMjsDAA== 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: imx-jpeg: Set video drvdata before register video device The video drvdata should be set before the video device is registered, otherwise video_drvdata() may return NULL in the open() file ops, and led to oops. The Linux kernel CVE team has assigned CVE-2024-56578 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 2db16c6ed72ce644d5639b3ed15e5817442db4ba and fixed in 5.15.174 with commit f68bb1210fbea252552d97242757f69a219e942b Issue introduced in 5.13 with commit 2db16c6ed72ce644d5639b3ed15e5817442db4ba and fixed in 6.1.120 with commit b88556e82dc18cb708744d062770853a2d5095b2 Issue introduced in 5.13 with commit 2db16c6ed72ce644d5639b3ed15e5817442db4ba and fixed in 6.6.64 with commit 68efeff2f7fccdfedc55f92e92be32997127d16e Issue introduced in 5.13 with commit 2db16c6ed72ce644d5639b3ed15e5817442db4ba and fixed in 6.12.4 with commit 5ade59d28eade49194eb09765afdeb0ba717c39a Issue introduced in 5.13 with commit 2db16c6ed72ce644d5639b3ed15e5817442db4ba and fixed in 6.13-rc1 with commit d2b7ecc26bd5406d5ba927be1748aa99c568696c 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-56578 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/media/platform/nxp/imx-jpeg/mxc-jpeg.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/f68bb1210fbea252552d97242757f69a219e942b https://git.kernel.org/stable/c/b88556e82dc18cb708744d062770853a2d5095b2 https://git.kernel.org/stable/c/68efeff2f7fccdfedc55f92e92be32997127d16e https://git.kernel.org/stable/c/5ade59d28eade49194eb09765afdeb0ba717c39a https://git.kernel.org/stable/c/d2b7ecc26bd5406d5ba927be1748aa99c568696c