CVE-2024-46761 pci/hotplug/pnv_php: Fix hotplug driver crash on Powernv

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel PCI hotplug driver causes a crash when disabling PCIe devices, leading to denial of service.

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-46761?

CVE-2024-46761 is a medium-severity vulnerability in Linux kernel, published on 18 Sep 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/hotplug/pnv_php: Fix hotplug driver crash on Powernv

The hotplug driver for powerpc (pci/hotplug/pnv_php.c) causes a kernel crash when we try to hot-unplug/disable the PCIe switch/bridge from the PHB.

The crash occurs because although the MSI data structure has been released during disable/hot-unplug path and it has been assigned with NULL, still during unregistration the code was again trying to explicitly disable the MSI which causes the NULL pointer dereference and kernel crash.

The patch fixes the check during unregistration path to prevent invoking pci_disable_msi/msix() since its data structure is already freed.

Weakness: CWE-476

Which versions are affected by CVE-2024-46761?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-46761?

Apply the vendor's patch.

Is CVE-2024-46761 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-49560, BELL-CVE-2024-46761, DEBIAN-CVE-2024-46761, GHSA-mf8x-9rcg-p86q, ROOT-OS-DEBIAN-11-CVE-2024-46761, UBUNTU-CVE-2024-46761.

Is CVE-2024-46761 in your software?

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

Check your SBOMs for free