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 A89D22F83A2 for ; Wed, 18 Mar 2026 17:44:57 +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=1773855897; cv=none; b=hr6ahW7QTKkdsdVrsHtAUrtcR2wGmBY+6ysZwiw5Vwl/kJtIoucLCfgmOojP6kvVsal05Ih8YKhLdVcO+zeyOORjphdjb5dhMo+/kS4xQOxpwjr9fJvmw/tDDpkEF6omW6/V4jcMd1nulElKqTkgLU3RWw2lDEPsUkzRYZ/HiAo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773855897; c=relaxed/simple; bh=ojNyA5UNAca0nW02FqMfnCzay/vR5YGY6u5ObSGfYs8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KhW88TWJoJ50aSBWrzMS/UAWDZiFnEmoJ4a8XXy4IDUPyTldAtIu3IA309KN18eGUuTu8NJ7A23110tXQlRUaM/pFxVeS1QTOh4eJWHzJZIW9HgdJFU3bHsHGZ9lhLDOTvg+Vi8ofMHC1xMz8u9FB7oGnxQVNXRFOM2MkinBdy8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zj1cCv80; 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="zj1cCv80" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 022F0C19421; Wed, 18 Mar 2026 17:44:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1773855897; bh=ojNyA5UNAca0nW02FqMfnCzay/vR5YGY6u5ObSGfYs8=; h=From:To:Cc:Subject:Date:Reply-To:From; b=zj1cCv80ITmTzR7FrYdBxWNyu7grGiDezA6stiSJdALH6NEPhXeOKvaJK35fIDn1K elwsZ3WzE76uFlTdZC/MJ9VT8OyOH0WYEI8/mI4TlDQIfD0FHX2fP9EZROmRAkomij 065IILsg+o5GPtRO2+EnaxpUwylSxZ2MoWWu8ViM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23266: fbdev: rivafb: fix divide error in nv3_arb() Date: Wed, 18 Mar 2026 18:44:54 +0100 Message-ID: <2026031853-CVE-2026-23266-b57b@gregkh> X-Mailer: git-send-email 2.53.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=5055; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SBKVm/Gei3DCxItSttdBOVv+tp5OPHCs19cXAon3Kp8=; b=kA0DAAIRMUfUDdst+ykByyZiAGm65JXI4YW0NTgCr2xNMu5BVkRA2OuerLKmnDMEgkunSlbdo YhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmm65JUACgkQMUfUDdst+ynV6wCgj3eJ TsYxx3GxdMkI7lqbmotjvAgAoMtokhtK9+XmY5juAr+zl5Cj+dqu 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: fbdev: rivafb: fix divide error in nv3_arb() A userspace program can trigger the RIVA NV3 arbitration code by calling the FBIOPUT_VSCREENINFO ioctl on /dev/fb*. When doing so, the driver recomputes FIFO arbitration parameters in nv3_arb(), using state->mclk_khz (derived from the PRAMDAC MCLK PLL) as a divisor without validating it first. In a normal setup, state->mclk_khz is provided by the real hardware and is non-zero. However, an attacker can construct a malicious or misconfigured device (e.g. a crafted/emulated PCI device) that exposes a bogus PLL configuration, causing state->mclk_khz to become zero. Once nv3_get_param() calls nv3_arb(), the division by state->mclk_khz in the gns calculation causes a divide error and crashes the kernel. Fix this by checking whether state->mclk_khz is zero and bailing out before doing the division. The following log reveals it: rivafb: setting virtual Y resolution to 2184 divide error: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 PID: 2187 Comm: syz-executor.0 Not tainted 5.18.0-rc1+ #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.12.0-59-gc9ba5276e321-prebuilt.qemu.org 04/01/2014 RIP: 0010:nv3_arb drivers/video/fbdev/riva/riva_hw.c:439 [inline] RIP: 0010:nv3_get_param+0x3ab/0x13b0 drivers/video/fbdev/riva/riva_hw.c:546 Call Trace: nv3CalcArbitration.constprop.0+0x255/0x460 drivers/video/fbdev/riva/riva_hw.c:603 nv3UpdateArbitrationSettings drivers/video/fbdev/riva/riva_hw.c:637 [inline] CalcStateExt+0x447/0x1b90 drivers/video/fbdev/riva/riva_hw.c:1246 riva_load_video_mode+0x8a9/0xea0 drivers/video/fbdev/riva/fbdev.c:779 rivafb_set_par+0xc0/0x5f0 drivers/video/fbdev/riva/fbdev.c:1196 fb_set_var+0x604/0xeb0 drivers/video/fbdev/core/fbmem.c:1033 do_fb_ioctl+0x234/0x670 drivers/video/fbdev/core/fbmem.c:1109 fb_ioctl+0xdd/0x130 drivers/video/fbdev/core/fbmem.c:1188 __x64_sys_ioctl+0x122/0x190 fs/ioctl.c:856 The Linux kernel CVE team has assigned CVE-2026-23266 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.10.251 with commit ec5a58f4fd581875593ea92a65485e1906a53c0f Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.15.201 with commit 52916878db2b8e3769743a94484729f0844352df Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.164 with commit 526460a96c5443e2fc0fd231edd1f9c49d2de26b Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.127 with commit 78daf5984d96edec3b920c72a93bd6821b8710b7 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.74 with commit 9efa0dc46270a8723c158c64afbcf1dead72b28c Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.13 with commit 3e4cbd1d46c246dfa684c8e9d8c20ae0b960c50a Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.19.3 with commit 73f0391e92d404da68f7484e57c106c5e673dc7e Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.0-rc1 with commit 0209e21e3c372fa2da04c39214bec0b64e4eb5f4 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-2026-23266 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/video/fbdev/riva/riva_hw.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/ec5a58f4fd581875593ea92a65485e1906a53c0f https://git.kernel.org/stable/c/52916878db2b8e3769743a94484729f0844352df https://git.kernel.org/stable/c/526460a96c5443e2fc0fd231edd1f9c49d2de26b https://git.kernel.org/stable/c/78daf5984d96edec3b920c72a93bd6821b8710b7 https://git.kernel.org/stable/c/9efa0dc46270a8723c158c64afbcf1dead72b28c https://git.kernel.org/stable/c/3e4cbd1d46c246dfa684c8e9d8c20ae0b960c50a https://git.kernel.org/stable/c/73f0391e92d404da68f7484e57c106c5e673dc7e https://git.kernel.org/stable/c/0209e21e3c372fa2da04c39214bec0b64e4eb5f4