All reports
Low

kernel: powerpc/powernv/sriov: perform null check on iov before dereferencing iov

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2023-54315

Probability of exploitation in the next 30 days: 0.19%

FIRST EPSS · 2026-11-20

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; ^

A NULL pointer dereference was found in the PowerPC PowerNV SR-IOV code. The iov pointer is dereferenced before being checked for NULL, causing crashes when SR-IOV is not properly configured.