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 2125E144D16 for ; Tue, 21 May 2024 15:35:13 +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=1716305713; cv=none; b=p7F29JFPI6S/KD63agL8JFBuqCjmPWiQnq2FZkgfEcc6Tl2Z9ou7zoUyObl5qxHrQ8bNLeDETi26U7+vhF+n9jscili+Jy+LJn5DYTd8OEJq+9WnqxfXTpMdSvDDc2+2rgKUuv646nAuHyYfmFHI4nkF1oC7KI3J2kgZs2xFsJw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305713; c=relaxed/simple; bh=Wed4YFSHvMay/gxNtbWDPO/vOEe74lbjU17bpUovJMw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QDpXDJlpT20CJeqvDG+lpDOjv68W+qdLDAgq3lVft5IQI5BqaYGdKi+rmJM3Dr6Z+J1jDXBj3aDiJ/GtpLoKYAl0/R8SRUPyKXCLC/IBvwXpLkWvuxHa/8QYTeLB/fX7e1rItPLEajlD14AHtljnZH63myqXIPxCinC7FkSP5BM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=g5jsqdwX; 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="g5jsqdwX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FE65C4AF0D; Tue, 21 May 2024 15:35:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305713; bh=Wed4YFSHvMay/gxNtbWDPO/vOEe74lbjU17bpUovJMw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=g5jsqdwXwZh491c5oFZLG4I8Vq9vtglf4tB1de7fyNvhnWF8+AYLzkF9mfA1rDOxL 4bygj8lmDeXrosYevQpNNRa3+i4WkXgLlAunr3Q/L8nINVFr/aCWXZcBEsIugcHxih wAuSD1DbFNxynRF6DCtZSUwBaN2+0AKMqGfQfemQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52781: usb: config: fix iteration issue in 'usb_get_bos_descriptor()' Date: Tue, 21 May 2024 17:31:17 +0200 Message-ID: <2024052153-CVE-2023-52781-8f04@gregkh> X-Mailer: git-send-email 2.45.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=3111; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Wed4YFSHvMay/gxNtbWDPO/vOEe74lbjU17bpUovJMw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++3TvvX139e69ZY9SzIXTPYydUxldK9WXnRS+tpfli RzDDe+UjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI4yeG+VUBjPZvf0a68a1K 4nwwP23p9W07WBnm58uqmrlNfd3cpHhGXmbuq50MB9enAAA= 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: config: fix iteration issue in 'usb_get_bos_descriptor()' The BOS descriptor defines a root descriptor and is the base descriptor for accessing a family of related descriptors. Function 'usb_get_bos_descriptor()' encounters an iteration issue when skipping the 'USB_DT_DEVICE_CAPABILITY' descriptor type. This results in the same descriptor being read repeatedly. To address this issue, a 'goto' statement is introduced to ensure that the pointer and the amount read is updated correctly. This ensures that the function iterates to the next descriptor instead of reading the same descriptor repeatedly. The Linux kernel CVE team has assigned CVE-2023-52781 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit 3dd550a2d365 and fixed in 5.10.203 with commit 9ef94ec8e52e Issue introduced in 5.4 with commit 3dd550a2d365 and fixed in 5.15.142 with commit 64c27b7b2357 Issue introduced in 5.4 with commit 3dd550a2d365 and fixed in 6.1.66 with commit f89fef7710b2 Issue introduced in 5.4 with commit 3dd550a2d365 and fixed in 6.6.4 with commit 7c0244cc311a Issue introduced in 5.4 with commit 3dd550a2d365 and fixed in 6.7 with commit 974bba5c118f Issue introduced in 3.16.79 with commit 77ce180d68be Issue introduced in 4.4.194 with commit 20a07e1aadcd Issue introduced in 4.9.194 with commit a5c051b6503c Issue introduced in 4.14.146 with commit ea4a173d8358 Issue introduced in 4.19.75 with commit 77d4e2a05885 Issue introduced in 5.2.17 with commit 1fc15d29540a Issue introduced in 5.3.1 with commit 9f8dd40c68c1 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-2023-52781 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/core/config.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/9ef94ec8e52eaf7b9abc5b5f8f5b911751112223 https://git.kernel.org/stable/c/64c27b7b2357ddb38b6afebaf46d5bff4d250702 https://git.kernel.org/stable/c/f89fef7710b2ba0f7a1e46594e530dcf2f77be91 https://git.kernel.org/stable/c/7c0244cc311a4038505b73682b7c8ceaa5c7a8c8 https://git.kernel.org/stable/c/974bba5c118f4c2baf00de0356e3e4f7928b4cbc