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

CVE Details

Basic Information

Title misc: pci_endpoint_test: Avoid issue of interrupts remaining after request_irq error
Type cve
Published 2025-05-01T12:55:30.885Z
Modified 2025-05-26T05:19:18.948Z

Product Information

Vendor Linux
Product Linux
Version e03327122e2c8e6ae4565ef5b3d3cbe4364546a1

CVSS Information

Base Score 0.0 ()

Affected Products

  • Linux Linux e03327122e2c8e6ae4565ef5b3d3cbe4364546a1
  • Linux Linux e03327122e2c8e6ae4565ef5b3d3cbe4364546a1
  • Linux Linux e03327122e2c8e6ae4565ef5b3d3cbe4364546a1
  • Linux Linux e03327122e2c8e6ae4565ef5b3d3cbe4364546a1
  • Linux Linux e03327122e2c8e6ae4565ef5b3d3cbe4364546a1
  • Linux Linux e03327122e2c8e6ae4565ef5b3d3cbe4364546a1
  • Linux Linux e03327122e2c8e6ae4565ef5b3d3cbe4364546a1
  • Linux Linux e03327122e2c8e6ae4565ef5b3d3cbe4364546a1
  • Linux Linux 4.19

Additional Information

Source Linux

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]

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.