CVE-2025-23140

5.5 MEDIUM

📋 TL;DR

This CVE describes a resource leak vulnerability in the Linux kernel's PCI endpoint test driver. When request_irq() fails during IRQ allocation, the cleanup code doesn't properly release all requested IRQs, leaving orphaned /proc/irq entries that cause kernel warnings. This affects systems using the pci_endpoint_test driver, primarily in development/testing environments.

💻 Affected Systems

Products:
  • Linux kernel
Versions: Specific affected kernel versions not specified in CVE, but patches exist in stable branches
Operating Systems: Linux distributions using vulnerable kernel versions
Default Config Vulnerable: ✅ No
Notes: Only affects systems with pci_endpoint_test driver loaded/used. This is typically a test driver not used in production by default.

📦 What is this software?

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

⚠️ Risk & Real-World Impact

🔴

Worst Case

Kernel panic or system instability due to resource exhaustion from repeated IRQ leaks, potentially leading to denial of service.

🟠

Likely Case

Kernel warning messages in system logs and potential minor performance degradation from resource leaks.

🟢

If Mitigated

Only kernel warning messages visible in logs with no functional impact.

🌐 Internet-Facing: LOW - This is a local driver issue requiring access to the PCI endpoint test functionality.
🏢 Internal Only: MEDIUM - Systems using the pci_endpoint_test driver in development/testing could experience instability.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: NO
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires ability to trigger the pci_endpoint_test driver's IRQ allocation failure path, which typically requires privileged access or specific hardware conditions.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Patches available in Linux kernel stable branches (commits referenced in CVE)

Vendor Advisory: https://git.kernel.org/stable/c/0557e70e2aeba8647bf5a950820b67cfb86533db

Restart Required: Yes

Instructions:

1. Update Linux kernel to version containing fix commits. 2. Check with your distribution for backported patches. 3. Reboot system after kernel update.

🔧 Temporary Workarounds

Disable pci_endpoint_test driver

linux

Prevent loading of the vulnerable driver module

echo 'blacklist pci_endpoint_test' >> /etc/modprobe.d/blacklist.conf
rmmod pci_endpoint_test

🧯 If You Can't Patch

  • Ensure pci_endpoint_test driver is not loaded in production systems
  • Monitor kernel logs for WARN messages about remove_proc_entry and IRQ directory leaks

🔍 How to Verify

Check if Vulnerable:

Check if pci_endpoint_test module is loaded: lsmod | grep pci_endpoint_test

Check Version:

uname -r

Verify Fix Applied:

Check kernel version contains fix commits or monitor logs for absence of WARN messages about IRQ directory leaks

📡 Detection & Monitoring

Log Indicators:

  • Kernel WARN messages: 'remove_proc_entry: removing non-empty directory 'irq/[number]'', 'WARNING: CPU: [number] PID: [number] at fs/proc/generic.c:719'

Network Indicators:

  • None - this is a local kernel issue

SIEM Query:

source="kernel" AND ("remove_proc_entry" OR "irq/[0-9]+" OR "fs/proc/generic.c:719")

🔗 References

📤 Share & Export