CVE-2025-23140

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

No CVSS score yet EPSS 0.23%

Published 1 May 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2025-23140

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-23140 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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]

Exploitation

EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.3% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, before 705be96504779e4a333ea042b4779ea941f0ace9
affected from e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, before e516e187bf32d8decc7c7d0025ae4857cad13c0e
affected from e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, before 54c9f299ad7d7c4be5d271ed12d01a59e95b8907
affected from e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, before 9d5118b107b1a2353ed0dff24404aee2e6b7ca0a
affected from e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, before 5a4b7181213268c9b07bef8800905528435db44a
affected from e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, before 0557e70e2aeba8647bf5a950820b67cfb86533db
affected from e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, before 770407f6173f4f39f4e2c1b54422b79ce6c98bdb
affected from e03327122e2c8e6ae4565ef5b3d3cbe4364546a1, before f6cb7828c8e17520d4f5afb416515d3fae1af9a9
Other versions: unaffected
Linux
affected 4.19
unaffected before 4.19
unaffected from 5.4.293 up to and including 5.4.*
unaffected from 5.10.237 up to and including 5.10.*
unaffected from 5.15.181 up to and including 5.15.*
unaffected from 6.1.135 up to and including 6.1.*
unaffected from 6.6.88 up to and including 6.6.*
unaffected from 6.12.25 up to and including 6.12.*
unaffected from 6.14.3 up to and including 6.14.*
unaffected 6.15 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-23140 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-23140

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-23140
trivy image --scanners vuln IMAGE | grep CVE-2025-23140

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-23140 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.