Not scored
powerpc/powernv/sriov: perform null check on iov before dereferencing iov
- Severity
- Not scored
- Exploit likelihood
- 0.21% (higher than 11% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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; ^
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 052da31d45fc71238ea8bed7e9a84648a1ee0bf3 before 07c19c0ad4b07f4b598da369714de028f6a6a323, from 052da31d45fc71238ea8bed7e9a84648a1ee0bf3 before d3a0d96c16e5f8d55e2c70163abda3c7c8328106, from 052da31d45fc71238ea8bed7e9a84648a1ee0bf3 before d9a1aaea856002cb58dfb7c8d8770400fa1a0299, from 052da31d45fc71238ea8bed7e9a84648a1ee0bf3 before 6314465b88072a6b6f3b3c12a7898abe09095f95, from 052da31d45fc71238ea8bed7e9a84648a1ee0bf3 before 72990144e17e5e2cb378f1d9b10530b85b9bc382, from 052da31d45fc71238ea8bed7e9a84648a1ee0bf3 before f4f913c980bc6abe0ccfe88fe3909c125afe4a2d, 5.9 Not affected: before 5.9, from 5.10.188 up to 5.10.*, from 5.15.121 up to 5.15.*, from 6.1.39 up to 6.1.*, from 6.3.13 up to 6.3.*, from 6.4.4 up to 6.4.* | CVE List |
What each source says
CVE List
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; ^
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: powerpc/powernv/sriov: realizar una comprobación de nulo en iov antes de desreferenciar iov Actualmente, el puntero iov está siendo desreferenciado antes de la comprobación de nulo de iov, lo que puede llevar a errores de desreferencia de puntero nulo. Solucione esto moviendo la comprobación de nulo de iov antes de la desreferencia. Detectado usando análisis estático de cppcheck: linux/arch/powerpc/platforms/powernv/pci-sriov.c:597:12: advertencia: O la condición '!iov' es redundante o hay una posible desreferencia de puntero nulo: iov. [nullPointerRedundantCheck] num_vfs = iov->num_vfs; ^
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-54315 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2023-54315 changed 2026-06-17 | Public domain |