spi: hisi-kunpeng: Add verification for the max_frequency provided by the firmware (Linux Linux)

CVE-2024-47664
MEDIUM 5.5

En bref

Source
NVD
EPSS
EPSS 0.21 % · centile 11 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: spi: hisi-kunpeng: Add verification for the max_frequency provided by the firmware If the value of max_speed_hz is 0, it may cause a division by zero error in hisi_calc_effective_speed(). The value of max_speed_hz is provided by firmware. Firmware is generally considered as a trusted domain. However, as division by zero errors can cause system failure, for defense measure, the value of max_speed is validated here. So 0 is regarded as invalid and an error code is returned.

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:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected c770d8631e1810d8f1ce21b18ad5dd67eeb39e5c < dc30f8d9b25db3b79d36971a90c1ee95010ff45a ; affected c770d8631e1810d8f1ce21b18ad5dd67eeb39e5c < 16ccaf581da4fcf1e4d66086cf37263f9a656d43 ; affected c770d8631e1810d8f1ce21b18ad5dd67eeb39e5c < ee73a15d4a8ce8fb02d7866f7cf78fcdd16f0fcc ; affected c770d8631e1810d8f1ce21b18ad5dd67eeb39e5c < 5127c42c77de18651aa9e8e0a3ced190103b449c
Linux · Linuxaffected 5.13 ; unaffected 0 < 5.13 ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.51 ≤ 6.6.* ; unaffected 6.10.10 ≤ 6.10.* ; unaffected 6.11 ≤ *

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