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 1A135219A89 for ; Wed, 26 Feb 2025 02:15:32 +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=1740536132; cv=none; b=qbbJvmFbwgBs6B7JvhEPcG+HZkw2MI5MD6ml3WxNOrWs/sCwxqiiE4gFpRYHfLwkLfKdSHBCETehk8HOOwO57ecDOPh84t9AQ93mEY8HxKYmle8vC2QI/V5xEEDQx5TzOADK4eK5VnDW+s/2Mijhhmn+jkPq2dWObtBeogF4mxM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536132; c=relaxed/simple; bh=AsF+0w5EDEcr3Uht5FqysqkXwz25sTCQ6CZxzOLj7m0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=f4gDXL00lnkoLXjZ8j/278nfJUFGeLqhXdLBkaNdjuDcOhnP7Zg/F3g3rT6UgF0t9M190Ev4a/sH3MgwRZ6UQdpGh7WwZMZtAYkD39j/XKEWH1Wg8TokPEq0v4Ole6wRI9Q2yMxWkatf7dijQaCWPOH/GHJKeoHEdZNBTLjuC38= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LPa9XDMc; 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="LPa9XDMc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3052C4CEDD; Wed, 26 Feb 2025 02:15:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536132; bh=AsF+0w5EDEcr3Uht5FqysqkXwz25sTCQ6CZxzOLj7m0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=LPa9XDMc+IVBHjgkbjRonOzADD177P5xP77+C34YKm9jRsIMKJLQyZLLkKwKuJKh7 aLQgKcAnwz2fHvXnmmKx01u/WMUMS/4o3xTrrHVCEWnkZf1+aVN42m0Do0U3q4B9yZ cKuFDG4rOqjMrIM+iwteBRwozn0cDbwCmVE935Fc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49538: ALSA: jack: Access input_dev under mutex Date: Wed, 26 Feb 2025 03:13:32 +0100 Message-ID: <2025022614-CVE-2022-49538-c7b9@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=2838; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AsF+0w5EDEcr3Uht5FqysqkXwz25sTCQ6CZxzOLj7m0=; b=kA0DAAIRMUfUDdst+ykByyZiAGe+eAbIfaigiC8LIr0PO3kqDtvTQ6DWacVW5o+r6TdZSTS5C IhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAme+eAYACgkQMUfUDdst+ylnxQCgmrW9 U17ZSiFAgp8KcgnQ2nz8+VgAnigdYV/3LhPQaL370By+ZhT5ckVE 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: jack: Access input_dev under mutex It is possible when using ASoC that input_dev is unregistered while calling snd_jack_report, which causes NULL pointer dereference. In order to prevent this serialize access to input_dev using mutex lock. The Linux kernel CVE team has assigned CVE-2022-49538 to this issue. Affected and fixed versions =========================== Fixed in 4.9.318 with commit 74bab3bcf422593c582e47130aa8eb41ebb2dc09 Fixed in 4.14.283 with commit 8487a88136d54a1a4d3f26f1399685db648ab879 Fixed in 4.19.247 with commit c093b62c40027c21d649c5534ad7aa3605a99b00 Fixed in 5.4.198 with commit f68bed124c7699e23ffb4ce4fcc84671e9193cde Fixed in 5.10.121 with commit e2b8681769f6e205382f026b907d28aa5ec9d59a Fixed in 5.15.46 with commit 5cc6f623f4818c7d7e9e966a45ebf324901ca9c5 Fixed in 5.17.14 with commit 9e6a73b0c0f2014eb89249fb1640c5a3d58221c4 Fixed in 5.18.3 with commit 582aea6084cc59fec881204f026816d1219f2348 Fixed in 5.19 with commit 1b6a6fc5280e97559287b61eade2d4b363e836f2 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-49538 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: include/sound/jack.h sound/core/jack.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/74bab3bcf422593c582e47130aa8eb41ebb2dc09 https://git.kernel.org/stable/c/8487a88136d54a1a4d3f26f1399685db648ab879 https://git.kernel.org/stable/c/c093b62c40027c21d649c5534ad7aa3605a99b00 https://git.kernel.org/stable/c/f68bed124c7699e23ffb4ce4fcc84671e9193cde https://git.kernel.org/stable/c/e2b8681769f6e205382f026b907d28aa5ec9d59a https://git.kernel.org/stable/c/5cc6f623f4818c7d7e9e966a45ebf324901ca9c5 https://git.kernel.org/stable/c/9e6a73b0c0f2014eb89249fb1640c5a3d58221c4 https://git.kernel.org/stable/c/582aea6084cc59fec881204f026816d1219f2348 https://git.kernel.org/stable/c/1b6a6fc5280e97559287b61eade2d4b363e836f2