# CVE-2025-23140: misc: pci_endpoint_test: Avoid issue of interrupts remaining after request_irq error

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2025-05-01T12:55:30.885Z
- Modified: 2026-06-17T08:52:13.723Z
- Assigned by: Linux

## Description

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]

(As written by CVE List.)

## Affected

- Linux Linux: from e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 before 705be96504779e4a333ea042b4779ea941f0ace9; from e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 before e516e187bf32d8decc7c7d0025ae4857cad13c0e; from e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 before 54c9f299ad7d7c4be5d271ed12d01a59e95b8907; from e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 before 9d5118b107b1a2353ed0dff24404aee2e6b7ca0a; from e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 before 5a4b7181213268c9b07bef8800905528435db44a; from e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 before 0557e70e2aeba8647bf5a950820b67cfb86533db; from e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 before 770407f6173f4f39f4e2c1b54422b79ce6c98bdb; from e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 before f6cb7828c8e17520d4f5afb416515d3fae1af9a9; 4.19 (not affected: before 4.19; from 5.4.293 up to 5.4.*; from 5.10.237 up to 5.10.*; from 5.15.181 up to 5.15.*; from 6.1.135 up to 6.1.*; from 6.6.88 up to 6.6.*; from 6.12.25 up to 6.12.*; from 6.14.3 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 4.19 before 5.4.293; from 5.5 before 5.10.237; from 5.11 before 5.15.181; from 5.16 before 6.1.135; from 6.2 before 6.6.88; from 6.7 before 6.12.25; from 6.13 before 6.14.3
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/705be96504779e4a333ea042b4779ea941f0ace9> (patch)
- <https://git.kernel.org/stable/c/e516e187bf32d8decc7c7d0025ae4857cad13c0e> (patch)
- <https://git.kernel.org/stable/c/54c9f299ad7d7c4be5d271ed12d01a59e95b8907> (patch)
- <https://git.kernel.org/stable/c/9d5118b107b1a2353ed0dff24404aee2e6b7ca0a> (patch)
- <https://git.kernel.org/stable/c/5a4b7181213268c9b07bef8800905528435db44a> (patch)
- <https://git.kernel.org/stable/c/0557e70e2aeba8647bf5a950820b67cfb86533db> (patch)
- <https://git.kernel.org/stable/c/770407f6173f4f39f4e2c1b54422b79ce6c98bdb> (patch)
- <https://git.kernel.org/stable/c/f6cb7828c8e17520d4f5afb416515d3fae1af9a9> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2025-23140](https://www.cve.org/CVERecord?id=CVE-2025-23140), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-23140](https://nvd.nist.gov/vuln/detail/CVE-2025-23140), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-23140 · Whole record: https://cve.day/CVE-2025-23140.json · Rebuilt by cve.day 2026-11-25T22:58:57.256Z
