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 623A028981C for ; Wed, 18 Jun 2025 11:07:10 +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=1750244830; cv=none; b=GVZrVrg7RyD8jum9rwVPBpAZYtkZ/FYnkssF5Ac8fmKHzm0asCTlYxRWWhdgai5mgE4DIGoazEo/Ki5yklcD2Mh+x0oqN9hg7scxbXZwqqQupKlUr0NK2tm1KeLxxOSeb0Y/9Fm6kLn+x0ul+yrBfIhaFLapZLql4RIL+soBuI4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244830; c=relaxed/simple; bh=oxd8fSSsII2HBosI/bMT2B0IVcHF1eHWAmAFZ78DLwg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gDchS/DNtj7P+TLykDXHCPot7+a3AaoKROpiqtcQ590jSKPqT9ke0ddtYXyFHlt9vw10xxvpKimLbB1HfNG6jGQc4EZ0BNF8LJH/WkQHQ/WVTMtvaDK/bEMK8kTmKx0QyDuaqLf8Lcwv58rNGqGEqE8BaaWZGXVtzbl5pt36pSc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QITUa8fL; 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="QITUa8fL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C60AEC4CEE7; Wed, 18 Jun 2025 11:07:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244830; bh=oxd8fSSsII2HBosI/bMT2B0IVcHF1eHWAmAFZ78DLwg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=QITUa8fLgFUHEsrBMv89xV3S69lByx3LP4CCJ1D3AQ7vkI/WR46y7K4O7qp5DnSMZ 2xGb9i1hSKk59cVoNi56aiME3ZyOgK/jWOVsEVGMjmzSToZEkV9av8l7Gov1+ICYmQ /6VY2yyc5D6J0g3MM7ClKfAJgTZYCeXlZFcd+G8E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50050: ASoC: SOF: Intel: hda: Fix potential buffer overflow by snprintf() Date: Wed, 18 Jun 2025 13:01:55 +0200 Message-ID: <2025061845-CVE-2022-50050-f90d@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=2283; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DRqhXEhrerjjmQDXsk+CB60blbF1iBoMvDdJwz/BWZM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc+L2+JxgrWBawrZ4k9em8GfHxKeWiEbdDTwwc9dFN jODa1mHO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi4nMZ5kdUL+ZgtJx/iWHJ CiOLB2t5J8/+rMGwoOl828tpnIt0vb54nL746/8vE1GjIAA= 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: Intel: hda: 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-50050 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 29c8e4398f02adacd429c7847dacc8aea5a0c2f1 and fixed in 5.15.63 with commit 6ee1310f4d148dbf04c4159b88afd0b941018903 Issue introduced in 5.10 with commit 29c8e4398f02adacd429c7847dacc8aea5a0c2f1 and fixed in 5.19.4 with commit f7915c5614a7ece117ec390f21a410531eac48de Issue introduced in 5.10 with commit 29c8e4398f02adacd429c7847dacc8aea5a0c2f1 and fixed in 6.0 with commit 94c1ceb043c1a002de9649bb630c8e8347645982 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-50050 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/intel/hda.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/6ee1310f4d148dbf04c4159b88afd0b941018903 https://git.kernel.org/stable/c/f7915c5614a7ece117ec390f21a410531eac48de https://git.kernel.org/stable/c/94c1ceb043c1a002de9649bb630c8e8347645982