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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
63881df94d3ecbb0deafa0b77da62ff2f32961c4 to < e3c36d0bde309f690ed1f9cd5f7e63b3a513f94aaffected63881df94d3ecbb0deafa0b77da62ff2f32961c4 to < 0bfc6e38ee2250f0503d96f1a1de441c31d88715affected63881df94d3ecbb0deafa0b77da62ff2f32961c4 to < 054931ca3cfcb8e8fa036e887d6f379942b02565affected63881df94d3ecbb0deafa0b77da62ff2f32961c4 to < a749c15dccc58d9cbad9cd23bd8ab4b5fa96cf47affected63881df94d3ecbb0deafa0b77da62ff2f32961c4 to < c63c30c9d9f2c8de34b16cd2b8400240533b914eaffected63881df94d3ecbb0deafa0b77da62ff2f32961c4 to < 2d0f01aa602fd15a805771bdf3f4d9a9b4df7f47affected63881df94d3ecbb0deafa0b77da62ff2f32961c4 to < 0cdb42ba0b28f548c1a4e86bb8489dba0d78fc21affected63881df94d3ecbb0deafa0b77da62ff2f32961c4 to < e6a3ea83fbe15d4818d01804e904cbb0e64e543baffected
Linux Linux
Default version status: affected
3.18affected0 to < 3.18unaffected4.19.324 to ≤ 4.19.*unaffected5.4.286 to ≤ 5.4.*unaffected5.10.230 to ≤ 5.10.*unaffected5.15.172 to ≤ 5.15.*unaffected6.1.117 to ≤ 6.1.*unaffected6.6.61 to ≤ 6.6.*unaffected6.11.8 to ≤ 6.11.*unaffected6.12 to ≤ *unaffected
References
- 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 ↗
- https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html ↗
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html ↗