CVE-2024-43875 PCI: endpoint: Clean up error handling in vpci_scan_bus()

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel PCI endpoint driver can cause a system crash, requiring a kernel patch to fix.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-43875?

CVE-2024-43875 is a medium-severity vulnerability in Linux kernel, published on 21 Aug 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-476

Which versions are affected by CVE-2024-43875?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-43875?

Apply the vendor's patch.

Is CVE-2024-43875 being exploited?

There is no known exploitation of CVE-2024-43875 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-43875, DEBIAN-CVE-2024-43875, GHSA-4g32-c2j9-mx24, UBUNTU-CVE-2024-43875.

Is CVE-2024-43875 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free