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 D18D7197 for ; Fri, 21 Jun 2024 10:24:51 +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=1718965491; cv=none; b=Z7z4OlavK7or9UU2ouwQSUjZH01w1TUpGf12B1T5Aco5zTUkQ14eyvlK+pVvfdgyx8jfHFifIudVYbJ1Zb/t5yt3zWDyy8nZXM10CqdFk5PV3LK8+f8s68nqeM5icAr1mjsJ9BMeoaL0kA8SwgR89xksgeDvAYbF7XqB+cME5qY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718965491; c=relaxed/simple; bh=v6DbJhpi0JN8RfG15d2H4ViMoVTz15rCTTTPTalutpg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=f/T5d4jrEBU20DhrEpKfodC61qgjGx6ismpY8s8v1uoFAXVpdtBRS19pLav5ECbcewii1DMEo774XKnK31HMUhgcTqjp10r8umCur4Ehoh2GeAXj8XejY3j7sMoIu8sb8ozgVasW6Ll5/FW0MpOVXSysaFMgagC9N1A7OeVfyW8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bwkSAyGF; 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="bwkSAyGF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A5B5C2BBFC; Fri, 21 Jun 2024 10:24:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718965491; bh=v6DbJhpi0JN8RfG15d2H4ViMoVTz15rCTTTPTalutpg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=bwkSAyGF4obc+R7i+/EzfECg8cVXKGTHDjI6EOJr9RReahsERHgjG47kpftjgJC0u DSNFhrAmIJiMnBaBFuxKtw4fHSOEq+NQouEI3mUFAMVGQdYYWez7zc/qTpaf0VCvUI 7JO5c5vjnYJ48zTATwU4X48sM/MuLxtINcKk/uEk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38628: usb: gadget: u_audio: Fix race condition use of controls after free during gadget unbind. Date: Fri, 21 Jun 2024 12:19:54 +0200 Message-ID: <2024062140-CVE-2024-38628-e2db@gregkh> X-Mailer: git-send-email 2.45.2 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=2138; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=v6DbJhpi0JN8RfG15d2H4ViMoVTz15rCTTTPTalutpg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmlwXtf2Sdu4y2aVPfuL8d+NTfPAHOzaUsPvz9xbV1Lf 7fOPvNzHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRr2EMC/ZH7zskF3C+k0M0 /sEsGfM+jYD/3QwLpqn3X128YvVSp70v/S5KpEZJrHEWBAA= 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: usb: gadget: u_audio: Fix race condition use of controls after free during gadget unbind. Hang on to the control IDs instead of pointers since those are correctly handled with locks. The Linux kernel CVE team has assigned CVE-2024-38628 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 02de698ca812 and fixed in 6.1.93 with commit 89e668096844 Issue introduced in 5.15 with commit 02de698ca812 and fixed in 6.6.33 with commit 453d3fa9266e Issue introduced in 5.15 with commit 02de698ca812 and fixed in 6.9.4 with commit bea73b58ab67 Issue introduced in 5.15 with commit 02de698ca812 and fixed in 6.10-rc1 with commit 1b739388aa3f 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-38628 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: drivers/usb/gadget/function/u_audio.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/89e66809684485590ea0b32c3178e42cba36ac09 https://git.kernel.org/stable/c/453d3fa9266e53f85377b911c19b9a4563fa88c0 https://git.kernel.org/stable/c/bea73b58ab67fe581037ad9cdb93c2557590c068 https://git.kernel.org/stable/c/1b739388aa3f8dfb63a9fca777e6dfa6912d0464