# CVE-2026-23266: fbdev: rivafb: fix divide error in nv3\_arb()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-369
- **Published:** 2026-03-18T17:44:48.715Z
- **Modified:** 2026-06-17T10:21:13.010Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ec5a58f4fd581875593ea92a65485e1906a53c0f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 52916878db2b8e3769743a94484729f0844352df; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 526460a96c5443e2fc0fd231edd1f9c49d2de26b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 78daf5984d96edec3b920c72a93bd6821b8710b7; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9efa0dc46270a8723c158c64afbcf1dead72b28c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3e4cbd1d46c246dfa684c8e9d8c20ae0b960c50a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 73f0391e92d404da68f7484e57c106c5e673dc7e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 0209e21e3c372fa2da04c39214bec0b64e4eb5f4
- Anyone running Linux 2.6.12

## 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

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ec5a58f4fd581875593ea92a65485e1906a53c0f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 52916878db2b8e3769743a94484729f0844352df; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 526460a96c5443e2fc0fd231edd1f9c49d2de26b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 78daf5984d96edec3b920c72a93bd6821b8710b7; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9efa0dc46270a8723c158c64afbcf1dead72b28c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3e4cbd1d46c246dfa684c8e9d8c20ae0b960c50a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 73f0391e92d404da68f7484e57c106c5e673dc7e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 0209e21e3c372fa2da04c39214bec0b64e4eb5f4 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- Upgrade Linux to 0209e21e3c372fa2da04c39214bec0b64e4eb5f4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-23266. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23266.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < ec5a58f4fd581875593ea92a65485e1906a53c0f; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 52916878db2b8e3769743a94484729f0844352df; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 526460a96c5443e2fc0fd231edd1f9c49d2de26b; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 52916878db2b8e3769743a94484729f0844352df, Linux 526460a96c5443e2fc0fd231edd1f9c49d2de26b, Linux 78daf5984d96edec3b920c72a93bd6821b8710b7, Linux 9efa0dc46270a8723c158c64afbcf1dead72b28c, Linux 3e4cbd1d46c246dfa684c8e9d8c20ae0b960c50a, Linux 73f0391e92d404da68f7484e57c106c5e673dc7e, Linux 0209e…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-23266 being exploited?

There is no confirmed exploitation: CVE-2026-23266 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.19% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-23266?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-23266?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ec5a58f4fd581875593ea92a65485e1906a53c0f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 52916878db2b8e3769743a94484729f0844352df; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 526460a96c5443e2fc0fd231edd1f9c49d2de26b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 78daf5984d96edec3b920c72a93bd6821b8710b7; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9efa0dc46270a8723c158c64afbcf1dead72b28c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3e4cbd1d46c246dfa684c8e9d8c20ae0b960c50a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 73f0391e92d404da68f7484e57c106c5e673dc7e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 0209e21e3c372fa2da04c39214bec0b64e4eb5f4; Linux 2.6.12.

### Is there a fix for CVE-2026-23266?

Yes. Fixed in Linux 52916878db2b8e3769743a94484729f0844352df, Linux 526460a96c5443e2fc0fd231edd1f9c49d2de26b, Linux 78daf5984d96edec3b920c72a93bd6821b8710b7, Linux 9efa0dc46270a8723c158c64afbcf1dead72b28c, Linux 3e4cbd1d46c246dfa684c8e9d8c20ae0b960c50a, Linux 73f0391e92d404da68f7484e57c106c5e673dc7e, Linux 0209e21e3c372fa2da04c39214bec0b64e4eb5f4. Upgrade Linux to 0209e21e3c372fa2da04c39214bec0b64e4eb5f4 or later.

### How do I check if I'm affected by CVE-2026-23266?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/ec5a58f4fd581875593ea92a65485e1906a53c0f>
- patch: <https://git.kernel.org/stable/c/52916878db2b8e3769743a94484729f0844352df>
- patch: <https://git.kernel.org/stable/c/526460a96c5443e2fc0fd231edd1f9c49d2de26b>
- patch: <https://git.kernel.org/stable/c/78daf5984d96edec3b920c72a93bd6821b8710b7>
- patch: <https://git.kernel.org/stable/c/9efa0dc46270a8723c158c64afbcf1dead72b28c>
- patch: <https://git.kernel.org/stable/c/3e4cbd1d46c246dfa684c8e9d8c20ae0b960c50a>
- patch: <https://git.kernel.org/stable/c/73f0391e92d404da68f7484e57c106c5e673dc7e>
- patch: <https://git.kernel.org/stable/c/0209e21e3c372fa2da04c39214bec0b64e4eb5f4>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-23266>

HTML: <https://flawdb.com/CVE-2026-23266> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-23266>
