CVE-2024-56699
s390/pci: Fix potential double remove of hotplug slot
Check your servers for CVE-2024-56699
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-56699 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:
s390/pci: Fix potential double remove of hotplug slot
In commit 6ee600bfbe0f ("s390/pci: remove hotplug slot when releasing the device") the zpci_exit_slot() was moved from zpci_device_reserved() to zpci_release_device() with the intention of keeping the hotplug slot around until the device is actually removed.
Now zpci_release_device() is only called once all references are dropped. Since the zPCI subsystem only drops its reference once the device is in the reserved state it follows that zpci_release_device() must only deal with devices in the reserved state. Despite that it contains code to tear down from both configured and standby state. For the standby case this already includes the removal of the hotplug slot so would cause a double removal if a device was ever removed in either configured or standby state.
Instead of causing a potential double removal in a case that should never happen explicitly WARN_ON() if a device in non-reserved state is released and get rid of the dead code cases.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.4% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a, before c1489651071ab1be46d2af1da8adb15c9fc3c069 affected from 6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a, before 371bd905599d18da62d75e3974acbf6a41e315c7 affected from 6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a, before c4a585e952ca403a370586d3f16e8331a7564901
Other versions: unaffected
|
| Linux |
affected 6.9 unaffected before 6.9 unaffected from 6.11.11 up to and including 6.11.* unaffected from 6.12.2 up to and including 6.12.* unaffected 6.13 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-56699 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-56699
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-56699
trivy image --scanners vuln IMAGE | grep CVE-2024-56699
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/c1489651071ab1be46d2af1da8adb15c9fc3c069 git.kernel.org
- https://git.kernel.org/stable/c/371bd905599d18da62d75e3974acbf6a41e315c7 git.kernel.org
- https://git.kernel.org/stable/c/c4a585e952ca403a370586d3f16e8331a7564901 git.kernel.org
Source: the record CVE-2024-56699 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse