# CVE-2021-47641: video: fbdev: cirrusfb: check pixclock to avoid divide by zero

> 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, CNA) `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.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-369
- **Published:** 2025-02-26T01:54:12.680Z
- **Modified:** 2026-06-17T04:18:13.427Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c656d04247a2654ede5cead2ecbf83431dad5261; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1d3fb46439ad4e8f0c5739eb33d1875ac9e0f135; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 40b13e3d85744210db13457785646634e2d056bd; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 53a2088a396cfa1da92690a1da289634cd73bf0d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8c7e2141fb89c620ab4e41512e262fbf25b8260d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6fe23ff94e7840097202e85c148688940b37c9b1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 45800c42ef000f417270bcfc08630e42486fca99; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e498b504f8c81b07efab9febf8503448de4dc9cf; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 5c6f402bdcf9e7239c6bc7087eda71ac99b31379
- Anyone running Linux 2.6.12

## Description

In the Linux kernel, the following vulnerability has been resolved:

video: fbdev: cirrusfb: check pixclock to avoid divide by zero

Do a sanity check on pixclock value to avoid divide by zero.

If the pixclock value is zero, the cirrusfb driver will round up
pixclock to get the derived frequency as close to maxclock as
possible.

Syzkaller reported a divide error in cirrusfb\_check\_pixclock.

divide error: 0000 \[\#1\] SMP KASAN PTI
CPU: 0 PID: 14938 Comm: cirrusfb\_test Not tainted 5.15.0-rc6 \#1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.11.0-2
RIP: 0010:cirrusfb\_check\_var+0x6f1/0x1260

Call Trace:
 fb\_set\_var+0x398/0xf90
 do\_fb\_ioctl+0x4b8/0x6f0
 fb\_ioctl+0xeb/0x130
 \_\_x64\_sys\_ioctl+0x19d/0x220
 do\_syscall\_64+0x3a/0x80
 entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c656d04247a2654ede5cead2ecbf83431dad5261; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1d3fb46439ad4e8f0c5739eb33d1875ac9e0f135; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 40b13e3d85744210db13457785646634e2d056bd; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 53a2088a396cfa1da92690a1da289634cd73bf0d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8c7e2141fb89c620ab4e41512e262fbf25b8260d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6fe23ff94e7840097202e85c148688940b37c9b1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 45800c42ef000f417270bcfc08630e42486fca99; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e498b504f8c81b07efab9febf8503448de4dc9cf; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 5c6f402bdcf9e7239c6bc7087eda71ac99b31379 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- Upgrade Linux to 5c6f402bdcf9e7239c6bc7087eda71ac99b31379 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2021-47641.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c656d04247a2654ede5cead2ecbf83431dad5261; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 1d3fb46439ad4e8f0c5739eb33d1875ac9e0f135; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 40b13e3d85744210db13457785646634e2d056bd; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 1d3fb46439ad4e8f0c5739eb33d1875ac9e0f135, Linux 40b13e3d85744210db13457785646634e2d056bd, Linux 53a2088a396cfa1da92690a1da289634cd73bf0d, Linux 8c7e2141fb89c620ab4e41512e262fbf25b8260d, Linux 6fe23ff94e7840097202e85c148688940b37c9b1, Linux 45800c42ef000f417270bcfc08630e42486fca99, Linux 5c6f4…

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-2021-47641 being exploited?

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

### How serious is CVE-2021-47641?

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

### Which versions are affected by CVE-2021-47641?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c656d04247a2654ede5cead2ecbf83431dad5261; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1d3fb46439ad4e8f0c5739eb33d1875ac9e0f135; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 40b13e3d85744210db13457785646634e2d056bd; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 53a2088a396cfa1da92690a1da289634cd73bf0d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8c7e2141fb89c620ab4e41512e262fbf25b8260d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6fe23ff94e7840097202e85c148688940b37c9b1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 45800c42ef000f417270bcfc08630e42486fca99; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e498b504f8c81b07efab9febf8503448de4dc9cf; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 5c6f402bdcf9e7239c6bc7087eda71ac99b31379; Linux 2.6.12.

### Is there a fix for CVE-2021-47641?

Yes. Fixed in Linux 1d3fb46439ad4e8f0c5739eb33d1875ac9e0f135, Linux 40b13e3d85744210db13457785646634e2d056bd, Linux 53a2088a396cfa1da92690a1da289634cd73bf0d, Linux 8c7e2141fb89c620ab4e41512e262fbf25b8260d, Linux 6fe23ff94e7840097202e85c148688940b37c9b1, Linux 45800c42ef000f417270bcfc08630e42486fca99, Linux 5c6f402bdcf9e7239c6bc7087eda71ac99b31379. Upgrade Linux to 5c6f402bdcf9e7239c6bc7087eda71ac99b31379 or later.

### How do I check if I'm affected by CVE-2021-47641?

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/c656d04247a2654ede5cead2ecbf83431dad5261>
- patch: <https://git.kernel.org/stable/c/1d3fb46439ad4e8f0c5739eb33d1875ac9e0f135>
- patch: <https://git.kernel.org/stable/c/40b13e3d85744210db13457785646634e2d056bd>
- patch: <https://git.kernel.org/stable/c/53a2088a396cfa1da92690a1da289634cd73bf0d>
- patch: <https://git.kernel.org/stable/c/8c7e2141fb89c620ab4e41512e262fbf25b8260d>
- patch: <https://git.kernel.org/stable/c/6fe23ff94e7840097202e85c148688940b37c9b1>
- patch: <https://git.kernel.org/stable/c/45800c42ef000f417270bcfc08630e42486fca99>
- patch: <https://git.kernel.org/stable/c/e498b504f8c81b07efab9febf8503448de4dc9cf>
- patch: <https://git.kernel.org/stable/c/5c6f402bdcf9e7239c6bc7087eda71ac99b31379>

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

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