CVE-2024-56699: s390/pci: Fix potential double remove of hotplug slot
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 zpciexitslot() was moved from zpcidevicereserved() to zpcireleasedevice() with the intention of keeping the hotplug slot around until the device is actually removed.
Now zpcireleasedevice() 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 zpcireleasedevice() 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 WARNON() if a device in non-reserved state is released and get rid of the dead code cases.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-56699?
The severity of CVE-2024-56699 is categorized as medium due to its impact on the Linux kernel's handling of hotplug slots.
How do I fix CVE-2024-56699?
To fix CVE-2024-56699, ensure you apply the latest patches for the Linux kernel as provided by your distribution.
What systems are affected by CVE-2024-56699?
CVE-2024-56699 affects the Linux kernel, specifically the s390 architecture.
What type of vulnerability is CVE-2024-56699?
CVE-2024-56699 is a vulnerability related to the improper management of hotplug slots in the Linux kernel.
Is there a workaround for CVE-2024-56699?
Currently, the recommended action is to update the kernel, as no specific workaround is provided for CVE-2024-56699.