CVE-2024-58093
PCI/ASPM: Fix link state exit during switch upstream function removal
Check your servers for CVE-2024-58093
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-58093 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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]
Exploitation
EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.7% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 666e7f9d60cee23077ea3e6331f6f8a19f7ea03f, before 0a0f9aecf66b98959aab7fb5764b4b3e522f4f5b affected from 7badf4d6f49a358a01ab072bbff88d3ee886c33b, before 62db339ecc3d58d8fd83a9e4d80061cd943bb6e2 affected from 9856c0de49052174ab474113f4ba40c02aaee086, before e5cd58f61e9d8024ee11bd78c12c8916891d4077 affected from 7aecdd47910c51707696e8b0e045b9f88bd4230f, before cd4b07507794f7ad1a74e12eca75121d98187e66 affected from 456d8aa37d0f56fc9e985e812496e861dcd6f2f2, before 8b930ddc2044e36866c41423e89889e0258695a3 affected from 456d8aa37d0f56fc9e985e812496e861dcd6f2f2, before f556b6ba0ac5f8353287ce6ed761228f0b4fafb7 affected from 456d8aa37d0f56fc9e985e812496e861dcd6f2f2, before ba4cdc14c0d4df00d3e99bff7fe545303db98183 affected from 456d8aa37d0f56fc9e985e812496e861dcd6f2f2, before 4d96930239981f312821a4065db8cc0f8240a173 affected from 456d8aa37d0f56fc9e985e812496e861dcd6f2f2, before cbf937dcadfd571a434f8074d057b32cd14fbea5 affected d51d2eeae4ce54d542909c4d9d07bf371a78592c affected 4203722d51afe3d239e03f15cc73efdf023a7103 affected from 5.4.251, before 5.4.292 affected from 5.10.188, before 5.10.236 affected from 5.15.121, before 5.15.180 affected from 6.1.39, before 6.1.134 affected from 6.3.13, before 6.4 affected from 6.4.4, before 6.5
Other versions: unaffected
|
| Linux |
affected 6.5 unaffected before 6.5 unaffected from 5.4.292 up to and including 5.4.* unaffected from 5.10.236 up to and including 5.10.* unaffected from 5.15.180 up to and including 5.15.* unaffected from 6.1.134 up to and including 6.1.* unaffected from 6.6.87 up to and including 6.6.* unaffected from 6.12.23 up to and including 6.12.* unaffected from 6.13.11 up to and including 6.13.* unaffected from 6.14.2 up to and including 6.14.* unaffected 6.15 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-58093 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-58093
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-58093
trivy image --scanners vuln IMAGE | grep CVE-2024-58093
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/0a0f9aecf66b98959aab7fb5764b4b3e522f4f5b git.kernel.org
- https://git.kernel.org/stable/c/62db339ecc3d58d8fd83a9e4d80061cd943bb6e2 git.kernel.org
- https://git.kernel.org/stable/c/e5cd58f61e9d8024ee11bd78c12c8916891d4077 git.kernel.org
- https://git.kernel.org/stable/c/cd4b07507794f7ad1a74e12eca75121d98187e66 git.kernel.org
- https://git.kernel.org/stable/c/8b930ddc2044e36866c41423e89889e0258695a3 git.kernel.org
- https://git.kernel.org/stable/c/f556b6ba0ac5f8353287ce6ed761228f0b4fafb7 git.kernel.org
- https://git.kernel.org/stable/c/ba4cdc14c0d4df00d3e99bff7fe545303db98183 git.kernel.org
- https://git.kernel.org/stable/c/4d96930239981f312821a4065db8cc0f8240a173 git.kernel.org
- https://git.kernel.org/stable/c/cbf937dcadfd571a434f8074d057b32cd14fbea5 git.kernel.org
Source: the record CVE-2024-58093 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse