CVE-2024-58093 json
PCI/ASPM: Fix link state exit during switch upstream function removal
published 2025-04-16 18 mo ago modified 2026-11-05 3 d ago also EUVD-2025-11276
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 14%
- public exploits
- 0
- none known
Summary
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]
Patch / fix
- Linux Linux 5.4.292, 5.10.236, 5.15.180, 6.1.134, 6.4, 6.5, 6.6.87, 6.12.23, 6.13.11, 6.14.2, 6.15
- linux Debian 12 6.1.135-1
- linux Debian 14, Debian 13 6.12.25-1
debian advisories DEBIAN-CVE-2024-58093
- linux Ubuntu 22.04 LTS 5.15.0-142.152
- linux Ubuntu 24.04 LTS 6.8.0-78.78
- linux-aws Ubuntu 22.04 LTS 5.15.0-1086.93
- linux-aws Ubuntu 24.04 LTS 6.8.0-1035.37
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1085.94
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1036.38
- linux-gke Ubuntu 22.04 LTS 5.15.0-1083.89
- linux-gke Ubuntu 24.04 LTS 6.8.0-1032.36
ubuntu advisories UBUNTU-CVE-2024-58093
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-rt Real Time Module 15 SP7 6.4.0-150700.7.3.1
- kernel-syms-rt Real Time Module 15 SP7 6.4.0-150700.7.3.1
- kernel-rt_debug Real Time Module 15 SP7 6.4.0-150700.7.3.1
- kernel-source-rt Real Time Module 15 SP7 6.4.0-150700.7.3.1
- kernel-azure SLE Module for Public Cloud 15 SP7 6.4.0-150700.20.3.1
- kernel-syms-azure SLE Module for Public Cloud 15 SP7 6.4.0-150700.20.3.1
- kernel-source-azure SLE Module for Public Cloud 15 SP7 6.4.0-150700.20.3.1
- kernel-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.39.1
suse advisories SUSE-SU-2025:01972-1SUSE-SU-2025:01967-1SUSE-SU-2025:01964-1SUSE-SU-2025:01951-1SUSE-SU-2025:01919-1SUSE-SU-2025:01707-1
- git.kernel.org/stable/c/0a0f9aecf66b98959aab7fb5764b4b3e522f4f5b commit
- git.kernel.org/stable/c/62db339ecc3d58d8fd83a9e4d80061cd943bb6e2 commit
- git.kernel.org/stable/c/e5cd58f61e9d8024ee11bd78c12c8916891d4077 commit
- git.kernel.org/stable/c/cd4b07507794f7ad1a74e12eca75121d98187e66 commit
- git.kernel.org/stable/c/8b930ddc2044e36866c41423e89889e0258695a3 commit
- git.kernel.org/stable/c/f556b6ba0ac5f8353287ce6ed761228f0b4fafb7 commit
- git.kernel.org/stable/c/ba4cdc14c0d4df00d3e99bff7fe545303db98183 commit
- git.kernel.org/stable/c/4d96930239981f312821a4065db8cc0f8240a173 commit
- git.kernel.org/stable/c/cbf937dcadfd571a434f8074d057b32cd14fbea5 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-58093 updated cvss 5.5
kernel: Linux kernel: PCI/ASPM use-after-free during hot-unplug
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 d ago
Exploit prediction
0.23% chance of exploitation in the next 30 days, higher than 14% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
- git.kernel.org /stable/c/0a0f9aecf66b98959aab7fb5764b4b3e522f4f5b
- git.kernel.org /stable/c/62db339ecc3d58d8fd83a9e4d80061cd943bb6e2
- git.kernel.org /stable/c/e5cd58f61e9d8024ee11bd78c12c8916891d4077
- git.kernel.org /stable/c/cd4b07507794f7ad1a74e12eca75121d98187e66
- git.kernel.org /stable/c/8b930ddc2044e36866c41423e89889e0258695a3
- git.kernel.org /stable/c/f556b6ba0ac5f8353287ce6ed761228f0b4fafb7
- git.kernel.org /stable/c/ba4cdc14c0d4df00d3e99bff7fe545303db98183
- git.kernel.org /stable/c/4d96930239981f312821a4065db8cc0f8240a173
-
git.kernel.org
/stable/c/cbf937dcadfd571a434f8074d057b32cd14fbea5
patch
Sources
- CVE List CVE-2024-58093
- NVD CVE-2024-58093
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.