PCI: endpoint: Clean up error handling in vpci_scan_bus() (Linux Linux)

CVE-2024-43875
MEDIUM 5.5

En bref

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

Description

In the Linux kernel, the following vulnerability has been resolved: PCI: endpoint: Clean up error handling in vpci_scan_bus() Smatch complains about inconsistent NULL checking in vpci_scan_bus(): drivers/pci/endpoint/functions/pci-epf-vntb.c:1024 vpci_scan_bus() error: we previously assumed 'vpci_bus' could be null (see line 1021) Instead of printing an error message and then crashing we should return an error code and clean up. Also the NULL check is reversed so it prints an error for success instead of failure.

Faiblesses (CWE)

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

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 e2b6ef72b7aea9d7d480d2df499bcd1c93247abb < 24414c842a24d0fd498f9db6d2a762a8dddf1832 ; affected e35f56bb03304abc92c928b641af41ca372966bb < 7d368de78b60088ec9031c60c88976c0063ea4c0 ; affected e35f56bb03304abc92c928b641af41ca372966bb < 0e27e2e8697b8ce96cdef43f135426525d9d1f8f ; affected e35f56bb03304abc92c928b641af41ca372966bb < b9e8695246bcfc028341470cbf92630cdc1ba36b ; affected e35f56bb03304abc92c928b641af41ca372966bb < 8e0f5a96c534f781e8c57ca30459448b3bfe5429 ; affected 5.15.153 < 5.15.165
Linux · Linuxaffected 6.0 ; unaffected 0 < 6.0 ; unaffected 5.15.165 ≤ 5.15.* ; unaffected 6.1.103 ≤ 6.1.* ; unaffected 6.6.44 ≤ 6.6.* ; unaffected 6.10.3 ≤ 6.10.*

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