Vulnerability · Published Apr 16, 2025 · Assigned by Linux
CVE-2024-58093PCI/ASPM: Fix link state exit during switch upstream function removal
High 7.8
In plain English
A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In the Linux kernel, the following vulnerability has been resolved: PCI/ASPM: Fix link state exit during switch upstream function removal Before 456d8aa37d0f ("PCI/ASPM: Disable ASPM on MFD function removal to avoid use-after-free"), we would free the ASPM link only after the last function on the bus pertaining to the given link was removed. That was too late. If function 0 is removed before sibling function, link->downstream would point to free'd memory after. After above change, we freed the ASPM parent link state upon any function removal on the bus pertaining to a given link. That is too early. If the link is to a PCIe switch with MFD on the upstream port, then removing functions other than 0 first would free a link which still remains parent_link to the remaining downstream ports. The resulting GPFs are especially frequent during hot-unplug, because pciehp removes devices on the link bus in reverse order. On that switch, function 0 is the virtual P2P bridge to the internal bus. Free exactly when function 0 is removed -- before the parent link is obsolete, but after all subordinate links are gone. [kwilczynski: commit log]
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | linux | 6.1.135-1 | DEBIAN-CVE-2024-58093 |
| Debian:13 | linux | 6.12.25-1 | DEBIAN-CVE-2024-58093 |
| Debian:14 | linux | 6.12.25-1 | DEBIAN-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux | 5.15.0-142.152 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux | 5.15.0-142.152 | USN-7591-1 |
| Ubuntu:24.04:LTS | linux | 6.8.0-78.78 | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux | 6.8.0-78.78 | USN-7703-1 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1086.93 | USN-7591-4 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1086.93 | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1035.37 | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1035.37 | USN-7703-1 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1035.37~22.04.1 | USN-7703-2 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1035.37~22.04.1 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1091.100 | USN-7597-1 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1091.100 | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1034.39 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-azure-6.11 | 6.11.0-1018.18~24.04.1 | USN-7628-1 |
| Ubuntu:24.04:LTS | linux-azure-6.11 | 6.11.0-1018.18~24.04.1 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-azure-6.8 | 6.8.0-1034.39~22.04.1 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1091.100.1 | UBUNTU-CVE-2024-58093 |
| Ubuntu:25.10 | linux-azure-fde | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-azure-nvidia | 6.8.0-1022.23 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1085.94 | USN-7591-1 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1085.94 | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1036.38 | USN-7703-2 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1036.38 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-gcp-6.11 | 6.11.0-1016.16~24.04.1 | USN-7605-1 |
| Ubuntu:24.04:LTS | linux-gcp-6.11 | 6.11.0-1016.16~24.04.1 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1036.38~22.04.1 | USN-7703-2 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1036.38~22.04.1 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1083.89 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1083.89 | USN-7591-1 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1032.36 | USN-7703-4 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1032.36 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1068.76 | USN-7591-1 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1068.76 | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1019.21 | USN-7703-2 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1019.21 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-hwe-6.11 | 6.11.0-28.28~24.04.1 | USN-7605-1 |
| Ubuntu:24.04:LTS | linux-hwe-6.11 | 6.11.0-28.28~24.04.1 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-hwe-6.8 | 6.8.0-78.78~22.04.1 | USN-7703-4 |
| Ubuntu:22.04:LTS | linux-hwe-6.8 | 6.8.0-78.78~22.04.1 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1078.81 | USN-7591-1 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1078.81 | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1033.33 | USN-7703-2 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1033.33 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-ibm-6.8 | 6.8.0-1033.33~22.04.1 | USN-7703-2 |
| Ubuntu:22.04:LTS | linux-ibm-6.8 | 6.8.0-1033.33~22.04.1 | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-intel | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1081.87 | USN-7591-5 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1081.87 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1082.87 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1082.87 | USN-7591-1 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-142.152 | USN-7591-1 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-142.152 | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-78.78.1 | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-78.78.1 | USN-7703-1 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-lowlatency-hwe-6.11 | 6.11.0-1015.16~24.04.2 | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-lowlatency-hwe-6.11 | 6.11.0-1015.16~24.04.2 | USN-7605-2 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-78.78.1~22.04.1 | USN-7703-1 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-78.78.1~22.04.1 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1080.81 | USN-7591-1 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1080.81 | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1035.38 | USN-7703-4 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1035.38 | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-nvidia-6.11 | 6.11.0-1011.11 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1035.38~22.04.1 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1035.38~22.04.1 | USN-7703-4 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1035.38.1 | USN-7703-4 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1035.38.1 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1039.39 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1039.39 | USN-7591-1 |
| Ubuntu:24.04:LTS | linux-nvidia-tegra | 6.8.0-1009.9 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1028.28 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1028.28 | USN-7591-1 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-oem-6.11 | 6.11.0-1024.24 | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-oem-6.11 | 6.11.0-1024.24 | USN-7606-1 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1083.89 | USN-7591-1 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1083.89 | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1032.33 | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1032.33 | USN-7703-3 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1032.33~22.04.1 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1032.33~22.04.1 | USN-7703-3 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1080.83 | USN-7591-6 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1080.83 | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1035.39 | USN-7703-4 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1035.39 | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-riscv-6.8 | 6.8.0-78.78~22.04.1 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2024-58093 |
| Ubuntu:24.04:LTS | linux-xilinx | 6.8.0-1017.18 | UBUNTU-CVE-2024-58093 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1050.54 | UBUNTU-CVE-2024-58093 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 666e7f9d60cee23077ea3e6331f6f8a19f7ea03f – before 0a0f9aecf66b98959aab7fb5764b4b3e522f4f5b7badf4d6f49a358a01ab072bbff88d3ee886c33b – before 62db339ecc3d58d8fd83a9e4d80061cd943bb6e29856c0de49052174ab474113f4ba40c02aaee086 – before e5cd58f61e9d8024ee11bd78c12c8916891d40777aecdd47910c51707696e8b0e045b9f88bd4230f – before cd4b07507794f7ad1a74e12eca75121d98187e66456d8aa37d0f56fc9e985e812496e861dcd6f2f2 – before 8b930ddc2044e36866c41423e89889e0258695a3456d8aa37d0f56fc9e985e812496e861dcd6f2f2 – before f556b6ba0ac5f8353287ce6ed761228f0b4fafb7456d8aa37d0f56fc9e985e812496e861dcd6f2f2 – before ba4cdc14c0d4df00d3e99bff7fe545303db98183456d8aa37d0f56fc9e985e812496e861dcd6f2f2 – before 4d96930239981f312821a4065db8cc0f8240a173 |
| Linux | Linux | 6.5 |
References
- https://git.kernel.org/stable/c/0a0f9aecf66b98959aab7fb5764b4b3e522f4f5b
- https://git.kernel.org/stable/c/62db339ecc3d58d8fd83a9e4d80061cd943bb6e2
- https://git.kernel.org/stable/c/e5cd58f61e9d8024ee11bd78c12c8916891d4077
- https://git.kernel.org/stable/c/cd4b07507794f7ad1a74e12eca75121d98187e66
- https://git.kernel.org/stable/c/8b930ddc2044e36866c41423e89889e0258695a3
- https://git.kernel.org/stable/c/f556b6ba0ac5f8353287ce6ed761228f0b4fafb7
- https://git.kernel.org/stable/c/ba4cdc14c0d4df00d3e99bff7fe545303db98183
- https://git.kernel.org/stable/c/4d96930239981f312821a4065db8cc0f8240a173
- https://git.kernel.org/stable/c/cbf937dcadfd571a434f8074d057b32cd14fbea5