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 821F21F4E3D for ; Fri, 27 Dec 2024 14:24: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=1735309483; cv=none; b=XuiWxNeFIrKU1GlKGXtPP1l0imQdnJ2PU3IsCbMlGn3fFrlgOtNfXCwalZRpK6vHLbCs9wHUyplVZns+U9ttPsWBsPGSsSnPpXZtfi9MhPjjo2sXNXKTiM+u/7pYPf89ihaLx5hKhz5RU7HCfqSDSdSaoBJ8ouVP9HQq8jC8Lzk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735309483; c=relaxed/simple; bh=fTFmTSRjkA4YnnwzH2UePZ5EC7opnOZFB31D0O/neAs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OuOnO1EljK6z7+YtjeyGP/ideveYSy4fAwvedWJKQ68Z585uCgmop/NmUy5KXRefy4VHHlkDGjL181Yo90hVimCIyEh2XnTmTtXpw1WKkhhBfyEbjeaNaVIX/Rdi0YjIPpPvdRZRIRdN0LZyxXIWGgqZpGMQ9e3bDMC42SkifOI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MimOm0Ty; 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="MimOm0Ty" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4ACCC4CED0; Fri, 27 Dec 2024 14:24:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735309483; bh=fTFmTSRjkA4YnnwzH2UePZ5EC7opnOZFB31D0O/neAs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=MimOm0TyNysWYoWoMcRtOs5NHsvfsjSOcaOpe3zATIp+1aByXgfH8cH/TiqrWdnn/ qWGx/rx8F6b0/8GzB763KtIWJZmbalzu6ZuqI1FZo9pb7+49dGr/2w+bOY07RwZMJ5 pSP1bfuo7yyxd4j0YJME4Dulq3Vb4Bttpe2Lvlic= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56579: media: amphion: Set video drvdata before register video device Date: Fri, 27 Dec 2024 15:23:30 +0100 Message-ID: <2024122719-CVE-2024-56579-6134@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=2403; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fTFmTSRjkA4YnnwzH2UePZ5EC7opnOZFB31D0O/neAs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5O8KrQySEHoYu2Px05+T6sPeBelYR32auPRHvePR1R klVRBpXRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykQ5xhwaS/hekbps94u9he 7o/Ao8J67y4naYYFvZPjszSnze7RPva0wvnZwhip7y8+AwA= 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: amphion: 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-56579 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 3cd084519c6f91cbef9d604bcf26844fa81d4922 and fixed in 6.1.120 with commit cfe96c7c3382293179e291f66644d789e39e99f3 Issue introduced in 5.18 with commit 3cd084519c6f91cbef9d604bcf26844fa81d4922 and fixed in 6.6.64 with commit 988cc10ddbdee0369fe1f193d389da38ad760492 Issue introduced in 5.18 with commit 3cd084519c6f91cbef9d604bcf26844fa81d4922 and fixed in 6.12.4 with commit 182b9edc02c4cbb6fe6b97105c23c7047a3340d2 Issue introduced in 5.18 with commit 3cd084519c6f91cbef9d604bcf26844fa81d4922 and fixed in 6.13-rc1 with commit 8cbb1a7bd5973b57898b26eb804fe44af440bb63 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-56579 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/amphion/vpu_v4l2.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/cfe96c7c3382293179e291f66644d789e39e99f3 https://git.kernel.org/stable/c/988cc10ddbdee0369fe1f193d389da38ad760492 https://git.kernel.org/stable/c/182b9edc02c4cbb6fe6b97105c23c7047a3340d2 https://git.kernel.org/stable/c/8cbb1a7bd5973b57898b26eb804fe44af440bb63