powerpc/powernv/sriov: perform null check on iov before dereferencing iov (Linux Linux)

CVE-2023-54315
Non disponible

En bref

Source
NVD
EPSS
EPSS 0.19 % · centile 9 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Deferred

Description

In the Linux kernel, the following vulnerability has been resolved: powerpc/powernv/sriov: perform null check on iov before dereferencing iov Currently pointer iov is being dereferenced before the null check of iov which can lead to null pointer dereference errors. Fix this by moving the iov null check before the dereferencing. Detected using cppcheck static analysis: linux/arch/powerpc/platforms/powernv/pci-sriov.c:597:12: warning: Either the condition '!iov' is redundant or there is possible null pointer dereference: iov. [nullPointerRedundantCheck] num_vfs = iov->num_vfs; ^

Références

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected 052da31d45fc71238ea8bed7e9a84648a1ee0bf3 < 07c19c0ad4b07f4b598da369714de028f6a6a323 ; affected 052da31d45fc71238ea8bed7e9a84648a1ee0bf3 < d3a0d96c16e5f8d55e2c70163abda3c7c8328106 ; affected 052da31d45fc71238ea8bed7e9a84648a1ee0bf3 < d9a1aaea856002cb58dfb7c8d8770400fa1a0299 ; affected 052da31d45fc71238ea8bed7e9a84648a1ee0bf3 < 6314465b88072a6b6f3b3c12a7898abe09095f95 ; affected 052da31d45fc71238ea8bed7e9a84648a1ee0bf3 < 72990144e17e5e2cb378f1d9b10530b85b9bc382 ; affected 052da31d45fc71238ea8bed7e9a84648a1ee0bf3 < f4f913c980bc6abe0ccfe88fe3909c125afe4a2d
Linux · Linuxaffected 5.9 ; unaffected 0 < 5.9 ; unaffected 5.10.188 ≤ 5.10.* ; unaffected 5.15.121 ≤ 5.15.* ; unaffected 6.1.39 ≤ 6.1.* ; unaffected 6.3.13 ≤ 6.3.*

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