CVE-2024-56561
Linux Kernel vulnerability analysis and mitigation

Overview

A use-after-free vulnerability was discovered in the Linux kernel's PCI endpoint controller implementation (CVE-2024-56561). The issue exists in the pci_epc_destroy() function where the PCI domain ID release is incorrectly handled. The vulnerability affects Linux kernel versions from 6.11.4 up to (excluding) 6.12.4 (NVD, Debian Tracker).

Technical details

The vulnerability stems from two specific issues in the pci_epc_destroy() function: First, epc->dev is passed to pci_bus_release_domain_nr() after being freed by device_unregister(), leading to a use-after-free condition. Second, the domain ID corresponds to the EPC device parent, making the passing of epc->dev incorrect. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability could potentially lead to system compromise through a use-after-free condition in the kernel's PCI endpoint controller subsystem. Given the CVSS score and vector string, successful exploitation could result in high impacts to confidentiality, integrity, and availability of the affected system (NVD).

Mitigation and workarounds

The vulnerability has been fixed by modifying the pci_epc_destroy() function to pass epc->dev.parent to pci_bus_release_domain_nr() and executing this before device_unregister(). The fix has been implemented in the Linux kernel through patches (Kernel Patch).

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-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • kernel-cross-headers
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-core
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-modules-core
NoYesJan 14, 2026

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