CVE-2025-23140

Source
https://cve.org/CVERecord?id=CVE-2025-23140
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-23140.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-23140
Downstream
Related
Published
2025-05-01T12:55:30.885Z
Modified
2026-03-11T07:49:20.509791471Z
Summary
misc: pci_endpoint_test: Avoid issue of interrupts remaining after request_irq error
Details

In the Linux kernel, the following vulnerability has been resolved:

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

After devmrequestirq() fails with error in pciendpointtestrequestirq(), the pciendpointtestfreeirq_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:

removeprocentry: removing non-empty directory 'irq/30', leaking at least 'pci-endpoint-test.0' WARNING: CPU: 0 PID: 202 at fs/proc/generic.c:719 removeprocentry +0x190/0x19c

To solve this issue, set the number of remaining IRQs to test->numirqs, and release IRQs in advance by calling pciendpointtestrelease_irq().

[kwilczynski: commit log]

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/23xxx/CVE-2025-23140.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
e03327122e2c8e6ae4565ef5b3d3cbe4364546a1
Fixed
705be96504779e4a333ea042b4779ea941f0ace9
Fixed
e516e187bf32d8decc7c7d0025ae4857cad13c0e
Fixed
54c9f299ad7d7c4be5d271ed12d01a59e95b8907
Fixed
9d5118b107b1a2353ed0dff24404aee2e6b7ca0a
Fixed
5a4b7181213268c9b07bef8800905528435db44a
Fixed
0557e70e2aeba8647bf5a950820b67cfb86533db
Fixed
770407f6173f4f39f4e2c1b54422b79ce6c98bdb
Fixed
f6cb7828c8e17520d4f5afb416515d3fae1af9a9

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-23140.json"