Skip to contentSkip to conversation

CVE-2026-98932: EDAC/altera: Fix use-after-free in error paths

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 23

lore
Share & tools
lore
#0 lore raw

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

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

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

EDAC/altera: Fix use-after-free in error paths

In both altr_edac_a10_device_add() and altr_portb_setup(), the error path freed the dci structure before releasing the devres group. Since the managed single and double bit IRQ handlers use altdev(dci->pvt_info) as their data, an IRQ firing between freeing dci and unregistering the IRQs could dereference the freed memory.

Release the devres group first so the managed IRQs are unregistered before the dci structure is freed.

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

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

	Issue introduced in 4.7 with commit 588cb03ea208b303e6dee7e916f329043fd0fc26 and fixed in 6.18.56 with commit 865f3bdebbc9b34012358c377c9b15154f95f33b
	Issue introduced in 4.7 with commit 588cb03ea208b303e6dee7e916f329043fd0fc26 and fixed in 7.2.10 with commit 87364b19b3fe4e6dbf88d6acf6db4ec87e7dfbba
	Issue introduced in 4.7 with commit 588cb03ea208b303e6dee7e916f329043fd0fc26 and fixed in 7.3 with commit eef3b67f9c6782127163b631c9043011a68016e2

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-98932

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/edac/altera_edac.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/865f3bdebbc9b34012358c377c9b15154f95f33b
	https://git.kernel.org/stable/c/87364b19b3fe4e6dbf88d6acf6db4ec87e7dfbba
	https://git.kernel.org/stable/c/eef3b67f9c6782127163b631c9043011a68016e2