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 EC9691E86E for ; Fri, 27 Dec 2024 14:11: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=1735308695; cv=none; b=TlbiqGL2uv6z7sDVnj28YkbKoZoWAbels131buSTiNoofygq9gn57aSj67Q3Z8MQoTdBqWR2wbshEI+DSYXRxZJ7UUFLXCAfiYZ1ZfaAHZwqwz4b9DPhPxL0ampHPJruwMD1qnhmy7m2mEk6mVkgePpLufHaxgRPxWth0AOv2uI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735308695; c=relaxed/simple; bh=HkqfxcU0tVa5ISKtGE2m46zU7q5uh48weeVaQtQr6OM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=n4rTJPXxdZp+Su8xJBkKwDwCEZM7wZH0/CQ/CP8fHuTaGTFsmFzlQOHLSXpwgKG+iAhxmmp2/qH8WNgXcyWkl9lnlgTDDhQbExHjGoLkRNxYzlByhqRaqlgzoRL58XZjdVvFHsfIqzOLU8a9DzzpRX8axGhKhABxtWIPgPCrv3s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EcWN6iLX; 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="EcWN6iLX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F067AC4CED0; Fri, 27 Dec 2024 14:11:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735308694; bh=HkqfxcU0tVa5ISKtGE2m46zU7q5uh48weeVaQtQr6OM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=EcWN6iLXZWCZLEHNsaTvvDf6SfbOObb0BCErk5KxACgQPJ85Qe8NTmcckxYS2rfUa y9GjpL/UfAlVMvPQkhAfJO/EvjWOXTfRWQhVvUevTFKhad3/w3IDOLJRLpgY8wy4aG +aHMyqRO/ceGMfJJiLz1u9YiEHfIDLABVMugCxjw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56532: ALSA: us122l: Use snd_card_free_when_closed() at disconnection Date: Fri, 27 Dec 2024 15:11:23 +0100 Message-ID: <2024122724-CVE-2024-56532-6931@gregkh> X-Mailer: git-send-email 2.47.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=4053; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HkqfxcU0tVa5ISKtGE2m46zU7q5uh48weeVaQtQr6OM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5W3s8r7LUX9IpenGsXSnPJ7tJOSvI7u6DF7Vr1p8X9 IqWe5zWEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNZrsSwYFJg4+91W039Lfq1 bsTe9kn7WXfiJ8OC/if5IdMfL5YVeZowwem1oKiMuXUaAA== 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: us122l: Use snd_card_free_when_closed() at disconnection The USB disconnect callback is supposed to be short and not too-long waiting. OTOH, the current code uses snd_card_free() at disconnection, but this waits for the close of all used fds, hence it can take long. It eventually blocks the upper layer USB ioctls, which may trigger a soft lockup. An easy workaround is to replace snd_card_free() with snd_card_free_when_closed(). This variant returns immediately while the release of resources is done asynchronously by the card device release at the last close. The loop of us122l->mmap_count check is dropped as well. The check is useless for the asynchronous operation with *_when_closed(). The Linux kernel CVE team has assigned CVE-2024-56532 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.28 with commit 030a07e441296c372f946cd4065b5d831d8dc40c and fixed in 4.19.325 with commit 020cbc4d7414f0962004213e2b7bc5cc607e9ec7 Issue introduced in 2.6.28 with commit 030a07e441296c372f946cd4065b5d831d8dc40c and fixed in 5.4.287 with commit 75f418b249d84021865eaa59515d3ed9b75ce4d6 Issue introduced in 2.6.28 with commit 030a07e441296c372f946cd4065b5d831d8dc40c and fixed in 5.10.231 with commit bf0aa35a7cb8602cccf2387712114e836f65c154 Issue introduced in 2.6.28 with commit 030a07e441296c372f946cd4065b5d831d8dc40c and fixed in 5.15.174 with commit 9a48bd2184b142c92a4e17eac074c61fcf975bc9 Issue introduced in 2.6.28 with commit 030a07e441296c372f946cd4065b5d831d8dc40c and fixed in 6.1.120 with commit bc778ad3e495333eebda36fe91d5b2c93109cc16 Issue introduced in 2.6.28 with commit 030a07e441296c372f946cd4065b5d831d8dc40c and fixed in 6.6.64 with commit 2938dd2648522336133c151dd67bb9bf01cbd390 Issue introduced in 2.6.28 with commit 030a07e441296c372f946cd4065b5d831d8dc40c and fixed in 6.11.11 with commit 9b27924dc8d7f8a8c35e521287d4ccb9a006e597 Issue introduced in 2.6.28 with commit 030a07e441296c372f946cd4065b5d831d8dc40c and fixed in 6.12.2 with commit 9d5c530e4d70f64b1114f2cc29ac690ba7ac4a38 Issue introduced in 2.6.28 with commit 030a07e441296c372f946cd4065b5d831d8dc40c and fixed in 6.13-rc1 with commit b7df09bb348016943f56b09dcaafe221e3f73947 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-2024-56532 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/usb/usx2y/us122l.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/020cbc4d7414f0962004213e2b7bc5cc607e9ec7 https://git.kernel.org/stable/c/75f418b249d84021865eaa59515d3ed9b75ce4d6 https://git.kernel.org/stable/c/bf0aa35a7cb8602cccf2387712114e836f65c154 https://git.kernel.org/stable/c/9a48bd2184b142c92a4e17eac074c61fcf975bc9 https://git.kernel.org/stable/c/bc778ad3e495333eebda36fe91d5b2c93109cc16 https://git.kernel.org/stable/c/2938dd2648522336133c151dd67bb9bf01cbd390 https://git.kernel.org/stable/c/9b27924dc8d7f8a8c35e521287d4ccb9a006e597 https://git.kernel.org/stable/c/9d5c530e4d70f64b1114f2cc29ac690ba7ac4a38 https://git.kernel.org/stable/c/b7df09bb348016943f56b09dcaafe221e3f73947