CVE-2024-50287
media: v4l2-tpg: prevent the risk of a division by zero
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < e3c36d0bde309f690ed1f9cd5f7e63b3a513f94a; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < 0bfc6e38ee2250f0503d96f1a1de441c31d88715; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < 054931ca3cfcb8e8fa036e887d6f379942b02565; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < a749c15dccc58d9cbad9cd23bd8ab4b5fa96cf47; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < c63c30c9d9f2c8de34b16cd2b8400240533b914e; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < 2d0f01aa602fd15a805771bdf3f4d9a9b4df7f47; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < 0cdb42ba0b28f548c1a4e86bb8489dba0d78fc21; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < e6a3ea83fbe15d4818d01804e904cbb0e64e543b
- Anyone running Linux 3.18
Vulnerability facts
- Affected
- Linux >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < e3c36d0bde309f690ed1f9cd5f7e63b3a513f94a; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < 0bfc6e38ee2250f0503d96f1a1de441c31d88715; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < 054931ca3cfcb8e8fa036e887d6f379942b02565; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < a749c15dccc58d9cbad9cd23bd8ab4b5fa96cf47; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < c63c30c9d9f2c8de34b16cd2b8400240533b914e; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < 2d0f01aa602fd15a805771bdf3f4d9a9b4df7f47; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < 0cdb42ba0b28f548c1a4e86bb8489dba0d78fc21; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < e6a3ea83fbe15d4818d01804e904cbb0e64e543b; Linux 3.18
- Fixed in
- Linux 0bfc6e38ee2250f0503d96f1a1de441c31d88715, Linux 054931ca3cfcb8e8fa036e887d6f379942b02565, Linux 2d0f01aa602fd15a805771bdf3f4d9a9b4df7f47, Linux 0cdb42ba0b28f548c1a4e86bb8489dba0d78fc21
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.32% chance of exploitation in 30 days (percentile 17, 2026-11-26)
- CWE
- CWE-369
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < e3c36d0bde309f690ed1f9cd5f7e63b3a513f94a; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < 0bfc6e38ee2250f0503d96f1a1de441c31d88715; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < 054931ca3cfcb8e8fa036e887d6f379942b02565; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < a749c15dccc58d9cbad9cd23bd8ab4b5fa96cf47; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < c63c30c9d9f2c8de34b16cd2b8400240533b914e; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < 2d0f01aa602fd15a805771bdf3f4d9a9b4df7f47; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < 0cdb42ba0b28f548c1a4e86bb8489dba0d78fc21; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < e6a3ea83fbe15d4818d01804e904cbb0e64e543b | — | cvelist |
| Linux | 3.18 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-50287. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-50287.md Affected: Linux >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < e3c36d0bde309f690ed1f9cd5f7e63b3a513f94a; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < 0bfc6e38ee2250f0503d96f1a1de441c31d88715; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < 054931ca3cfcb8e8fa036e887d6f379942b02565; >= 63881df94d3ecbb0deafa0b… Fixed in: Linux 0bfc6e38ee2250f0503d96f1a1de441c31d88715, Linux 054931ca3cfcb8e8fa036e887d6f379942b02565, Linux 2d0f01aa602fd15a805771bdf3f4d9a9b4df7f47, Linux 0cdb42ba0b28f548c1a4e86bb8489dba0d78fc21 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/e3c36d0bde309f690ed1f9cd5f7e63b3a513f94a
- https://git.kernel.org/stable/c/0bfc6e38ee2250f0503d96f1a1de441c31d88715
- https://git.kernel.org/stable/c/054931ca3cfcb8e8fa036e887d6f379942b02565
- https://git.kernel.org/stable/c/a749c15dccc58d9cbad9cd23bd8ab4b5fa96cf47
- https://git.kernel.org/stable/c/c63c30c9d9f2c8de34b16cd2b8400240533b914e
- https://git.kernel.org/stable/c/2d0f01aa602fd15a805771bdf3f4d9a9b4df7f47
- https://git.kernel.org/stable/c/0cdb42ba0b28f548c1a4e86bb8489dba0d78fc21
- https://git.kernel.org/stable/c/e6a3ea83fbe15d4818d01804e904cbb0e64e543b
FAQ
Is CVE-2024-50287 being exploited?
There is no confirmed exploitation: CVE-2024-50287 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-50287?
Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-50287?
Linux >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < e3c36d0bde309f690ed1f9cd5f7e63b3a513f94a; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < 0bfc6e38ee2250f0503d96f1a1de441c31d88715; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < 054931ca3cfcb8e8fa036e887d6f379942b02565; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < a749c15dccc58d9cbad9cd23bd8ab4b5fa96cf47; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < c63c30c9d9f2c8de34b16cd2b8400240533b914e; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < 2d0f01aa602fd15a805771bdf3f4d9a9b4df7f47; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < 0cdb42ba0b28f548c1a4e86bb8489dba0d78fc21; >= 63881df94d3ecbb0deafa0b77da62ff2f32961c4, < e6a3ea83fbe15d4818d01804e904cbb0e64e543b; Linux 3.18.
Is there a fix for CVE-2024-50287?
Yes. Fixed in Linux 0bfc6e38ee2250f0503d96f1a1de441c31d88715, Linux 054931ca3cfcb8e8fa036e887d6f379942b02565, Linux 2d0f01aa602fd15a805771bdf3f4d9a9b4df7f47, Linux 0cdb42ba0b28f548c1a4e86bb8489dba0d78fc21. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2024-50287?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.