CVE-2025-23140

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

published May 1, 2025

CVSS
—
EPSS
0%
Percentile
12.2
In the wild
Unconfirmed
What it is

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]

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00223 · 12.2th percentile
Published
2025-05-01T12:55Z
EPSS history
Timeline
  • 01 MAY 12:55Z
    misc: pci_endpoint_test: Avoid issue of interrupts remaining after request_irq error
    cvelistv5