misc: pci_endpoint_test: Avoid issue of interrupts remaining after request_irq error (Linux Linux)

CVE-2025-23140
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 13 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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]

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 < 705be96504779e4a333ea042b4779ea941f0ace9 ; affected e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 < e516e187bf32d8decc7c7d0025ae4857cad13c0e ; affected e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 < 54c9f299ad7d7c4be5d271ed12d01a59e95b8907 ; affected e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 < 9d5118b107b1a2353ed0dff24404aee2e6b7ca0a ; affected e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 < 5a4b7181213268c9b07bef8800905528435db44a ; affected e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 < 0557e70e2aeba8647bf5a950820b67cfb86533db
Linux · Linuxaffected 4.19 ; unaffected 0 < 4.19 ; unaffected 5.4.293 ≤ 5.4.* ; unaffected 5.10.237 ≤ 5.10.* ; unaffected 5.15.181 ≤ 5.15.* ; unaffected 6.1.135 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD