CVE-2026-64249: fpga: region: fix use-after-free in child_regions_with_firmware()

Greg Kroah-Hartman <[email protected]> Fri, 24 Jul 2026 17:31:23 +0200
Newsgroups org.kernel.vger.linux-cve-announce
Message-ID <2026072419-CVE-2026-64249-9700@gregkh>
From: Greg Kroah-Hartman <[email protected]>

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

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

fpga: region: fix use-after-free in child_regions_with_firmware()

Move of_node_put(child_region) after the error print to avoid accessing
freed memory when pr_err() references child_region.

[ Yilun: Fix the Fixes tag ]

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


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

	Issue introduced in 4.10 with commit 0fa20cdfcc1f68847cdfc47824476301eedc8297 and fixed in 5.10.260 with commit e918942bcc5355ad5b44ba557935dffc0727b0eb
	Issue introduced in 4.10 with commit 0fa20cdfcc1f68847cdfc47824476301eedc8297 and fixed in 5.15.211 with commit 866184fc7ae42a0070f1141ae8c5dca7c24a59e2
	Issue introduced in 4.10 with commit 0fa20cdfcc1f68847cdfc47824476301eedc8297 and fixed in 6.1.177 with commit 070b0ce947b18fa3dec0729695147f7e19599649
	Issue introduced in 4.10 with commit 0fa20cdfcc1f68847cdfc47824476301eedc8297 and fixed in 6.6.144 with commit fbaf509ad7cb2f7dafe73ca20c956104cfcc9d68
	Issue introduced in 4.10 with commit 0fa20cdfcc1f68847cdfc47824476301eedc8297 and fixed in 6.12.95 with commit e79afcb0a66d2b3c33e510eade902537e656fc00
	Issue introduced in 4.10 with commit 0fa20cdfcc1f68847cdfc47824476301eedc8297 and fixed in 6.18.38 with commit 369496d885b4cf6e8647cf4dc5cf3ac68fdf37a1
	Issue introduced in 4.10 with commit 0fa20cdfcc1f68847cdfc47824476301eedc8297 and fixed in 7.1.3 with commit 5e098e40e8bac43ed58645c10d5fad781966efe4
	Issue introduced in 4.10 with commit 0fa20cdfcc1f68847cdfc47824476301eedc8297 and fixed in 7.2-rc1 with commit 54f3c5643ec523a04b6ec0e7c19eb10f5ebebdd3

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-64249
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/fpga/of-fpga-region.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/e918942bcc5355ad5b44ba557935dffc0727b0eb
	https://git.kernel.org/stable/c/866184fc7ae42a0070f1141ae8c5dca7c24a59e2
	https://git.kernel.org/stable/c/070b0ce947b18fa3dec0729695147f7e19599649
	https://git.kernel.org/stable/c/fbaf509ad7cb2f7dafe73ca20c956104cfcc9d68
	https://git.kernel.org/stable/c/e79afcb0a66d2b3c33e510eade902537e656fc00
	https://git.kernel.org/stable/c/369496d885b4cf6e8647cf4dc5cf3ac68fdf37a1
	https://git.kernel.org/stable/c/5e098e40e8bac43ed58645c10d5fad781966efe4
	https://git.kernel.org/stable/c/54f3c5643ec523a04b6ec0e7c19eb10f5ebebdd3