CVE-2024-56699

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-56699
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56699.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-56699
Downstream
Related
Published
2024-12-28T09:46:22Z
Modified
2025-10-15T20:10:22.514540Z
Summary
s390/pci: Fix potential double remove of hotplug slot
Details

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 WARN_ON() if a device in non-reserved state is released and get rid of the dead code cases.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a
Fixed
c1489651071ab1be46d2af1da8adb15c9fc3c069
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a
Fixed
371bd905599d18da62d75e3974acbf6a41e315c7
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a
Fixed
c4a585e952ca403a370586d3f16e8331a7564901

Affected versions

v6.*

v6.10
v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.11
v6.11-rc1
v6.11-rc2
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
v6.11-rc7
v6.11.1
v6.11.10
v6.11.2
v6.11.3
v6.11.4
v6.11.5
v6.11.6
v6.11.7
v6.11.8
v6.11.9
v6.12
v6.12-rc1
v6.12-rc2
v6.12-rc3
v6.12-rc4
v6.12-rc5
v6.12-rc6
v6.12-rc7
v6.12.1
v6.8
v6.8-rc4
v6.8-rc5
v6.8-rc6
v6.8-rc7
v6.9
v6.9-rc1
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.9.0
Fixed
6.11.11
Type
ECOSYSTEM
Events
Introduced
6.12.0
Fixed
6.12.2