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 9F955BA3D for ; Tue, 9 Dec 2025 00:04: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=1765238678; cv=none; b=jB0T5GuujnBJUOZCq67YK1bLf9ye2fjTSRe3K1dZHBUjmKJOoUT4ASKzUHMhSMvoKNcPOAAz3xv4fvPDF8j67SpRdr+US89JQXTRcUppMSesS0yNhmi+Og+gBKJHAPCb85AlAtna7sT4IBfJnaxJ+YI65RbbggAHajh8hqahFjI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765238678; c=relaxed/simple; bh=xe+0tYB/KTXuR5Zg/h7h116LfJp9MZoclEQxtilWO5M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LIeP+nnEwVmyz3iZVDiUvq1y0ow/evAE3DZ56GRY0/jBFTQN8q3NJbBQxtV488wiIJ9pCSWk7/04rTz2BjLAuB7gQBRwkS7UiXBzn1XNSrhg2geQN/bHZdKGgXaLs8vXw0mTOxzEJHVMCq+YtDd27Jap/iMXqy3p1j8VXV9pqcQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qezRh6+A; 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="qezRh6+A" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 371CFC4CEF1; Tue, 9 Dec 2025 00:04:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765238678; bh=xe+0tYB/KTXuR5Zg/h7h116LfJp9MZoclEQxtilWO5M=; h=From:To:Cc:Subject:Date:Reply-To:From; b=qezRh6+AkTstr86xZsuEnRTEDy4gcIUhBD2JdM7iljDcL5HWC8oTEv8sKkdhEMQ2n j6mJhwccTBVxGqeq2gxLRmrIrpvSTjmp52rWR9SvVUS1qaG8xij2A8G8UNGZ3VHH4W Oh4WWK+H4XpOPo+ANnVStUtksQA+5CiGUGldHLHQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53812: media: mediatek: vcodec: fix decoder disable pm crash Date: Tue, 9 Dec 2025 09:02:33 +0900 Message-ID: <2025120944-CVE-2023-53812-a186@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3830; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OCr3+mDllEGXS6ZepsshPnS5YXBPtz1/nZiOO9ngevg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnmaS9yniu4TkpfkZ50Ly5QpfXkBEWr1i9np2ctWfoga d09Nj25jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIIivDPJ2OFRHlvnLVdgu8 /GUOvczjdS+TYliwqczZZuWVirWv+/2S9k5dtrdKb34uAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: media: mediatek: vcodec: fix decoder disable pm crash Can't call pm_runtime_disable when the architecture support sub device for 'dev->pm.dev' is NUll, or will get below crash log. [ 10.771551] pc : _raw_spin_lock_irq+0x4c/0xa0 [ 10.771556] lr : __pm_runtime_disable+0x30/0x130 [ 10.771558] sp : ffffffc01e4cb800 [ 10.771559] x29: ffffffc01e4cb800 x28: ffffffdf082108a8 [ 10.771563] x27: ffffffc01e4cbd70 x26: ffffff8605df55f0 [ 10.771567] x25: 0000000000000002 x24: 0000000000000002 [ 10.771570] x23: ffffff85c0dc9c00 x22: 0000000000000001 [ 10.771573] x21: 0000000000000001 x20: 0000000000000000 [ 10.771577] x19: 00000000000000f4 x18: ffffffdf2e9fbe18 [ 10.771580] x17: 0000000000000000 x16: ffffffdf2df13c74 [ 10.771583] x15: 00000000000002ea x14: 0000000000000058 [ 10.771587] x13: ffffffdf2de1b62c x12: ffffffdf2e9e30e4 [ 10.771590] x11: 0000000000000000 x10: 0000000000000001 [ 10.771593] x9 : 0000000000000000 x8 : 00000000000000f4 [ 10.771596] x7 : 6bff6264632c6264 x6 : 0000000000008000 [ 10.771600] x5 : 0080000000000000 x4 : 0000000000000001 [ 10.771603] x3 : 0000000000000008 x2 : 0000000000000001 [ 10.771608] x1 : 0000000000000000 x0 : 00000000000000f4 [ 10.771613] Call trace: [ 10.771617] _raw_spin_lock_irq+0x4c/0xa0 [ 10.771620] __pm_runtime_disable+0x30/0x130 [ 10.771657] mtk_vcodec_probe+0x69c/0x728 [mtk_vcodec_dec 800cc929d6631f79f9b273254c8db94d0d3500dc] [ 10.771662] platform_drv_probe+0x9c/0xbc [ 10.771665] really_probe+0x13c/0x3a0 [ 10.771668] driver_probe_device+0x84/0xc0 [ 10.771671] device_driver_attach+0x54/0x78 The Linux kernel CVE team has assigned CVE-2023-53812 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit ba31a5b39400a7b500b3f022a351218b179038dc and fixed in 6.1.28 with commit c692a44bc5146eb487f40798a1ea8dd57fd2607d Issue introduced in 5.18 with commit ba31a5b39400a7b500b3f022a351218b179038dc and fixed in 6.2.15 with commit 03e9773388a27242e6139f3d5b5fd00112adb5c3 Issue introduced in 5.18 with commit ba31a5b39400a7b500b3f022a351218b179038dc and fixed in 6.3.2 with commit 34fe290090ecfcf405cad9d0e0ddc8b8246ffaa2 Issue introduced in 5.18 with commit ba31a5b39400a7b500b3f022a351218b179038dc and fixed in 6.4 with commit 9d2f13fb47dcab6d094f34ecfd6a879a409722b3 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-2023-53812 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/mediatek/vcodec/mtk_vcodec_dec_drv.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/c692a44bc5146eb487f40798a1ea8dd57fd2607d https://git.kernel.org/stable/c/03e9773388a27242e6139f3d5b5fd00112adb5c3 https://git.kernel.org/stable/c/34fe290090ecfcf405cad9d0e0ddc8b8246ffaa2 https://git.kernel.org/stable/c/9d2f13fb47dcab6d094f34ecfd6a879a409722b3