CVE-2024-46761

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

History

23 Sep 2024, 16:06

Type Values Removed Values Added
References () https://git.kernel.org/stable/c/335e35b748527f0c06ded9eebb65387f60647fda - () https://git.kernel.org/stable/c/335e35b748527f0c06ded9eebb65387f60647fda - Patch
References () https://git.kernel.org/stable/c/438d522227374042b5c8798f8ce83bbe479dca4d - () https://git.kernel.org/stable/c/438d522227374042b5c8798f8ce83bbe479dca4d - Patch
References () https://git.kernel.org/stable/c/4eb4085c1346d19d4a05c55246eb93e74e671048 - () https://git.kernel.org/stable/c/4eb4085c1346d19d4a05c55246eb93e74e671048 - Patch
References () https://git.kernel.org/stable/c/b82d4d5c736f4fd2ed224c35f554f50d1953d21e - () https://git.kernel.org/stable/c/b82d4d5c736f4fd2ed224c35f554f50d1953d21e - Patch
References () https://git.kernel.org/stable/c/bc1faed19db95abf0933b104910a3fb01b138f59 - () https://git.kernel.org/stable/c/bc1faed19db95abf0933b104910a3fb01b138f59 - Patch
References () https://git.kernel.org/stable/c/bfc44075b19740d372f989f21dd03168bfda0689 - () https://git.kernel.org/stable/c/bfc44075b19740d372f989f21dd03168bfda0689 - Patch
References () https://git.kernel.org/stable/c/c0d8094dc740cfacf3775bbc6a1c4720459e8de4 - () https://git.kernel.org/stable/c/c0d8094dc740cfacf3775bbc6a1c4720459e8de4 - Patch
References () https://git.kernel.org/stable/c/c4c681999d385e28f84808bbf3a85ea8e982da55 - () https://git.kernel.org/stable/c/c4c681999d385e28f84808bbf3a85ea8e982da55 - Patch
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.5
CWE CWE-476
First Time Linux linux Kernel
Linux
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

20 Sep 2024, 12:30

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: pci/hotplug/pnv_php: Se soluciona el fallo del controlador hotplug en Powernv El controlador hotplug para powerpc (pci/hotplug/pnv_php.c) provoca un fallo del kernel cuando intentamos desconectar/deshabilitar en caliente el conmutador/puente PCIe del PHB. El fallo se produce porque, aunque la estructura de datos MSI se ha liberado durante la ruta de deshabilitación/desconexión en caliente y se le ha asignado NULL, aún durante la anulación del registro el código estaba intentando de nuevo deshabilitar explícitamente el MSI, lo que provoca la desreferencia del puntero NULL y el fallo del kernel. El parche corrige la comprobación durante la ruta de anulación del registro para evitar invocar pci_disable_msi/msix() ya que su estructura de datos ya está liberada.

18 Sep 2024, 08:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-09-18 08:15

Updated : 2024-09-23 16:06


NVD link : CVE-2024-46761

Mitre link : CVE-2024-46761

CVE.ORG link : CVE-2024-46761


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-476

NULL Pointer Dereference