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 C64737F9 for ; Wed, 4 Sep 2024 18:36: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=1725474994; cv=none; b=IQdEQ7k9JqEEEGCG0Ei/RuudXKt2E6edVeo2HHCuWiObi7ub7RgPIOPs9ctDolgY98bsFVb2LETQVa+l8MhSTOTCtEeIrggpO7L1bxVEClvi+fIbqSecsK4QG1dvyd3y1zF5dz6FaTnr96BPmo0kVJERa1vikONNre/phrM038A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725474994; c=relaxed/simple; bh=kCdp6qbm02FjJHfBoplcxim+XA9K6QLdwFtPtOJRNWA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=k/VNFxDQHbMcnujrHiPBxWERhtNy+9TPv8c8om4dmPU4OM3fqdZuh9GsP0NMoMMehpl9+Q3F8ji06gGwpcm2QVvvH9a7O2xrhI2s2a5cQh2dsFUW+5/7qVvJVXrBHYyer/EG9omCnjhrYMMn4k4VtyZIJ2lSY0dfosEXcTalSXw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=u0fbtiLw; 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="u0fbtiLw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEDBAC4CEC2; Wed, 4 Sep 2024 18:36:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725474994; bh=kCdp6qbm02FjJHfBoplcxim+XA9K6QLdwFtPtOJRNWA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=u0fbtiLwl4g5fj9+V87uF6QZQjtWfvqxN5P7oKVW4GtWVFXi8CHjhFDv6KFlWc90l tb3OH8ZqrSPSsyHd16vm1P5n3Q2QXnrtYifLbZWhOySeEmGiYF58qtOETDYuDWcC0Y OS2tYpQQgG9lfgTw8HY1HrXwMU5a4R8Lf8+bBmJ0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-44960: usb: gadget: core: Check for unset descriptor Date: Wed, 4 Sep 2024 20:36:20 +0200 Message-ID: <2024090413-CVE-2024-44960-039b@gregkh> X-Mailer: git-send-email 2.46.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=3398; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kCdp6qbm02FjJHfBoplcxim+XA9K6QLdwFtPtOJRNWA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk3Vsy9Ef57+6/nm/Sfp2/22BfGmM+ytac4wm6R4J11P 07vC+Tt7IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJZPExLDgob3ft8fm7hUuV ZH9IVmdFZDQuD2KYZ8twVP1qiW/jqpy5VxrSmbI2nn9+HwA= 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: core: Check for unset descriptor Make sure the descriptor has been set before looking at maxpacket. This fixes a null pointer panic in this case. This may happen if the gadget doesn't properly set up the endpoint for the current speed, or the gadget descriptors are malformed and the descriptor for the speed/endpoint are not found. No current gadget driver is known to have this problem, but this may cause a hard-to-find bug during development of new gadgets. The Linux kernel CVE team has assigned CVE-2024-44960 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19.82 with commit d1c188d330ca and fixed in 4.19.320 with commit ba15815dd24c Issue introduced in 5.4 with commit 54f83b8c8ea9 and fixed in 5.4.282 with commit df8e734ae5e6 Issue introduced in 5.4 with commit 54f83b8c8ea9 and fixed in 5.10.224 with commit 7cc9ebcfe58b Issue introduced in 5.4 with commit 54f83b8c8ea9 and fixed in 5.15.165 with commit 50c5248b0ea8 Issue introduced in 5.4 with commit 54f83b8c8ea9 and fixed in 6.1.105 with commit a0362cd6e503 Issue introduced in 5.4 with commit 54f83b8c8ea9 and fixed in 6.6.46 with commit 1a9df57d5745 Issue introduced in 5.4 with commit 54f83b8c8ea9 and fixed in 6.10.5 with commit 716cba46f73a Issue introduced in 5.4 with commit 54f83b8c8ea9 and fixed in 6.11-rc3 with commit 973a57891608 Issue introduced in 3.16.80 with commit d7e3f2fe0137 Issue introduced in 4.4.199 with commit 85c9ece11264 Issue introduced in 4.9.199 with commit fc71e39a6c07 Issue introduced in 4.14.152 with commit 94f5de2eefae Issue introduced in 5.3.9 with commit 8212b44b7109 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-44960 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/udc/core.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/ba15815dd24cc5ec0d23e2170dc58c7db1e03b4a https://git.kernel.org/stable/c/df8e734ae5e605348aa0ca2498aedb73e815f244 https://git.kernel.org/stable/c/7cc9ebcfe58be22f18056ad8bc6272d120bdcb3e https://git.kernel.org/stable/c/50c5248b0ea8aae0529fdf28dac42a41312d3b62 https://git.kernel.org/stable/c/a0362cd6e503278add954123957fd47990e8d9bf https://git.kernel.org/stable/c/1a9df57d57452b104c46c918569143cf21d7ebf1 https://git.kernel.org/stable/c/716cba46f73a92645cf13eded8d257ed48afc2a4 https://git.kernel.org/stable/c/973a57891608a98e894db2887f278777f564de18