Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 81C9E28C2B3 for ; Wed, 18 Jun 2025 11:10:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245048; cv=none; b=XXbm3Hef5PAhqdhaKL/PN3Hpg/G6Y59eDdqjYxVDRzotA3Aw2clYfAOZ5dhQKhiya7VFZ8WEyQ1MJ7zQ0oEMUG50cFB9YQ2KBIA79odUaqdxNEUM3wPymIKT7Cz1/2ngFdRfnUTWvKbHn+wn5sKmtkl/MkVdv1dMQe/Wo7yPAYc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245048; c=relaxed/simple; bh=+8eqIVXsPQ92/zGZEaNTzG8vYiGRUqAtx/YK32fOuL8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KCBTM1uxJ0HBkxndBejQvc7JwCiGuyLPxxBcQIHJr/TPbW60iSWfdNT+DgnSiICHvbc63xLJH9ODZS316Zquds8OjQ79PkWEub3aMTXIWDvX8B2cyh6S7OvIKBNR3Br6Fu+kv6T8uT+e6X7xsk/UD34KUTkIMWzj2sCYfdwZelM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yCO+Sp5W; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="yCO+Sp5W" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F223DC4CEE7; Wed, 18 Jun 2025 11:10:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245048; bh=+8eqIVXsPQ92/zGZEaNTzG8vYiGRUqAtx/YK32fOuL8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=yCO+Sp5W3mcGDHGV9rS5Uz3hkbmfKXBPz26LzgjPYGeAm5QIZd2o6wqkwetFYzyej ucHX7cfmTlLjQomJ1dy0DJ6bp9Gih+6gSEFB3iQwVk8eyuPYFqIV+TzYTfjbkujVNB aK364YzamEwG5RZHuw35MwQIPWLipNNUmb0PhAYg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50115: ASoC: SOF: ipc3-topology: Prevent double freeing of ipc_control_data via load_bytes Date: Wed, 18 Jun 2025 13:03:00 +0200 Message-ID: <2025061809-CVE-2022-50115-86c0@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2385; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UrLSc98VPsNfJaeddrs0FeJ6lWbmwnMyDcKVeOjpYLE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc0oPend67y01MLRV3cKcn+G+Jk8/Yd2Gds65nTzXk 2Y43GHpiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgInknGKY77G4V5N1Rf/GMJOC NeEpM/fNj12rwTA/9JL41fDfetFN+Rz7bRKyFzxf3voOAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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