CVE-2024-50287: Linux kernel · media: v4l2-tpg: prevent the risk of a division by zero
Source GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 29 Oct 2026, 22:59 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 19 Nov 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
AI-suggested
A fix has been implemented in the Linux kernel source code by adding a WARN_ON_ONCE() check to prevent division by zero in the affected function. Users should update to the fixed kernel version once available from their distribution or vendor. No additional mitigation steps are indicated by the vendor advisory.
Description
CVE-2024-50287 is a medium severity vulnerability in the Linux kernel's media subsystem, specifically in the v4l2-tpg (test pattern generator) component. The issue arises from a division by zero risk due to the function tpg_precalculate_line() performing a rescaling operation even when the scaled_width parameter is zero. This flaw was identified by Coverity and fixed by adding a WARN_ON_ONCE() check to prevent the division and abort the precalculation when scaled_width is zero.
References
- nvd.nist.gov/vuln/detail/CVE-2024-50287 (opens in a new tab)
- git.kernel.org/stable/c/054931ca3cfcb8e8fa036e887d6f379942b02565 (opens in a new tab)
- git.kernel.org/stable/c/0bfc6e38ee2250f0503d96f1a1de441c31d88715 (opens in a new tab)
- git.kernel.org/stable/c/0cdb42ba0b28f548c1a4e86bb8489dba0d78fc21 (opens in a new tab)
- git.kernel.org/stable/c/2d0f01aa602fd15a805771bdf3f4d9a9b4df7f47 (opens in a new tab)
- git.kernel.org/stable/c/a749c15dccc58d9cbad9cd23bd8ab4b5fa96cf47 (opens in a new tab)
- git.kernel.org/stable/c/c63c30c9d9f2c8de34b16cd2b8400240533b914e (opens in a new tab)
- git.kernel.org/stable/c/e3c36d0bde309f690ed1f9cd5f7e63b3a513f94a (opens in a new tab)
- git.kernel.org/stable/c/e6a3ea83fbe15d4818d01804e904cbb0e64e543b (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/01/msg00001.html (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/03/msg00002.html (opens in a new tab)