# CVE-2025-23140: misc: pci\_endpoint\_test: Avoid issue of interrupts remaining after request\_irq error

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-05-01 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2025-23140, DEBIAN-CVE-2025-23140
- Record: https://cvemate.com/vulnerability/CVE-2025-23140 · JSON: https://cvemate.com/vulnerability/CVE-2025-23140/json

## Description

```text
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]
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.227%, percentile 14.306%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 139)

- debian linux (Debian): \< 6.1.135-1 \| \< 6.12.25-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-144.157 \| \< 6.8.0-100.100
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1088.95 \| \< 6.8.0-1046.49
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1088.95~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1046.49~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1088.95+fips1 \| \< 6.8.0-1046.49+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1094.103 \| \< 6.8.0-1046.52
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1094.103~20.04.1

## References (first 20 of 44)

- <https://git.kernel.org/stable/c/705be96504779e4a333ea042b4779ea941f0ace9>
- <https://git.kernel.org/stable/c/e516e187bf32d8decc7c7d0025ae4857cad13c0e>
- <https://git.kernel.org/stable/c/54c9f299ad7d7c4be5d271ed12d01a59e95b8907>
- <https://git.kernel.org/stable/c/9d5118b107b1a2353ed0dff24404aee2e6b7ca0a>
- <https://git.kernel.org/stable/c/5a4b7181213268c9b07bef8800905528435db44a>
- <https://git.kernel.org/stable/c/0557e70e2aeba8647bf5a950820b67cfb86533db>
- <https://git.kernel.org/stable/c/770407f6173f4f39f4e2c1b54422b79ce6c98bdb>
- <https://git.kernel.org/stable/c/f6cb7828c8e17520d4f5afb416515d3fae1af9a9>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://ubuntu.com/security/CVE-2025-23140>
- <https://www.cve.org/CVERecord?id=CVE-2025-23140>
- <https://git.kernel.org/linus/f6cb7828c8e17520d4f5afb416515d3fae1af9a9>
- <https://ubuntu.com/security/notices/USN-7594-1>
- <https://ubuntu.com/security/notices/USN-7594-2>
- <https://ubuntu.com/security/notices/USN-7594-3>
- <https://ubuntu.com/security/notices/USN-7654-1>
- <https://ubuntu.com/security/notices/USN-7654-2>
- <https://ubuntu.com/security/notices/USN-7654-3>
- <https://ubuntu.com/security/notices/USN-7655-1>

---

Data as of 2026-12-05T04:44:28.115Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
