media: v4l2-tpg: prevent the risk of a division by zero (Linux Linux)

CVE-2024-50287
MEDIUM 5.5

En bref

Source
NVD
EPSS
EPSS 0.25 % · centile 17 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
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.

Faiblesses (CWE)

  • CWE-369 — Division par zéro

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected 63881df94d3ecbb0deafa0b77da62ff2f32961c4 < e3c36d0bde309f690ed1f9cd5f7e63b3a513f94a ; affected 63881df94d3ecbb0deafa0b77da62ff2f32961c4 < 0bfc6e38ee2250f0503d96f1a1de441c31d88715 ; affected 63881df94d3ecbb0deafa0b77da62ff2f32961c4 < 054931ca3cfcb8e8fa036e887d6f379942b02565 ; affected 63881df94d3ecbb0deafa0b77da62ff2f32961c4 < a749c15dccc58d9cbad9cd23bd8ab4b5fa96cf47 ; affected 63881df94d3ecbb0deafa0b77da62ff2f32961c4 < c63c30c9d9f2c8de34b16cd2b8400240533b914e ; affected 63881df94d3ecbb0deafa0b77da62ff2f32961c4 < 2d0f01aa602fd15a805771bdf3f4d9a9b4df7f47
Linux · Linuxaffected 3.18 ; unaffected 0 < 3.18 ; unaffected 4.19.324 ≤ 4.19.* ; unaffected 5.4.286 ≤ 5.4.* ; unaffected 5.10.230 ≤ 5.10.* ; unaffected 5.15.172 ≤ 5.15.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD