Skip to contentSkip to conversation

CVE-2022-50416: irqchip/wpcm450: Fix memory leak in wpcm450_aic_of_init()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 18, 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:

irqchip/wpcm450: Fix memory leak in wpcm450_aic_of_init()

If of_iomap() failed, 'aic' should be freed before return. Otherwise there is a memory leak.

The Linux kernel CVE team has assigned CVE-2022-50416 to this issue.

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

	Issue introduced in 5.13 with commit fead4dd496631707549f414b4059afb86ea8fb80 and fixed in 5.15.86 with commit 740efb64ca5e8f2b30ac843bc4ab07950479fed4
	Issue introduced in 5.13 with commit fead4dd496631707549f414b4059afb86ea8fb80 and fixed in 6.0.16 with commit bcbcb396e1a8bd4dcaabfb0d5b98abae70880470
	Issue introduced in 5.13 with commit fead4dd496631707549f414b4059afb86ea8fb80 and fixed in 6.1.2 with commit 773c9d7f127f7a599d42ceed831de69f5aa22f03
	Issue introduced in 5.13 with commit fead4dd496631707549f414b4059afb86ea8fb80 and fixed in 6.2 with commit 4208d4faf36573a507b5e5de17abe342e9276759

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-2022-50416

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/irqchip/irq-wpcm450-aic.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/740efb64ca5e8f2b30ac843bc4ab07950479fed4
	https://git.kernel.org/stable/c/bcbcb396e1a8bd4dcaabfb0d5b98abae70880470
	https://git.kernel.org/stable/c/773c9d7f127f7a599d42ceed831de69f5aa22f03
	https://git.kernel.org/stable/c/4208d4faf36573a507b5e5de17abe342e9276759