Skip to contentSkip to conversation

CVE-2023-54326: misc: pci_endpoint_test: Free IRQs before removing the device

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 30, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

misc: pci_endpoint_test: Free IRQs before removing the device

In pci_endpoint_test_remove(), freeing the IRQs after removing the device creates a small race window for IRQs to be received with the test device memory already released, causing the IRQ handler to access invalid memory, resulting in an oops.

Free the device IRQs before removing the device to avoid this issue.

The Linux kernel CVE team has assigned CVE-2023-54326 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.19 with commit e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 and fixed in 4.19.291 with commit fb7f8bdb886f2ebf35ee5edaf2bf5f02b063ddb7
	Issue introduced in 4.19 with commit e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 and fixed in 5.4.251 with commit dd2210379205fcd23a9d8869b0cef90e3770577c
	Issue introduced in 4.19 with commit e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 and fixed in 5.10.188 with commit cdf9a7e2cdc7a5464e3cc6d0b715ba2b1d215521
	Issue introduced in 4.19 with commit e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 and fixed in 5.15.121 with commit 14bdee38e96c7d37ca15e7bea50411eee25fe315
	Issue introduced in 4.19 with commit e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 and fixed in 6.1.40 with commit c2dba13bc0c62b79a3cbe4bfe5faa32231bf9b55
	Issue introduced in 4.19 with commit e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 and fixed in 6.4.5 with commit 38d12bcf4e2ce3d285eb29644a79a54f42040fab
	Issue introduced in 4.19 with commit e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 and fixed in 6.5 with commit f61b7634a3249d12b9daa36ffbdb9965b6f24c6c

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2023-54326

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/misc/pci_endpoint_test.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/fb7f8bdb886f2ebf35ee5edaf2bf5f02b063ddb7
	https://git.kernel.org/stable/c/dd2210379205fcd23a9d8869b0cef90e3770577c
	https://git.kernel.org/stable/c/cdf9a7e2cdc7a5464e3cc6d0b715ba2b1d215521
	https://git.kernel.org/stable/c/14bdee38e96c7d37ca15e7bea50411eee25fe315
	https://git.kernel.org/stable/c/c2dba13bc0c62b79a3cbe4bfe5faa32231bf9b55
	https://git.kernel.org/stable/c/38d12bcf4e2ce3d285eb29644a79a54f42040fab
	https://git.kernel.org/stable/c/f61b7634a3249d12b9daa36ffbdb9965b6f24c6c