# CVE-2024-56699: s390/pci: Fix potential double remove of hotplug slot

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-12-28T09:46:22.034Z
- Modified: 2026-06-17T08:12:46.543Z
- Weaknesses: CWE-415
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a before c1489651071ab1be46d2af1da8adb15c9fc3c069; from 6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a before 371bd905599d18da62d75e3974acbf6a41e315c7; from 6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a before c4a585e952ca403a370586d3f16e8331a7564901; 6.9 (not affected: before 6.9; from 6.11.11 up to 6.11.*; from 6.12.2 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 6.9 before 6.11.11; from 6.12 before 6.12.2

## References

- <https://git.kernel.org/stable/c/c1489651071ab1be46d2af1da8adb15c9fc3c069> (patch)
- <https://git.kernel.org/stable/c/371bd905599d18da62d75e3974acbf6a41e315c7> (patch)
- <https://git.kernel.org/stable/c/c4a585e952ca403a370586d3f16e8331a7564901> (patch)

## Sources

- CVE List: [CVE-2024-56699](https://www.cve.org/CVERecord?id=CVE-2024-56699), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-56699](https://nvd.nist.gov/vuln/detail/CVE-2024-56699), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-56699 · Whole record: https://cve.day/CVE-2024-56699.json · Rebuilt by cve.day 2026-11-25T22:58:50.538Z
