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 EDB7728981C for ; Wed, 18 Jun 2025 11:07:16 +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=1750244837; cv=none; b=ZiarKqhPlAE1e0H4QZeeAChxXMvEBmU61sJKjd2cX5GSCMFoYIFWAccX6G8S0jc/O7wuaBh9tJ0SHBFnqJBCv8m1lVegvVHjsTop6/OvQj+mYnpNkKkREa5CA39UyRkHAZvO0xY8e4n4w0/ta9qqM/5ecOcThWA1YD9/5auUbBI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244837; c=relaxed/simple; bh=rZEGjA2veMInf9dhS38nV20zUeipd2xseBaRnqTg+mA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AXKsYrfzT0fuOHKDj7A9az/7xq7QS+F1QXG9mJG+df919INczY1SM3nuA2SAssY5HMRA4WLo0KYLlDDEhnrLr0WEzN6gH3X3Qo+VEsh+stNU4GoMYUGQch5N+G5GVETI5AQwBiyXMY54Mp+XYAGgcdTWWYAx1boCuGN8k1b2cow= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=d57PFjCh; 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="d57PFjCh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59555C4CEE7; Wed, 18 Jun 2025 11:07:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244836; bh=rZEGjA2veMInf9dhS38nV20zUeipd2xseBaRnqTg+mA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=d57PFjCha+iTLvpG57fZm3CP0ihtNd7O+kHKS3CSF9HCEtwVPCc2xbMwAo+GR9s8d CLjUfYtHjbFwSI5e5AI2IicJFfohCYxKACATyhZITkBJ77iOtRYSfIf19sI8ZRCtxs nz4IyKwuow9ldFZm2EUbyDsRgj0d3nncQpjMtu4A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50051: ASoC: SOF: debug: Fix potential buffer overflow by snprintf() Date: Wed, 18 Jun 2025 13:01:56 +0200 Message-ID: <2025061846-CVE-2022-50051-57ac@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=2274; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kPEG3BiQjzsXvgSeJejYIVKpX8me6xgDyUchPv2h0hU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc+K+Fy/jqTz0wmFWe09qXaBaHquaorrXnd/qRX+F/ Ber22h2xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQqdRjmKcyevY9P52GP1WyD dcIBWlol1aGbGeaKTvt0asPnO4EmXjpvHD+WKmyYsFEGAA== 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: debug: Fix potential buffer overflow by snprintf() snprintf() returns the would-be-filled size when the string overflows the given buffer size, hence using this value may result in the buffer overflow (although it's unrealistic). This patch replaces with a safer version, scnprintf() for papering over such a potential issue. The Linux kernel CVE team has assigned CVE-2022-50051 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 5b10b62989219aa527ee4fa555d1995a3b70981b and fixed in 5.15.63 with commit b318b9dd2ac67f39d0338ce563879d1f59a0347a Issue introduced in 5.11 with commit 5b10b62989219aa527ee4fa555d1995a3b70981b and fixed in 5.19.4 with commit a67971a17604ae7de278fb09243432459afc51e1 Issue introduced in 5.11 with commit 5b10b62989219aa527ee4fa555d1995a3b70981b and fixed in 6.0 with commit 1eb123ce985e6cf302ac6e3f19862d132d86fa8f 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-50051 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/debug.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/b318b9dd2ac67f39d0338ce563879d1f59a0347a https://git.kernel.org/stable/c/a67971a17604ae7de278fb09243432459afc51e1 https://git.kernel.org/stable/c/1eb123ce985e6cf302ac6e3f19862d132d86fa8f