{"id":"CVE-2023-54315","summary":"powerpc/powernv/sriov: perform null check on iov before dereferencing iov","details":"In the Linux kernel, the following vulnerability has been resolved:\n\npowerpc/powernv/sriov: perform null check on iov before dereferencing iov\n\nCurrently pointer iov is being dereferenced before the null check of iov\nwhich can lead to null pointer dereference errors. Fix this by moving the\niov null check before the dereferencing.\n\nDetected using cppcheck static analysis:\nlinux/arch/powerpc/platforms/powernv/pci-sriov.c:597:12: warning: Either\nthe condition '!iov' is redundant or there is possible null pointer\ndereference: iov. [nullPointerRedundantCheck]\n num_vfs = iov-\u003enum_vfs;\n           ^","modified":"2026-03-31T17:29:58.657008Z","published":"2025-12-30T12:23:45.858Z","related":["SUSE-SU-2026:0263-1","SUSE-SU-2026:0278-1","SUSE-SU-2026:0281-1","SUSE-SU-2026:0293-1","SUSE-SU-2026:0315-1","SUSE-SU-2026:0317-1","SUSE-SU-2026:0411-1","SUSE-SU-2026:0617-1","SUSE-SU-2026:20477-1","SUSE-SU-2026:20498-1","SUSE-SU-2026:20845-1","SUSE-SU-2026:20876-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54315.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/07c19c0ad4b07f4b598da369714de028f6a6a323"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6314465b88072a6b6f3b3c12a7898abe09095f95"},{"type":"WEB","url":"https://git.kernel.org/stable/c/72990144e17e5e2cb378f1d9b10530b85b9bc382"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d3a0d96c16e5f8d55e2c70163abda3c7c8328106"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d9a1aaea856002cb58dfb7c8d8770400fa1a0299"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f4f913c980bc6abe0ccfe88fe3909c125afe4a2d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54315.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54315"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"052da31d45fc71238ea8bed7e9a84648a1ee0bf3"},{"fixed":"07c19c0ad4b07f4b598da369714de028f6a6a323"},{"fixed":"d3a0d96c16e5f8d55e2c70163abda3c7c8328106"},{"fixed":"d9a1aaea856002cb58dfb7c8d8770400fa1a0299"},{"fixed":"6314465b88072a6b6f3b3c12a7898abe09095f95"},{"fixed":"72990144e17e5e2cb378f1d9b10530b85b9bc382"},{"fixed":"f4f913c980bc6abe0ccfe88fe3909c125afe4a2d"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54315.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.9.0"},{"fixed":"5.10.188"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.121"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.39"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.3.13"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.4.0"},{"fixed":"6.4.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54315.json"}}],"schema_version":"1.7.5"}