[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025061809-CVE-2022-50115-86c0@gregkh>
Date: Wed, 18 Jun 2025 13:03:00 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-50115: ASoC: SOF: ipc3-topology: Prevent double freeing of ipc_control_data via load_bytes
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ASoC: SOF: ipc3-topology: Prevent double freeing of ipc_control_data via load_bytes
We have sanity checks for byte controls and if any of the fail the locally
allocated scontrol->ipc_control_data is freed up, but not set to NULL.
On a rollback path of the error the higher level code will also try to free
the scontrol->ipc_control_data which will eventually going to lead to
memory corruption as double freeing memory is not a good thing.
The Linux kernel CVE team has assigned CVE-2022-50115 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.18 with commit b5cee8feb1d482a9d07b677f4f2f9565bacda53e and fixed in 5.18.18 with commit 8463986b54295e6b65ddf2b7c65627d01ce7643b
Issue introduced in 5.18 with commit b5cee8feb1d482a9d07b677f4f2f9565bacda53e and fixed in 5.19.2 with commit c2eddfcafcffaf1b9245ea0dde9143bbfb47d5d1
Issue introduced in 5.18 with commit b5cee8feb1d482a9d07b677f4f2f9565bacda53e and fixed in 6.0 with commit d5bd47f3ca124058a8e87eae4508afeda2132611
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-50115
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:
sound/soc/sof/ipc3-topology.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/8463986b54295e6b65ddf2b7c65627d01ce7643b
https://git.kernel.org/stable/c/c2eddfcafcffaf1b9245ea0dde9143bbfb47d5d1
https://git.kernel.org/stable/c/d5bd47f3ca124058a8e87eae4508afeda2132611
Powered by blists - more mailing lists