misc: pci_endpoint_test: Avoid issue of interrupts remaining after request_irq error
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]
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.237, 5.15.181, 5.4.293, 6.1.135, 6.12.25, 6.14.3, 6.6.88
- CVEs
- CVE-2025-23140
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 20:29 UTC · Revision 1
Source evidence
misc: pci_endpoint_test: Avoid issue of interrupts remaining after request_irq error
core-osv · Original sourcePublished 1 May 2025, 12:55 UTC
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]
osv:CVE-2025-23140
Kernel
Fixed versions: 5.4.293, 5.10.237, 5.15.181, 6.1.135, 6.6.88, 6.12.25, 6.14.3
Complete source record
{
"id": "c4407b2497c62f6528065d482f07bc18d5d63d5089cb43b6ce8cb424a60348d1",
"url": "https://osv.dev/vulnerability/CVE-2025-23140",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "misc: pci_endpoint_test: Avoid issue of interrupts remaining after request_irq error",
"summary": "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]",
"evidence": "osv:CVE-2025-23140",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.4.293",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.237",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.181",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.135",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.88",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.25",
"evidence": "/affected/1/ranges"
},
{
"value": "6.14.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2025-23140",
"aliases": [
"CVE-2025-23140"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "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/cve-osv-conversion/osv-output/CVE-2025-23140.json"
}
},
{
"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"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-23140.json"
}
}
],
"modified": "2026-10-28T02:30:23.648715035Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0557e70e2aeba8647bf5a950820b67cfb86533db",
"https://git.kernel.org/stable/c/54c9f299ad7d7c4be5d271ed12d01a59e95b8907",
"https://git.kernel.org/stable/c/5a4b7181213268c9b07bef8800905528435db44a",
"https://git.kernel.org/stable/c/705be96504779e4a333ea042b4779ea941f0ace9",
"https://git.kernel.org/stable/c/770407f6173f4f39f4e2c1b54422b79ce6c98bdb",
"https://git.kernel.org/stable/c/9d5118b107b1a2353ed0dff24404aee2e6b7ca0a",
"https://git.kernel.org/stable/c/e516e187bf32d8decc7c7d0025ae4857cad13c0e",
"https://git.kernel.org/stable/c/f6cb7828c8e17520d4f5afb416515d3fae1af9a9",
"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html",
"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/23xxx/CVE-2025-23140.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-23140",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/23xxx/CVE-2025-23140.json"
}
},
"related_cves": [
{
"value": "CVE-2025-23140",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 489861,
"published_at": "2025-05-01T12:55:30.885+00:00"
}