of: module: add buffer overflow check in of_modalias() (Linux Linux)

CVE-2024-38541
HIGH 7.8

En bref

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

Description

In the Linux kernel, the following vulnerability has been resolved: of: module: add buffer overflow check in of_modalias() In of_modalias(), if the buffer happens to be too small even for the 1st snprintf() call, the len parameter will become negative and str parameter (if not NULL initially) will point beyond the buffer's end. Add the buffer overflow check after the 1st snprintf() call and fix such check after the strlen() call (accounting for the terminating NUL char).

Faiblesses (CWE)

  • CWE-120 — Copie de tampon sans vérification de taille (débordement classique)

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1CRITICAL 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCISA-ADP
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1CRITICAL 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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 bc575064d688c8933a6ca51429bea9bc63628d3b < 46795440ef2b4ac919d09310a69a404c5bc90a88 ; affected bc575064d688c8933a6ca51429bea9bc63628d3b < 733e62786bdf1b2b9dbb09ba2246313306503414 ; affected bc575064d688c8933a6ca51429bea9bc63628d3b < c7f24b7d94549ff4623e8f41ea4d9f5319bd8ac8 ; affected bc575064d688c8933a6ca51429bea9bc63628d3b < 5d59fd637a8af42b211a92b2edb2474325b4d488 ; affected bc575064d688c8933a6ca51429bea9bc63628d3b < 0b0d5701a8bf02f8fee037e81aacf6746558bfd6 ; affected bc575064d688c8933a6ca51429bea9bc63628d3b < ee332023adfd5882808f2dabf037b32d6ce36f9e
Linux · Linuxaffected 4.14 ; unaffected 0 < 4.14 ; unaffected 5.4.294 ≤ 5.4.* ; unaffected 5.10.238 ≤ 5.10.* ; unaffected 5.15.182 ≤ 5.15.* ; unaffected 6.1.136 ≤ 6.1.*

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