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 8AF0B29C33D for ; Wed, 18 Jun 2025 11:17:07 +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=1750245427; cv=none; b=ecWQ8vixmUSvootu/WEA07EpYu5AaGLjYkENVXq1EQtaQyDOBFcF4VwOpBcP21PdkTr+gJ0K+ltWzmchPmLn7Y9SzZn8wzBGbec0b5MzzkkUIPXS/2yumC8PYS18VUZ1NieC0Z6bv0BEQoW/o2f+LVQ2TwG4r0rlkVT6ZOzeJMw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245427; c=relaxed/simple; bh=2Zip8WUPry1qoOhhN1npQERfFUdplGfKw+AaI9D4Xu4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rn4sNlEljSw/iVATAEViOFc9HDkF82JRIOgBgrAL4iIKr1asiLiS4YNo46AH98AENE4idEuTfOkFH+l52Lq3fetMlVtRqI2tOerZXv65+ykqdg+F/ZruLjztWBaKpadgK5sMZ9Ml9hQBQqeGb+l4sHLQNo1JSfpw0n8TG2N9PBI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KcQIkX6a; 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="KcQIkX6a" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04720C4CEF0; Wed, 18 Jun 2025 11:17:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245427; bh=2Zip8WUPry1qoOhhN1npQERfFUdplGfKw+AaI9D4Xu4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KcQIkX6aBSdgE8tirPjMgXReMvQPtC9rTattWh2CK9VQDlmsTST7b05XEhlpbZdG0 ezRjs7fjE9sWKouYy9hTQdJfvrMr/zcAheEJgBQcRPnHkilr0W8rBFYy6ysIrQuJQ3 rZMXidaftEFCw5BQMNcs7kWLFV3UOcELTIH3Uqe0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50229: ALSA: bcd2000: Fix a UAF bug on the error path of probing Date: Wed, 18 Jun 2025 13:04:54 +0200 Message-ID: <2025061850-CVE-2022-50229-702e@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=3881; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JZ1Z8L5oHq6DDCOHP7qWuMjdFmMKFDsX4Gdi+EUmGFc=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc+ZtWe0QfqXzQYTOBcNzp0wNtG83HdVUF1z96OPT9 immrG9edcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEFLwY5hkqvJO4xHHFWnnN l7xfE/rzzH/yfWGYn+N0dZ36/TCHB1+UJ3+UDbi8sshACAA= 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: ALSA: bcd2000: Fix a UAF bug on the error path of probing When the driver fails in snd_card_register() at probe time, it will free the 'bcd2k->midi_out_urb' before killing it, which may cause a UAF bug. The following log can reveal it: [ 50.727020] BUG: KASAN: use-after-free in bcd2000_input_complete+0x1f1/0x2e0 [snd_bcd2000] [ 50.727623] Read of size 8 at addr ffff88810fab0e88 by task swapper/4/0 [ 50.729530] Call Trace: [ 50.732899] bcd2000_input_complete+0x1f1/0x2e0 [snd_bcd2000] Fix this by adding usb_kill_urb() before usb_free_urb(). The Linux kernel CVE team has assigned CVE-2022-50229 to this issue. Affected and fixed versions =========================== Issue introduced in 3.16 with commit b47a22290d581277be70e8a597824a4985d39e83 and fixed in 4.9.326 with commit a718eba7e458e2f40531be3c6b6a0028ca7fcace Issue introduced in 3.16 with commit b47a22290d581277be70e8a597824a4985d39e83 and fixed in 4.14.291 with commit 4fc41f7ebb7efca282f1740ea934d16f33c1d109 Issue introduced in 3.16 with commit b47a22290d581277be70e8a597824a4985d39e83 and fixed in 4.19.256 with commit 5e7338f4dd92b2f8915a82abfa1dd3ad3464bea0 Issue introduced in 3.16 with commit b47a22290d581277be70e8a597824a4985d39e83 and fixed in 5.4.211 with commit 05e0bb8c3c4dde3e21b9c1cf9395afb04e8b24db Issue introduced in 3.16 with commit b47a22290d581277be70e8a597824a4985d39e83 and fixed in 5.10.137 with commit 348620464a5c127399ac09b266f494f393661952 Issue introduced in 3.16 with commit b47a22290d581277be70e8a597824a4985d39e83 and fixed in 5.15.61 with commit 64ca7f50ad96c2c65ae390b954925a36eabe04aa Issue introduced in 3.16 with commit b47a22290d581277be70e8a597824a4985d39e83 and fixed in 5.18.18 with commit 1d6a246cf97c380f2da76591f03019dd9c9599c3 Issue introduced in 3.16 with commit b47a22290d581277be70e8a597824a4985d39e83 and fixed in 5.19.2 with commit b0d4af0a4763ddc02344789ef2a281c494bc330d Issue introduced in 3.16 with commit b47a22290d581277be70e8a597824a4985d39e83 and fixed in 6.0 with commit ffb2759df7efbc00187bfd9d1072434a13a54139 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-50229 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/bcd2000/bcd2000.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/a718eba7e458e2f40531be3c6b6a0028ca7fcace https://git.kernel.org/stable/c/4fc41f7ebb7efca282f1740ea934d16f33c1d109 https://git.kernel.org/stable/c/5e7338f4dd92b2f8915a82abfa1dd3ad3464bea0 https://git.kernel.org/stable/c/05e0bb8c3c4dde3e21b9c1cf9395afb04e8b24db https://git.kernel.org/stable/c/348620464a5c127399ac09b266f494f393661952 https://git.kernel.org/stable/c/64ca7f50ad96c2c65ae390b954925a36eabe04aa https://git.kernel.org/stable/c/1d6a246cf97c380f2da76591f03019dd9c9599c3 https://git.kernel.org/stable/c/b0d4af0a4763ddc02344789ef2a281c494bc330d https://git.kernel.org/stable/c/ffb2759df7efbc00187bfd9d1072434a13a54139