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 93CFE38B for ; Tue, 19 Nov 2024 01:33:38 +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=1731980018; cv=none; b=CCPrR9z9o7vpX6XanpbmXqZChGxiQtwUZxg267qDkxd+QmwXrG/nOGITJIZTJh7n7b1HD6XgGmLP6IczWCyiBPCuHuFRBJVUpewlI7q2T7zsYy2/0QJw4Ep1Tleab3HAEdIXQgVRpF4yWiZQBP4f67ofCGWqhomV5tipVUyC2Uk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731980018; c=relaxed/simple; bh=oM2eLHn5odPPrA4zqfmSycKgCw4NhtkO0uY8mZKtxQU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BQtglKimm8jvpthq8lwFrf18fzf2TVKjUnLUBktlE6vYKMLQPTx/geglyA6LY4g3d0Fuwg+ut5nKLjQlASSsVqjUUoFFm3yO2tRXOLMp3xj6i7h12u+nwsCuj5bPkODgiKCIXx6L40NAtr7w6A7fJQ3lymwhsgFCXcE0/WjTiXk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aL9+vOME; 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="aL9+vOME" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0CF4AC4CECC; Tue, 19 Nov 2024 01:33:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1731980018; bh=oM2eLHn5odPPrA4zqfmSycKgCw4NhtkO0uY8mZKtxQU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=aL9+vOMEmhbNV/zdQD+0lgio0e8QVNhHe75TT2901npDx+oTcTAEJuaL0qaJs1RCd wyfz9wlXP7eJX1b7EBT6Kr1WgvglH9bB5TILX5cZ1OHKlWjB3/pPn4CJaHf9lJp5bP RDN2t+sw4ko8PqzGUrbvMLB2DMpAL9UTbB1Wpyl8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50266: clk: qcom: videocc-sm8350: use HW_CTRL_TRIGGER for vcodec GDSCs Date: Tue, 19 Nov 2024 02:32:21 +0100 Message-ID: <2024111922-CVE-2024-50266-7fe4@gregkh> X-Mailer: git-send-email 2.47.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=2658; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oM2eLHn5odPPrA4zqfmSycKgCw4NhtkO0uY8mZKtxQU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOnWr5bvut13tP4fW945MaYTz+ee7fadkvBQ/rZhsmm01 5tQ67nzO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi3+wY5sdPsTHW3H/bUljZ 3XzFxtTD2lt/zWOYH/kqS1ap79N1n4zDZ6bvf8asnP83HwA= 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: clk: qcom: videocc-sm8350: use HW_CTRL_TRIGGER for vcodec GDSCs A recent change in the venus driver results in a stuck clock on the Lenovo ThinkPad X13s, for example, when streaming video in firefox: video_cc_mvs0_clk status stuck at 'off' WARNING: CPU: 6 PID: 2885 at drivers/clk/qcom/clk-branch.c:87 clk_branch_wait+0x144/0x15c ... Call trace: clk_branch_wait+0x144/0x15c clk_branch2_enable+0x30/0x40 clk_core_enable+0xd8/0x29c clk_enable+0x2c/0x4c vcodec_clks_enable.isra.0+0x94/0xd8 [venus_core] coreid_power_v4+0x464/0x628 [venus_core] vdec_start_streaming+0xc4/0x510 [venus_dec] vb2_start_streaming+0x6c/0x180 [videobuf2_common] vb2_core_streamon+0x120/0x1dc [videobuf2_common] vb2_streamon+0x1c/0x6c [videobuf2_v4l2] v4l2_m2m_ioctl_streamon+0x30/0x80 [v4l2_mem2mem] v4l_streamon+0x24/0x30 [videodev] using the out-of-tree sm8350/sc8280xp venus support. [1] Update also the sm8350/sc8280xp GDSC definitions so that the hw control mode can be changed at runtime as the venus driver now requires. The Linux kernel CVE team has assigned CVE-2024-50266 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit ec9a652e5149 and fixed in 6.11.8 with commit d055f6f2bdfb Issue introduced in 6.11 with commit ec9a652e5149 and fixed in 6.12 with commit f903663a8dcd 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-50266 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/clk/qcom/videocc-sm8350.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/d055f6f2bdfb8b9c9bc071f748c16bd3afb2db0f https://git.kernel.org/stable/c/f903663a8dcd6e1656e52856afbf706cc14cbe6d