CVE-2024-50287 Details
Description
In the Linux kernel, the following vulnerability has been resolved: media: v4l2-tpg: prevent the risk of a division by zero As reported by Coverity, the logic at tpg_precalculate_line() blindly rescales the buffer even when scaled_witdh is equal to zero. If this ever happens, this will cause a division by zero. Instead, add a WARN_ON_ONCE() to trigger such cases and return without doing any precalculation.
A division by zero vulnerability has been identified in the Linux kernel's Video4Linux2 (V4L2) Test Pattern Generator (TPG) module. This issue arises because the function 'tpg_precalculate_line()' improperly handles buffer rescaling when the 'scaled_width' is zero, leading to a potential crash. The vulnerability affects several versions of the Linux kernel, including the latest stable release. The issue has been addressed by adding a warning to catch such cases and prevent the erroneous calculation.
Users can upgrade to the latest version of the Linux kernel, where this vulnerability has been fixed. For Debian users, the updated kernel packages can be installed by first selecting the appropriate metapackage for the system architecture.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-369 | Divide By Zero | [email protected] |
| CWE-369 | Divide By Zero | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 3.18, < 4.19.324 >= 4.20, < 5.4.286 >= 5.5, < 5.10.230 >= 5.11, < 5.15.172 >= 5.16, < 6.1.117 >= 6.2, < 6.6.61 >= 6.7, < 6.11.8 6.12 rc1 6.12 rc2 6.12 rc3 6.12 rc4 6.12 rc5 6.12 rc6 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 3, 2025 | CVE Modified | CVE |
| Nov 3, 2025 | CVE Modified | CVE |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | Initial Analysis | [email protected] |
| Nov 19, 2024 | New CVE Received | kernel.org |