CVE-2024-50287

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-50287
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-50287.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-50287
Downstream
Related
Published
2024-11-19T02:16:30Z
Modified
2025-10-01T21:16:17Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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 tpgprecalculateline() 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 WARNONONCE() to trigger such cases and return without doing any precalculation.

References

Affected packages