{"id":"CVE-2024-50287","aliases":["CVE-2024-50287"],"related":[],"kind":"vulnerability","state":"published","title":"media: v4l2-tpg: prevent the risk of a division by zero","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: v4l2-tpg: prevent the risk of a division by zero\n\nAs reported by Coverity, the logic at tpg_precalculate_line()\nblindly rescales the buffer even when scaled_witdh is equal to\nzero. If this ever happens, this will cause a division by zero.\n\nInstead, add a WARN_ON_ONCE() to trigger such cases and return\nwithout doing any precalculation.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: v4l2-tpg: prevent the risk of a division by zero\n\nAs reported by Coverity, the logic at tpg_precalculate_line()\nblindly rescales the buffer even when scaled_witdh is equal to\nzero. If this ever happens, this will cause a division by zero.\n\nInstead, add a WARN_ON_ONCE() to trigger such cases and return\nwithout doing any precalculation.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: media: v4l2-tpg: evitar el riesgo de una división por cero Como lo informó Coverity, la lógica en tpg_precalculate_line() reescala ciegamente el búfer incluso cuando scaled_witdh es igual a cero. Si esto sucede alguna vez, provocará una división por cero. En su lugar, agregue un WARN_ON_ONCE() para activar dichos casos y regresar sin realizar ningún cálculo previo.","source":"nvd"}],"published":"2024-11-19T01:30:31.338Z","modified":"2026-06-17T08:04:07.870Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-369"],"affected":[{"ranges":[{"type":"git","introduced":"63881df94d3ecbb0deafa0b77da62ff2f32961c4","fixed":"e3c36d0bde309f690ed1f9cd5f7e63b3a513f94a","status":"affected"},{"type":"git","introduced":"63881df94d3ecbb0deafa0b77da62ff2f32961c4","fixed":"0bfc6e38ee2250f0503d96f1a1de441c31d88715","status":"affected"},{"type":"git","introduced":"63881df94d3ecbb0deafa0b77da62ff2f32961c4","fixed":"054931ca3cfcb8e8fa036e887d6f379942b02565","status":"affected"},{"type":"git","introduced":"63881df94d3ecbb0deafa0b77da62ff2f32961c4","fixed":"a749c15dccc58d9cbad9cd23bd8ab4b5fa96cf47","status":"affected"},{"type":"git","introduced":"63881df94d3ecbb0deafa0b77da62ff2f32961c4","fixed":"c63c30c9d9f2c8de34b16cd2b8400240533b914e","status":"affected"},{"type":"git","introduced":"63881df94d3ecbb0deafa0b77da62ff2f32961c4","fixed":"2d0f01aa602fd15a805771bdf3f4d9a9b4df7f47","status":"affected"},{"type":"git","introduced":"63881df94d3ecbb0deafa0b77da62ff2f32961c4","fixed":"0cdb42ba0b28f548c1a4e86bb8489dba0d78fc21","status":"affected"},{"type":"git","introduced":"63881df94d3ecbb0deafa0b77da62ff2f32961c4","fixed":"e6a3ea83fbe15d4818d01804e904cbb0e64e543b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.18","status":"unaffected"},{"type":"semver","introduced":"4.19.324","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.286","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.230","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.172","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.117","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.61","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.8","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.18","fixed":"4.19.324"},{"status":"affected","introduced":"4.20","fixed":"5.4.286"},{"status":"affected","introduced":"5.5","fixed":"5.10.230"},{"status":"affected","introduced":"5.11","fixed":"5.15.172"},{"status":"affected","introduced":"5.16","fixed":"6.1.117"},{"status":"affected","introduced":"6.2","fixed":"6.6.61"},{"status":"affected","introduced":"6.7","fixed":"6.11.8"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e3c36d0bde309f690ed1f9cd5f7e63b3a513f94a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0bfc6e38ee2250f0503d96f1a1de441c31d88715","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/054931ca3cfcb8e8fa036e887d6f379942b02565","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a749c15dccc58d9cbad9cd23bd8ab4b5fa96cf47","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c63c30c9d9f2c8de34b16cd2b8400240533b914e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2d0f01aa602fd15a805771bdf3f4d9a9b4df7f47","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0cdb42ba0b28f548c1a4e86bb8489dba0d78fc21","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e6a3ea83fbe15d4818d01804e904cbb0e64e543b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T20:14:30.746Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50287","url":"https://www.cve.org/CVERecord?id=CVE-2024-50287","licence":"CVE Terms of Use","modified":"2026-05-11T20:49:13.546Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50287","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50287","licence":"Public domain","modified":"2026-06-17T08:04:07.870Z"}],"updatedAt":"2026-11-25T22:58:48.415Z","epss":{"score":0.00254,"percentile":0.18097,"date":"2026-12-01T12:00:22.000Z"}}