cifs: fix underflow in parse_server_interfaces() (Linux Linux)

CVE-2024-26828
CRITICAL 9.4

En bref

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

Description

In the Linux kernel, the following vulnerability has been resolved: cifs: fix underflow in parse_server_interfaces() In this loop, we step through the buffer and after each item we check if the size_left is greater than the minimum size we need. However, the problem is that "bytes_left" is type ssize_t while sizeof() is type size_t. That means that because of type promotion, the comparison is done as an unsigned and if we have negative bytes left the loop continues instead of ending.

Faiblesses (CWE)

  • CWE-191 — Soupassement d'entier

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1CRITICAL 9.4CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:HLinux
CVSS 3.1MEDIUM 6.7CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:HCISA-ADP
CVSS 3.1CRITICAL 9.4CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1MEDIUM 6.7CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:N/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 fe856be475f7cf5ffcde57341d175ce9fd09434b < 3babdcb5f1809a9a41e31547a063dedf6bb44cca ; affected fe856be475f7cf5ffcde57341d175ce9fd09434b < 7190353835b4a219abb70f90b06cdcae97f11512 ; affected fe856be475f7cf5ffcde57341d175ce9fd09434b < f7ff1c89fb6e9610d2b01c1821727729e6609308 ; affected fe856be475f7cf5ffcde57341d175ce9fd09434b < df2af9fdbc4ddde18a3371c4ca1a86596e8be301 ; affected fe856be475f7cf5ffcde57341d175ce9fd09434b < cffe487026be13eaf37ea28b783d9638ab147204
Linux · Linuxaffected 4.18 ; unaffected 0 < 4.18 ; unaffected 5.15.224 ≤ 5.15.* ; unaffected 6.1.79 ≤ 6.1.* ; unaffected 6.6.18 ≤ 6.6.* ; unaffected 6.7.6 ≤ 6.7.*

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