CVE-2024-50287
media: v4l2-tpg: prevent the risk of a division by zero
Reported by linux · Published November 19, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Linux | Linux | e6a3ea83fbe15d4818d01804e904cbb0e64e543b, c63c30c9d9f2c8de34b16cd2b8400240533b914e, 2d0f01aa602fd15a805771bdf3f4d9a9b4df7f47, 0cdb42ba0b28f548c1a4e86bb8489dba0d78fc21 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 63881df94d3ecbb0deafa0b77da62ff2f32961c4, 63881df94d3ecbb0deafa0b77da62ff2f32961c4, 63881df94d3ecbb0deafa0b77da62ff2f32961c4 |
| Linux | Linux | 3.18, 0, 4.19.324 |
| Linux | Linux | 63881df94d3ecbb0deafa0b77da62ff2f32961c4, 5.4.286, 5.10.230 |
| linux | linux_kernel | 3.18, 3.18, 3.18 |
Timeline
- Nov 18, 2024 CVE Published
- Nov 19, 2024 EPSS Score (30 in total, the first dated here)
- Nov 19, 2024 Coalition ESS Score (11 in total, the first dated here)
- Nov 4, 2025 CVE Updated
- Jan 2, 2026 Security Advisory (218 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (171 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-50287
vulnetix vdb fixes CVE-2024-50287
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-50287/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart