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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **Published:** 2025-05-01T12:55:30.885Z
- **Modified:** 2026-06-17T08:52:13.723Z

## Who should check

- Anyone running Linux \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< 705be96504779e4a333ea042b4779ea941f0ace9; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< e516e187bf32d8decc7c7d0025ae4857cad13c0e; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< 54c9f299ad7d7c4be5d271ed12d01a59e95b8907; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< 9d5118b107b1a2353ed0dff24404aee2e6b7ca0a; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< 5a4b7181213268c9b07bef8800905528435db44a; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< 0557e70e2aeba8647bf5a950820b67cfb86533db; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< 770407f6173f4f39f4e2c1b54422b79ce6c98bdb; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< f6cb7828c8e17520d4f5afb416515d3fae1af9a9
- Anyone running Linux 4.19

## 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\]

## Affected and fixed versions

- Linux: \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< 705be96504779e4a333ea042b4779ea941f0ace9; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< e516e187bf32d8decc7c7d0025ae4857cad13c0e; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< 54c9f299ad7d7c4be5d271ed12d01a59e95b8907; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< 9d5118b107b1a2353ed0dff24404aee2e6b7ca0a; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< 5a4b7181213268c9b07bef8800905528435db44a; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< 0557e70e2aeba8647bf5a950820b67cfb86533db; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< 770407f6173f4f39f4e2c1b54422b79ce6c98bdb; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< f6cb7828c8e17520d4f5afb416515d3fae1af9a9 (cvelist)
- Linux: 4.19 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-23140. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-23140.md
Affected: Linux >= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, < 705be96504779e4a333ea042b4779ea941f0ace9; >= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, < e516e187bf32d8decc7c7d0025ae4857cad13c0e; >= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, < 54c9f299ad7d7c4be5d271ed12d01a59e95b8907; >= e03327122e2c8e6ae4565ef…
Fixed in: Linux 705be96504779e4a333ea042b4779ea941f0ace9, Linux 54c9f299ad7d7c4be5d271ed12d01a59e95b8907, Linux 9d5118b107b1a2353ed0dff24404aee2e6b7ca0a, Linux 5a4b7181213268c9b07bef8800905528435db44a, Linux 0557e70e2aeba8647bf5a950820b67cfb86533db, Linux 770407f6173f4f39f4e2c1b54422b79ce6c98bdb

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-23140 being exploited?

There is no confirmed exploitation: CVE-2025-23140 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-23140?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-23140?

Linux \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< 705be96504779e4a333ea042b4779ea941f0ace9; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< e516e187bf32d8decc7c7d0025ae4857cad13c0e; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< 54c9f299ad7d7c4be5d271ed12d01a59e95b8907; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< 9d5118b107b1a2353ed0dff24404aee2e6b7ca0a; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< 5a4b7181213268c9b07bef8800905528435db44a; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< 0557e70e2aeba8647bf5a950820b67cfb86533db; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< 770407f6173f4f39f4e2c1b54422b79ce6c98bdb; \>= e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, \< f6cb7828c8e17520d4f5afb416515d3fae1af9a9; Linux 4.19.

### Is there a fix for CVE-2025-23140?

Yes. Fixed in Linux 705be96504779e4a333ea042b4779ea941f0ace9, Linux 54c9f299ad7d7c4be5d271ed12d01a59e95b8907, Linux 9d5118b107b1a2353ed0dff24404aee2e6b7ca0a, Linux 5a4b7181213268c9b07bef8800905528435db44a, Linux 0557e70e2aeba8647bf5a950820b67cfb86533db, Linux 770407f6173f4f39f4e2c1b54422b79ce6c98bdb. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-23140?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-23140>

HTML: <https://flawdb.com/CVE-2025-23140> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-23140>
