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-05-15T11:53:15.407848041Z
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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.19.0
Fixed
5.4.293
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.237
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.181
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.135
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.88
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.25
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.14.3

Database specific

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