CVE-2025-23140
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
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]

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 and 1 more
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.*
CVE List
linux linux_kernelfrom 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.3NVD
debian debian_linux11.0NVD

What each source says

CVE List

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]

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: misc: pci_endpoint_test: evitar el problema de las interrupciones restantes después del error request_irq Después de que devm_request_irq() falla con un error en pci_endpoint_test_request_irq(), se llama a pci_endpoint_test_free_irq_vectors() asumiendo que se han liberado todas las IRQ. Sin embargo, algunas IRQ solicitadas permanecen sin liberar, por lo que aún quedan entradas /proc/irq/* restantes y esto genera un WARN() con el siguiente mensaje: remove_proc_entry: eliminando el directorio no vacío 'irq/30', filtrando al menos 'pci-endpoint-test.0' ADVERTENCIA: CPU: 0 PID: 202 en fs/proc/generic.c:719 remove_proc_entry +0x190/0x19c Para resolver este problema, establezca el número de IRQ restantes en test->num_irqs y libere las IRQ con anticipación llamando a pci_endpoint_test_release_irq(). [kwilczynski: registro de confirmaciones]

References

https://git.kernel.org/stable/c/705be96504779e4a333ea042b4779ea941f0ace9patch
https://git.kernel.org/stable/c/e516e187bf32d8decc7c7d0025ae4857cad13c0epatch
https://git.kernel.org/stable/c/54c9f299ad7d7c4be5d271ed12d01a59e95b8907patch
https://git.kernel.org/stable/c/9d5118b107b1a2353ed0dff24404aee2e6b7ca0apatch
https://git.kernel.org/stable/c/5a4b7181213268c9b07bef8800905528435db44apatch
https://git.kernel.org/stable/c/0557e70e2aeba8647bf5a950820b67cfb86533dbpatch
https://git.kernel.org/stable/c/770407f6173f4f39f4e2c1b54422b79ce6c98bdbpatch
https://git.kernel.org/stable/c/f6cb7828c8e17520d4f5afb416515d3fae1af9a9patch
https://lists.debian.org/debian-lts-announce/2025/05/msg00045.htmlmailing-list, third-party-advisory
https://lists.debian.org/debian-lts-announce/2025/05/msg00030.htmlmailing-list, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2025-23140 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-23140 changed 2026-06-17Public domain