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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2024-12-28T09:46:22.034Z
- **Modified:** 2026-06-17T08:12:46.543Z

## Who should check

- Anyone running Linux \>= 6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a, \< c1489651071ab1be46d2af1da8adb15c9fc3c069; \>= 6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a, \< 371bd905599d18da62d75e3974acbf6a41e315c7; \>= 6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a, \< c4a585e952ca403a370586d3f16e8331a7564901
- Anyone running Linux 6.9

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

## Affected and fixed versions

- Linux: \>= 6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a, \< c1489651071ab1be46d2af1da8adb15c9fc3c069; \>= 6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a, \< 371bd905599d18da62d75e3974acbf6a41e315c7; \>= 6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a, \< c4a585e952ca403a370586d3f16e8331a7564901 (cvelist)
- Linux: 6.9 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-56699. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56699.md
Affected: Linux >= 6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a, < c1489651071ab1be46d2af1da8adb15c9fc3c069; >= 6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a, < 371bd905599d18da62d75e3974acbf6a41e315c7; >= 6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a, < c4a585e952ca403a370586d3f16e8331a7564901; Linux 6.9
Fixed in: Linux 371bd905599d18da62d75e3974acbf6a41e315c7

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-56699 being exploited?

There is no confirmed exploitation: CVE-2024-56699 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-56699?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-56699?

Linux \>= 6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a, \< c1489651071ab1be46d2af1da8adb15c9fc3c069; \>= 6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a, \< 371bd905599d18da62d75e3974acbf6a41e315c7; \>= 6ee600bfbe0f818ffb7748d99e9b0c89d0d9f02a, \< c4a585e952ca403a370586d3f16e8331a7564901; Linux 6.9.

### Is there a fix for CVE-2024-56699?

Yes. Fixed in Linux 371bd905599d18da62d75e3974acbf6a41e315c7. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-56699?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-56699>

HTML: <https://flawdb.com/CVE-2024-56699> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-56699>
