CVE-2025-23140

published 1 May 2025 · updated 11 May 2026

misc: pci_endpoint_test: Avoid issue of interrupts remaining after request_irq error

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0557e70e2aeba8647bf5a950820b67cfb86533db, Kernel 54c9f299ad7d7c4be5d271ed12d01a59e95b8907, Kernel 5a4b7181213268c9b07bef8800905528435db44a and 5 more.

In the Linux kernel, the following vulnerability has been resolved: misc: pci_endpoint_test: Avoid issue of interrupts remaining after request_irq error After devm_request_irq() fails with error in pci_endpoint_test_request_irq(), the pci_endpoint_test_free_irq_vectors() is called assuming that all IRQs have been released. However, some requested IRQs remain unreleased, so there are still /proc/irq/* entries remaining, and this results in WARN() with the following message: remove_proc_entry: removing non-empty directory 'irq/30', leaking at least 'pci-endpoint-test.0' WARNING: CPU: 0 PID: 202 at fs/proc/generic.c:719 remove_proc_entry +0x190/0x19c To solve this issue, set the number of remaining IRQs to test->num_irqs, and release IRQs in advance by calling pci_endpoint_test_release_irq(). [kwilczynski: commit log]

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=4.19, >=e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 <0557e70e2aeba8647bf5a950820b67cfb86533db, >=e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 <54c9f299ad7d7c4be5d271ed12d01a59e95b8907, >=e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 <5a4b7181213268c9b07bef8800905528435db44a, >=e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 <705be96504779e4a333ea042b4779ea941f0ace9, >=e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 <770407f6173f4f39f4e2c1b54422b79ce6c98bdb, >=e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 <9d5118b107b1a2353ed0dff24404aee2e6b7ca0a, >=e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 <e516e187bf32d8decc7c7d0025ae4857cad13c0e, >=e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 <f6cb7828c8e17520d4f5afb416515d3fae1af9a90557e70e2aeba8647bf5a950820b67cfb86533db, 54c9f299ad7d7c4be5d271ed12d01a59e95b8907, 5a4b7181213268c9b07bef8800905528435db44a, 705be96504779e4a333ea042b4779ea941f0ace9, 770407f6173f4f39f4e2c1b54422b79ce6c98bdb, 9d5118b107b1a2353ed0dff24404aee2e6b7ca0a, e516e187bf32d8decc7c7d0025ae4857cad13c0e, f6cb7828c8e17520d4f5afb416515d3fae1af9a9

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-23140 severity on Zeptric[![CVE-2025-23140](https://zeptric.io/badge/cve/CVE-2025-23140.svg)](https://zeptric.io/cve/CVE-2025-23140)