scsi: qedf: Ensure the copied buf is NUL terminated (Linux Linux)

CVE-2024-38559
MEDIUM 4.4

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: scsi: qedf: Ensure the copied buf is NUL terminated Currently, we allocate a count-sized kernel buffer and copy count from userspace to that buffer. Later, we use kstrtouint on this buffer but we don't ensure that the string is terminated inside the buffer, this can lead to OOB read when using kstrtouint. Fix this issue by using memdup_user_nul instead of memdup_user.

Faiblesses (CWE)

  • CWE-476 — Déréférencement de pointeur nul

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1MEDIUM 4.4CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:HCISA-ADP
CVSS 3.1MEDIUM 4.4CVSS:3.1/AV:L/AC:L/PR:H/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 61d8658b4a435eac729966cc94cdda077a8df5cd < 1f84a2744ad813be23fc4be99fb74bfb24aadb95 ; affected 61d8658b4a435eac729966cc94cdda077a8df5cd < a75001678e1d38aa607d5b898ec7ff8ed0700d59 ; affected 61d8658b4a435eac729966cc94cdda077a8df5cd < 769b9fd2af02c069451fe9108dba73355d9a021c ; affected 61d8658b4a435eac729966cc94cdda077a8df5cd < dccd97b39ab2f2b1b9a47a1394647a4d65815255 ; affected 61d8658b4a435eac729966cc94cdda077a8df5cd < d93318f19d1e1a6d5f04f5d965eaa9055bb7c613 ; affected 61d8658b4a435eac729966cc94cdda077a8df5cd < 563e609275927c0b75fbfd0d90441543aa7b5e0d
Linux · Linuxaffected 4.11 ; unaffected 0 < 4.11 ; unaffected 4.19.316 ≤ 4.19.* ; unaffected 5.4.278 ≤ 5.4.* ; unaffected 5.10.219 ≤ 5.10.* ; unaffected 5.15.161 ≤ 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