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 D076437A3D1 for ; Tue, 16 Dec 2025 13:44:19 +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=1765892659; cv=none; b=LHmpkA2UmD5Cqf7SbCfDlsNZxENg8S6C/sx4K1eMnD/Ztfgi18R1VYzXdAM/CTnjiP7X5/7moCNEmyKzi2vY5ZQY7UHCZe3/FnaeRRvcTcys2pONX8rfBLmbGEuLKtAS3ur2wuSpRgYkczkXVrBurVfFN8Rssi1CO0qs5Njse9w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765892659; c=relaxed/simple; bh=5LljnopFsltizvoZEJsLB1JJ6w3AQtyZQEfiWf+09cc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ODybhuVkpCqTZQQ9Oc+WXdob+BVPBybJjtTD5k+UYUTNBgdytzS+a+13YD/cg3tUYzCs8+TJwQMXwjRm9XS6BPJfQW/Vk0cs07G45qJxidYtL1nD+DZT6fO6RvdZ+k9CHsllf1dxH8XkEZdtDQLiG6NqER9VfrSfWVMjR2tuT0E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QSQCs6as; 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="QSQCs6as" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F603C4CEF1; Tue, 16 Dec 2025 13:44:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765892659; bh=5LljnopFsltizvoZEJsLB1JJ6w3AQtyZQEfiWf+09cc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=QSQCs6ask0KRGr5rTrBf05mekr/CqbVJET4zh2rDklXuvDQu7g0Q+Sw545mEJ+VCT PGebpj6L9RjQDzkCcJm0q2ivrB6LqZNRUL1ozBNw7bT6q0028mdOCDlhHLnajM+gFk +1wvvAC6sW/F7fZwkRNWEIc3Okg5EsU9cQhcVK1M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68184: drm/mediatek: Disable AFBC support on Mediatek DRM driver Date: Tue, 16 Dec 2025 14:43:45 +0100 Message-ID: <2025121632-CVE-2025-68184-602a@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=4219; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VUHvhyP9q/BR9JfoPYKDVL51Mm16ZmJ7GWCzEsW1QPw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOSawTdrfn8XHffGYxNfPdEWlZ5Q9SLrfy2nRvz7+oL PLrfeH8jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIAgvD/ITpCq+vLXm0wTbb 6rUk33vT/of7Axjm2SiUcOc/+tGSZXNp87qrMhu/75ovAgA= 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: drm/mediatek: Disable AFBC support on Mediatek DRM driver Commit c410fa9b07c3 ("drm/mediatek: Add AFBC support to Mediatek DRM driver") added AFBC support to Mediatek DRM and enabled the 32x8/split/sparse modifier. However, this is currently broken on Mediatek MT8188 (Genio 700 EVK platform); tested using upstream Kernel and Mesa (v25.2.1), AFBC is used by default since Mesa v25.0. Kernel trace reports vblank timeouts constantly, and the render is garbled: ``` [CRTC:62:crtc-0] vblank wait timed out WARNING: CPU: 7 PID: 70 at drivers/gpu/drm/drm_atomic_helper.c:1835 drm_atomic_helper_wait_for_vblanks.part.0+0x24c/0x27c [...] Hardware name: MediaTek Genio-700 EVK (DT) Workqueue: events_unbound commit_work pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : drm_atomic_helper_wait_for_vblanks.part.0+0x24c/0x27c lr : drm_atomic_helper_wait_for_vblanks.part.0+0x24c/0x27c sp : ffff80008337bca0 x29: ffff80008337bcd0 x28: 0000000000000061 x27: 0000000000000000 x26: 0000000000000001 x25: 0000000000000000 x24: ffff0000c9dcc000 x23: 0000000000000001 x22: 0000000000000000 x21: ffff0000c66f2f80 x20: ffff0000c0d7d880 x19: 0000000000000000 x18: 000000000000000a x17: 000000040044ffff x16: 005000f2b5503510 x15: 0000000000000000 x14: 0000000000000000 x13: 74756f2064656d69 x12: 742074696177206b x11: 0000000000000058 x10: 0000000000000018 x9 : ffff800082396a70 x8 : 0000000000057fa8 x7 : 0000000000000cce x6 : ffff8000823eea70 x5 : ffff0001fef5f408 x4 : ffff80017ccee000 x3 : ffff0000c12cb480 x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff0000c12cb480 Call trace: drm_atomic_helper_wait_for_vblanks.part.0+0x24c/0x27c (P) drm_atomic_helper_commit_tail_rpm+0x64/0x80 commit_tail+0xa4/0x1a4 commit_work+0x14/0x20 process_one_work+0x150/0x290 worker_thread+0x2d0/0x3ec kthread+0x12c/0x210 ret_from_fork+0x10/0x20 ---[ end trace 0000000000000000 ]--- ``` Until this gets fixed upstream, disable AFBC support on this platform, as it's currently broken with upstream Mesa. The Linux kernel CVE team has assigned CVE-2025-68184 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit c410fa9b07c32cc69968ec83a148366d16c76dc4 and fixed in 6.6.117 with commit df1ad5de2197ea1b527d13ae7b699e9ee7d724d4 Issue introduced in 6.2 with commit c410fa9b07c32cc69968ec83a148366d16c76dc4 and fixed in 6.12.58 with commit 0eaa0a3dfe218c4cf1a0782ccbbc9e3931718f17 Issue introduced in 6.2 with commit c410fa9b07c32cc69968ec83a148366d16c76dc4 and fixed in 6.17.8 with commit 72223700b620885d556a4c52a63f5294316176c6 Issue introduced in 6.2 with commit c410fa9b07c32cc69968ec83a148366d16c76dc4 and fixed in 6.18 with commit 9882a40640036d5bbc590426a78981526d4f2345 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-2025-68184 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/gpu/drm/mediatek/mtk_plane.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/df1ad5de2197ea1b527d13ae7b699e9ee7d724d4 https://git.kernel.org/stable/c/0eaa0a3dfe218c4cf1a0782ccbbc9e3931718f17 https://git.kernel.org/stable/c/72223700b620885d556a4c52a63f5294316176c6 https://git.kernel.org/stable/c/9882a40640036d5bbc590426a78981526d4f2345