[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025123018-CVE-2022-50836-c8e4@gregkh>
Date: Tue, 30 Dec 2025 13:13:22 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-50836: remoteproc: sysmon: fix memory leak in qcom_add_sysmon_subdev()
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
remoteproc: sysmon: fix memory leak in qcom_add_sysmon_subdev()
The kfree() should be called when of_irq_get_byname() fails or
devm_request_threaded_irq() fails in qcom_add_sysmon_subdev(),
otherwise there will be a memory leak, so add kfree() to fix it.
The Linux kernel CVE team has assigned CVE-2022-50836 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.1 with commit 027045a6e2b7cd81216e8a559534a30fb0782702 and fixed in 5.4.229 with commit 27441fab2651cd909d8a5440ca079bc50245f427
Issue introduced in 5.1 with commit 027045a6e2b7cd81216e8a559534a30fb0782702 and fixed in 5.10.163 with commit e4539eb5c0c342567183fe386d0699c8dab49490
Issue introduced in 5.1 with commit 027045a6e2b7cd81216e8a559534a30fb0782702 and fixed in 5.15.86 with commit 131c0a3ead78d45f0f39ddb42cf1bd9be26239b0
Issue introduced in 5.1 with commit 027045a6e2b7cd81216e8a559534a30fb0782702 and fixed in 6.0.16 with commit 1a62bebe0705556d37cfa8409ddc759b11d404f6
Issue introduced in 5.1 with commit 027045a6e2b7cd81216e8a559534a30fb0782702 and fixed in 6.1.2 with commit ec97e9a5c2f25d2f9f9d7005e9ac67f23cc751cd
Issue introduced in 5.1 with commit 027045a6e2b7cd81216e8a559534a30fb0782702 and fixed in 6.2 with commit e01ce676aaef3b13d02343d7e70f9637d93a3367
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-50836
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/remoteproc/qcom_sysmon.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/27441fab2651cd909d8a5440ca079bc50245f427
https://git.kernel.org/stable/c/e4539eb5c0c342567183fe386d0699c8dab49490
https://git.kernel.org/stable/c/131c0a3ead78d45f0f39ddb42cf1bd9be26239b0
https://git.kernel.org/stable/c/1a62bebe0705556d37cfa8409ddc759b11d404f6
https://git.kernel.org/stable/c/ec97e9a5c2f25d2f9f9d7005e9ac67f23cc751cd
https://git.kernel.org/stable/c/e01ce676aaef3b13d02343d7e70f9637d93a3367
Powered by blists - more mailing lists