CVE-2023-54315

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

State
Published
Severity
Not scored
Published
Dec 30, 2025
Updated
May 11, 2026
Reserved
Dec 30, 2025

Read the record on cve.org

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 052da31d45fc71238ea8bed7e9a84648a1ee0bf3 to before 07c19c0ad4b07f4b598da369714de028f6a6a323Affected
  • 052da31d45fc71238ea8bed7e9a84648a1ee0bf3 to before d3a0d96c16e5f8d55e2c70163abda3c7c8328106Affected
  • 052da31d45fc71238ea8bed7e9a84648a1ee0bf3 to before d9a1aaea856002cb58dfb7c8d8770400fa1a0299Affected
  • 052da31d45fc71238ea8bed7e9a84648a1ee0bf3 to before 6314465b88072a6b6f3b3c12a7898abe09095f95Affected
  • 052da31d45fc71238ea8bed7e9a84648a1ee0bf3 to before 72990144e17e5e2cb378f1d9b10530b85b9bc382Affected
  • 052da31d45fc71238ea8bed7e9a84648a1ee0bf3 to before f4f913c980bc6abe0ccfe88fe3909c125afe4a2dAffected
LinuxLinux
  • 5.9Affected
  • before 5.9Not affected
  • 5.10.188 through 5.10.*Not affected
  • 5.15.121 through 5.15.*Not affected
  • 6.1.39 through 6.1.*Not affected
  • 6.3.13 through 6.3.*Not affected
  • 6.4.4 through 6.4.*Not affected
  • 6.5 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.