From mboxrd@z Thu Jan 1 00:00:00 1970 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 1802E1A3161 for ; Wed, 26 Feb 2025 01:57:34 +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=1740535054; cv=none; b=BEswq6x2zWIG/fY1TX8tq+cjRxp9pYZX6fB47UzXSHlC3CFtBQp1hv0ATcUz2EsLDVWfxZGWRzn2DxC210fHz7xCfBr67kqZfaqsyf7qZp+IC4WGSKlmlD2azCmxnPZBEY3dK8jaljVizMKVHAkfdOoCYaBfgjvsJX/cSc2OsZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535054; c=relaxed/simple; bh=jkyVJesL5Kv5IgfFxWBcdQcK4io1G0TE/W0ZlT1eulE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QcD+fff+GzrQQAicH2sgANKfzXzBEVrWGiJ14a04+hhj1hADnHVFSmtXrVx34C8I885eb5ooVsAphTfjarGpWfYTGrgCUZ+CbL8WtZlZkC7/a1LNM0kcupeHWUN+PUmg3gMdvPwwpkmfwq6j6hBe1H+IknQB1gNIulLnuV1d3Ao= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OpHo++9M; 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="OpHo++9M" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0B3BC4CEE6; Wed, 26 Feb 2025 01:57:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535054; bh=jkyVJesL5Kv5IgfFxWBcdQcK4io1G0TE/W0ZlT1eulE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=OpHo++9Mh9qnLPed4ncihJTltjX2zRMlIhJYmTRtAV9ZlZZZPeLaZoGZXcgngFQEt kWIIsknYKw8I6o9oHfdo5Q8pEpFN0p9GnFplurNnaPhSz1p9Xe7g1KZzAh3wlXfrNJ sfMrjwvKB3Ifl426yOPBuG5So9Uvh8u2ixJyzAUI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49045: ALSA: pcm: Test for "silence" field in struct "pcm_format_data" Date: Wed, 26 Feb 2025 02:54:10 +0100 Message-ID: <2025022650-CVE-2022-49045-7d21@gregkh> X-Mailer: git-send-email 2.48.1 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=2824; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jkyVJesL5Kv5IgfFxWBcdQcK4io1G0TE/W0ZlT1eulE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SvTOsq67Em/VP7dWV5A/6GFSsEDZ7Iabch/9Tj+MM PF4xtTQEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOpWsYwP3X2a55081AdoTkc Z9ov32lOC099wLDg6n2vvxdEFWbWp4UIW5y41t/UKGkPAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ALSA: pcm: Test for "silence" field in struct "pcm_format_data" Syzbot reports "KASAN: null-ptr-deref Write in snd_pcm_format_set_silence".[1] It is due to missing validation of the "silence" field of struct "pcm_format_data" in "pcm_formats" array. Add a test for valid "pat" and, if it is not so, return -EINVAL. [1] https://lore.kernel.org/lkml/000000000000d188ef05dc2c7279@google.com/ The Linux kernel CVE team has assigned CVE-2022-49045 to this issue. Affected and fixed versions =========================== Fixed in 4.9.311 with commit 77af45df08768401602472f3e3879dce14f55497 Fixed in 4.14.276 with commit c3b2f23bfe5452b00eb1c842bc71098449e4ad9f Fixed in 4.19.239 with commit eb04e3112a3516e483d60a9af9762961702a6c1b Fixed in 5.4.190 with commit 377a80ca6590f40ec8a85227b889a5d399fe26c3 Fixed in 5.10.112 with commit 912797e54c99a98f0722f21313e13a3938bb6dba Fixed in 5.15.35 with commit 63038f6e96a77a0abf8083649c53e6a72c1a0124 Fixed in 5.17.4 with commit 97345c90235b1bb7661e7a428d9dcb96b1d7f5d4 Fixed in 5.18 with commit 2f7a26abb8241a0208c68d22815aa247c5ddacab 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-49045 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/core/pcm_misc.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/77af45df08768401602472f3e3879dce14f55497 https://git.kernel.org/stable/c/c3b2f23bfe5452b00eb1c842bc71098449e4ad9f https://git.kernel.org/stable/c/eb04e3112a3516e483d60a9af9762961702a6c1b https://git.kernel.org/stable/c/377a80ca6590f40ec8a85227b889a5d399fe26c3 https://git.kernel.org/stable/c/912797e54c99a98f0722f21313e13a3938bb6dba https://git.kernel.org/stable/c/63038f6e96a77a0abf8083649c53e6a72c1a0124 https://git.kernel.org/stable/c/97345c90235b1bb7661e7a428d9dcb96b1d7f5d4 https://git.kernel.org/stable/c/2f7a26abb8241a0208c68d22815aa247c5ddacab