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 395A528981C for ; Wed, 18 Jun 2025 11:07:20 +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=1750244840; cv=none; b=Fl7IXh14JiDGGcCAz2p2sUF1ryV8udZOUS0Bzd7wRH80QrI0V2IVB0sax+bW2C+cUnUFCO+PkIG1kmY7eyX3XXixDcQaDCnlvfWHoJkPQ0oofrpCGzQuNZH8d7S59hGeMz4PoS9HgsTHoJslpvzyf8YbRqK+SPRbi2cxwbmI+oM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244840; c=relaxed/simple; bh=cLfqQ7D4gGdlTl3rt2H3KsHMar0bEvYmJeF4FO8cfG8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gs9GqZ3zdq6roQENYbzKKYtMkxeMt8gR9D6sPTvzmnNjObyYuj8POfo2mPZfvu2Gdera3aIk2t3pua/JHqt4hpxKNppWQREUjfRudnCJl/M5N4ADVo5+zvn+fXVvGcUnzkK+pNQ3Girc9d0PCN6mMhPzm0QWz5BpmFc37EbPbsc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OhDv5UDJ; 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="OhDv5UDJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C8EEC4CEE7; Wed, 18 Jun 2025 11:07:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244840; bh=cLfqQ7D4gGdlTl3rt2H3KsHMar0bEvYmJeF4FO8cfG8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=OhDv5UDJVnJl8HzJR+gA7E/SZLHv7WRDlXURmeagXYawls8IGNiDeOOz/+hQ1UrRf 3HLpvgDNRwJSURKFGx0MWEn7Dq10RzFIZJcjk5iUOBUHCJzX5zrQQY8xfxBT3CVIuk JzDQceKFpwYpQT74+/ZSC5uAPY6dLL3fPWApNpgE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50052: ASoC: Intel: avs: Fix potential buffer overflow by snprintf() Date: Wed, 18 Jun 2025 13:01:57 +0200 Message-ID: <2025061846-CVE-2022-50052-d9f4@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=2050; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WKT/I8gmYhI1eYFrBL8+sZKfLEp70ge6YlTSIMqeiNk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc+JWn5u5NsClY8rBIK4/AjlP+edveP3n5by7M69V/ X8pvSKptiOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmIlrAsGCJvOe7tSpHri9r CDrTt4PxZsTHTZ8YFmy60HBP1OSA5fyLPxjksm2a378JyQAA 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: Intel: avs: 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 a buffer overflow (although it's unrealistic). This patch replaces it with a safer version, scnprintf() for papering over such a potential issue. The Linux kernel CVE team has assigned CVE-2022-50052 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit f1b3b320bd6519b16e3480f74f2926d106e3bcba and fixed in 5.19.4 with commit 840311a09f75632b9d41fbc1cd5c7aea94ce5f7e Issue introduced in 5.19 with commit f1b3b320bd6519b16e3480f74f2926d106e3bcba and fixed in 6.0 with commit ca3b7b9dc9bc1fa552f4697b7cccfa0258a44d00 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-50052 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/intel/avs/pcm.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/840311a09f75632b9d41fbc1cd5c7aea94ce5f7e https://git.kernel.org/stable/c/ca3b7b9dc9bc1fa552f4697b7cccfa0258a44d00