CVE-2024-56699
Severity CVSS v4.0:
Pending analysis
Type:
CWE-415
Double Free
Publication date:
28/12/2024
Last modified:
26/09/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
s390/pci: Fix potential double remove of hotplug slot<br />
<br />
In commit 6ee600bfbe0f ("s390/pci: remove hotplug slot when releasing the<br />
device") the zpci_exit_slot() was moved from zpci_device_reserved() to<br />
zpci_release_device() with the intention of keeping the hotplug slot<br />
around until the device is actually removed.<br />
<br />
Now zpci_release_device() is only called once all references are<br />
dropped. Since the zPCI subsystem only drops its reference once the<br />
device is in the reserved state it follows that zpci_release_device()<br />
must only deal with devices in the reserved state. Despite that it<br />
contains code to tear down from both configured and standby state. For<br />
the standby case this already includes the removal of the hotplug slot<br />
so would cause a double removal if a device was ever removed in<br />
either configured or standby state.<br />
<br />
Instead of causing a potential double removal in a case that should<br />
never happen explicitly WARN_ON() if a device in non-reserved state is<br />
released and get rid of the dead code cases.
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.9 (including) | 6.11.11 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.12 (including) | 6.12.2 (excluding) |
To consult the complete list of CPE names with products and versions, see this page



