powerpc/powernv/sriov: perform null check on iov before dereferencing iov
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 052da31d45fc71238ea8bed7e9a84648a1ee0bf3 · < f4f913c980bc6abe0ccfe88fe3909c125afe4a2d| No fix yet |
| Linux Linux |
|
|
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; ^
From the CVE record · Linux
The Linux kernel's powerpc PowerNV SR-IOV code dereferences the iov pointer before checking whether it is null, which can cause a null pointer dereference. The input does not specify how an attacker could trigger this or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with powerpc PowerNV SR-IOV support should check their versions; affected versions are not specified.