CVE-2025-23140

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

State
Published
Severity
Not scored
Published
May 1, 2025
Updated
May 11, 2026
Reserved
Jan 11, 2025

Read the record on cve.org

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]

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 to before 705be96504779e4a333ea042b4779ea941f0ace9Affected
  • e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 to before e516e187bf32d8decc7c7d0025ae4857cad13c0eAffected
  • e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 to before 54c9f299ad7d7c4be5d271ed12d01a59e95b8907Affected
  • e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 to before 9d5118b107b1a2353ed0dff24404aee2e6b7ca0aAffected
  • e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 to before 5a4b7181213268c9b07bef8800905528435db44aAffected
  • e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 to before 0557e70e2aeba8647bf5a950820b67cfb86533dbAffected
  • e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 to before 770407f6173f4f39f4e2c1b54422b79ce6c98bdbAffected
  • e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 to before f6cb7828c8e17520d4f5afb416515d3fae1af9a9Affected
LinuxLinux
  • 4.19Affected
  • before 4.19Not affected
  • 5.4.293 through 5.4.*Not affected
  • 5.10.237 through 5.10.*Not affected
  • 5.15.181 through 5.15.*Not affected
  • 6.1.135 through 6.1.*Not affected
  • 6.6.88 through 6.6.*Not affected
  • 6.12.25 through 6.12.*Not affected
  • 6.14.3 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.