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 C2BD41B0405 for ; Wed, 26 Feb 2025 02:15:37 +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=1740536137; cv=none; b=OS2d6iIDNzqJDfvfiS5Si8kGQajn2L9Mznj329lT5WM49FghhhPmjU0+IieZ8yBO9IOON/oWh41IKRfrnvysHYcZ6DVuw6ld6W+4LciZLAQ0VOSF9Mha6smGzNVwfmIoKzTVt4nOe4T/qT8Ib5W6nre1QYwarCasMpSpd8ZjoQc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536137; c=relaxed/simple; bh=rRN9LKSXOyl3SYGTqu1ueWFeGvO+J2zUIh1VT1t/Qao=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ktg1Kr2wpMsiki4oHsN8RHaQ/yHCG+g1gqpn6PAxmdrYeVRNkmiWMQvFF3Yv73VCGODnvKYvDTvn4c4fqfITT3LOuW5WWaEMsvnAVVo3zvvhuHEExYFeC/ZD1AJ/oultpeq9jr8JMlBneDcX9/7U/38Vg1QFJWqJ0KyJ6tzhpMg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LVWuBPhv; 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="LVWuBPhv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 995A2C4CEDD; Wed, 26 Feb 2025 02:15:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536137; bh=rRN9LKSXOyl3SYGTqu1ueWFeGvO+J2zUIh1VT1t/Qao=; h=From:To:Cc:Subject:Date:Reply-to:From; b=LVWuBPhv9Pb3Xarym88/1qI2y0qII6NpqXDxdqvOh0N7Kac3b4vaT+yf8vvgMyz4x V6z0VAyeMfxf1xj/80OGWtoI6qYi2kmrrz1zpceHlA6O4EtLGjlsjl45rvKFmla27z C3hlvSNu2m/l1kqy0Un76Wet1ZuxW+hIiLkKovw4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49545: ALSA: usb-audio: Cancel pending work at closing a MIDI substream Date: Wed, 26 Feb 2025 03:13:39 +0100 Message-ID: <2025022615-CVE-2022-49545-4e81@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=2273; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rRN9LKSXOyl3SYGTqu1ueWFeGvO+J2zUIh1VT1t/Qao=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Ktj9VV221QllLjGvSv9d8NIi5MginY0HmvIeNu8Q0 jF0/P6mI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbyQYNhfqLcx6UFMWWWByd5 vFj3znyZ9aNPzxjm2XxZ8EXZbdu6xdUbvvtWHvh3TXQdLwA= 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: usb-audio: Cancel pending work at closing a MIDI substream At closing a USB MIDI output substream, there might be still a pending work, which would eventually access the rawmidi runtime object that is being released. For fixing the race, make sure to cancel the pending work at closing. The Linux kernel CVE team has assigned CVE-2022-49545 to this issue. Affected and fixed versions =========================== Fixed in 5.10.121 with commit 40bdb5ec957aca5c5c1924602bef6b0ab18e22d3 Fixed in 5.15.46 with commit 11868ca21585561659c2575b0d6508ef8e9c4291 Fixed in 5.17.14 with commit 5e5fe2b6065541c6216a7a003b0cddf386be0d2d Fixed in 5.18.3 with commit 517dcef4d2dda0132648f1e4c079ed17bba4d1a4 Fixed in 5.19 with commit 0125de38122f0f66bf61336158d12a1aabfe6425 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-49545 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/midi.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/40bdb5ec957aca5c5c1924602bef6b0ab18e22d3 https://git.kernel.org/stable/c/11868ca21585561659c2575b0d6508ef8e9c4291 https://git.kernel.org/stable/c/5e5fe2b6065541c6216a7a003b0cddf386be0d2d https://git.kernel.org/stable/c/517dcef4d2dda0132648f1e4c079ed17bba4d1a4 https://git.kernel.org/stable/c/0125de38122f0f66bf61336158d12a1aabfe6425