Skip to contentSkip to conversation

CVE-2026-23013: net: octeon_ep_vf: fix free_irq dev_id mismatch in IRQ rollback

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jan 25

lore
Share & tools
lore
#0 lore raw

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

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

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

net: octeon_ep_vf: fix free_irq dev_id mismatch in IRQ rollback

octep_vf_request_irqs() requests MSI-X queue IRQs with dev_id set to ioq_vector. If request_irq() fails part-way, the rollback loop calls free_irq() with dev_id set to 'oct', which does not match the original dev_id and may leave the irqaction registered.

This can keep IRQ handlers alive while ioq_vector is later freed during unwind/teardown, leading to a use-after-free or crash when an interrupt fires.

Fix the error path to free IRQs with the same ioq_vector dev_id used during request_irq().

The Linux kernel CVE team has assigned CVE-2026-23013 to this issue.

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

	Issue introduced in 6.9 with commit 1cd3b407977c3ab1d2ddc26cb7113e7fb1509cd1 and fixed in 6.12.67 with commit aa05a8371ae4a452df623f7202c72409d3c50e40
	Issue introduced in 6.9 with commit 1cd3b407977c3ab1d2ddc26cb7113e7fb1509cd1 and fixed in 6.18.7 with commit aa4c066229b05fc3d3c5f42693d25b1828533b6e
	Issue introduced in 6.9 with commit 1cd3b407977c3ab1d2ddc26cb7113e7fb1509cd1 and fixed in 6.19-rc6 with commit f93fc5d12d69012788f82151bee55fce937e1432

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-2026-23013

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/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.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/aa05a8371ae4a452df623f7202c72409d3c50e40
	https://git.kernel.org/stable/c/aa4c066229b05fc3d3c5f42693d25b1828533b6e
	https://git.kernel.org/stable/c/f93fc5d12d69012788f82151bee55fce937e1432