CVE-2024-43875

PCI: endpoint: Clean up error handling in vpci_scan_bus()

published August 21, 2024

CVSS
—
EPSS
0%
Percentile
10.9
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

PCI: endpoint: Clean up error handling in vpci_scan_bus()

Smatch complains about inconsistent NULL checking in vpci_scan_bus():

drivers/pci/endpoint/functions/pci-epf-vntb.c:1024 vpci_scan_bus() error: we previously assumed 'vpci_bus' could be null (see line 1021)

Instead of printing an error message and then crashing we should return

an error code and clean up.

Also the NULL check is reversed so it prints an error for success

instead of failure.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00212 · 10.9th percentile
Published
2024-08-21T00:06Z
EPSS history
Timeline
  • 21 AUG 00:06Z
    PCI: endpoint: Clean up error handling in vpci_scan_bus()
    cvelistv5