pci/hotplug/pnv_php: Fix hotplug driver crash on Powernv (Linux Linux)

CVE-2024-46761
MEDIUM 5.5

En bref

Source
NVD
EPSS
EPSS 0.25 % · centile 17 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

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.

Faiblesses (CWE)

  • CWE-476 — Déréférencement de pointeur nul

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected 49f4b08e61547a5ccd2db551d994c4503efe5666 < 4eb4085c1346d19d4a05c55246eb93e74e671048 ; affected 49f4b08e61547a5ccd2db551d994c4503efe5666 < c4c681999d385e28f84808bbf3a85ea8e982da55 ; affected 49f4b08e61547a5ccd2db551d994c4503efe5666 < bc1faed19db95abf0933b104910a3fb01b138f59 ; affected 49f4b08e61547a5ccd2db551d994c4503efe5666 < c0d8094dc740cfacf3775bbc6a1c4720459e8de4 ; affected 49f4b08e61547a5ccd2db551d994c4503efe5666 < 438d522227374042b5c8798f8ce83bbe479dca4d ; affected 49f4b08e61547a5ccd2db551d994c4503efe5666 < b82d4d5c736f4fd2ed224c35f554f50d1953d21e
Linux · Linuxaffected 4.11 ; unaffected 0 < 4.11 ; unaffected 4.19.322 ≤ 4.19.* ; unaffected 5.4.284 ≤ 5.4.* ; unaffected 5.10.226 ≤ 5.10.* ; unaffected 5.15.167 ≤ 5.15.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD