Skip to contentSkip to conversation

CVE-2026-98435: EDAC/altera: Use parent device for devres in altr_portb_setup()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

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: Use parent device for devres in altr_portb_setup()

Anchor the devres group and the devm-managed IRQ requests in altr_portb_setup() to the actual parent device (device->edac->dev) instead of the embedded struct device inside the copied per-port altr_edac_device_dev.

This keeps devres_open_group(), devm_request_irq(), devres_remove_group() and devres_release_group() all referring to the same long-lived device so the group and the resources allocated inside it are torn down together.

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

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

	Issue introduced in 4.9 with commit 911049845d7096c27304930ff478cbf3f2623ba3 and fixed in 6.12.112 with commit 8325ecf3f16d764a0e0ba42c95b63f08e38710a8
	Issue introduced in 4.9 with commit 911049845d7096c27304930ff478cbf3f2623ba3 and fixed in 6.18.53 with commit 2cf03ada03532bfb42f06fbf01d9e2a99e6011d7
	Issue introduced in 4.9 with commit 911049845d7096c27304930ff478cbf3f2623ba3 and fixed in 7.2.7 with commit dc4797c909b6cacb1bb24449e6c57d50a14d73bf
	Issue introduced in 4.9 with commit 911049845d7096c27304930ff478cbf3f2623ba3 and fixed in 7.3-rc3 with commit 9868f5c077dfe0b606331f2e782484f91a5789a5

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

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/8325ecf3f16d764a0e0ba42c95b63f08e38710a8
	https://git.kernel.org/stable/c/2cf03ada03532bfb42f06fbf01d9e2a99e6011d7
	https://git.kernel.org/stable/c/dc4797c909b6cacb1bb24449e6c57d50a14d73bf
	https://git.kernel.org/stable/c/9868f5c077dfe0b606331f2e782484f91a5789a5