CVE-2024-56699
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-56699 addresses a potential double removal vulnerability in the Linux kernel's s390/pci subsystem. The issue was discovered in the hotplug slot removal functionality, specifically in the zpcireleasedevice() function. The vulnerability was introduced in commit 6ee600bfbe0f when the zpciexitslot() function was moved from zpcidevicereserved() to zpcireleasedevice() (Kernel Commit).

Technical details

The vulnerability stems from the zpcireleasedevice() function containing code to tear down both configured and standby states, despite only being called when all references are dropped and the device is in a reserved state. For the standby case, this includes the removal of the hotplug slot, which could cause a double removal if a device was removed in either configured or standby state. The fix implements a WARN_ON() check for devices in non-reserved states and removes the redundant code cases (Kernel Commit).

Impact

If exploited, this vulnerability could lead to system instability or potential crashes when removing PCI devices on s390 systems, particularly during hotplug operations. The issue specifically affects the zPCI subsystem's device removal process (NVD).

Mitigation and workarounds

The issue has been fixed in the Linux kernel through a patch that adds explicit state checking and removes redundant code paths. Users should update their kernel to a version containing the fix. The patch has been reviewed by Matthew Rosato and Gerd Bayer, and tested by Gerd Bayer (Kernel Commit).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40258HIGH7
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-devel-matched
NoNoDec 04, 2025
CVE-2025-40259MEDIUM6.2
  • Linux KernelLinux Kernel
  • kernel-64k-devel
NoNoDec 04, 2025
CVE-2025-40264MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-kvm
NoNoDec 04, 2025
CVE-2025-40254MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-modules-partner
NoNoDec 04, 2025
CVE-2025-40253MEDIUM5.5
  • Linux KernelLinux Kernel
  • python3-perf
NoNoDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management