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 3E06B12FB18 for ; Fri, 16 Feb 2024 16:26:32 +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=1708100793; cv=none; b=ItLd0638xge1NzxFFoUDgsmGVPElsWSJ7LLaeKo9KCH12Bl9kg7Ku99IsskBVMnFHGLrnJBE097nIKZeR/0t2X9fDU+tz+SQqQLmTv7TaN5yqAKq5Q5sNOu2XtlwmPKIpRGkadjKI8AclIISI9NNZbFXnKgdN+C5vEBQiOw+C+8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708100793; c=relaxed/simple; bh=iX6Bs52LMHhevNIyjMnw2/lfyOXw1xyVcgqzkIJvIwE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=taUo3OX4hDxTfi+BmsUf6NnEZD0WxpqotiLmhOBNBO5e+WGEmwL2vhChR64hVBI5M8rSBsC3SuAqIfeH3pM6mOGiU7rhheBx2Dv8WmsfPpInyX30cuxRq1UkcJDlID6Iog2z3LZJDUC9Kz1wWSxZ3FXmnJzqhcawtW5HfHXyRdg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=doearHYm; 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="doearHYm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3662AC433C7; Fri, 16 Feb 2024 16:26:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708100792; bh=iX6Bs52LMHhevNIyjMnw2/lfyOXw1xyVcgqzkIJvIwE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=doearHYmcOlQaIsp8jy0f/gmrt3M4cVf9v3hDG3V7JQ/6cR0ajrho6MzHwXrjzSOn 5sSYPQzISVIXE0sdv1o1NXrAkFteUFkDSldX7gCF035oLwOSRyto2kGoviRzspCHBT Abj83Tb14UfRT9gLub1JniuEBAU218HuDneP/QzA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: TESTING_NOT_REAL_ID_YET: USB: gadget: detect too-big endpoint 0 requests Date: Fri, 16 Feb 2024 17:26:24 +0100 Message-ID: <2024021624-refract-festive-1697@gregkh> X-Mailer: git-send-email 2.43.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=2101; i=gregkh@kernel.org; h=from:subject:message-id; bh=iX6Bs52LMHhevNIyjMnw2/lfyOXw1xyVcgqzkIJvIwE=; b=owGbwMvMwCRo6H6F97bub03G02pJDKnnezZ2Rbrvf3zWZNu2ukMLN6y4oRa0MnKpkXfUq1eaH 6wvFfEe7IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJBAUzLNgY31yeU3Vq7V6d rn8VeyyfVebPt2KYnzAznDt73ZQGg+oqrx1CN+o/SeoeAwA= X-Developer-Key: i=gregkh@kernel.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== USB: gadget: detect too-big endpoint 0 requests Sometimes USB hosts can ask for buffers that are too large from endpoint 0, which should not be allowed. If this happens for OUT requests, stall the endpoint, but for IN requests, trim the request size to the endpoint buffer size. The Linux kernel CVE team has assigned TESTING_NOT_REAL_ID_YET to this issue. Affected and fixed versions =========================== Fixed in 4.4.295 with commit 93cd7100fe47 Fixed in 4.9.293 with commit d2ca6859ea96 Fixed in 4.14.258 with commit e7c8afee1491 Fixed in 4.19.221 with commit 13e45e7a262d Fixed in 5.4.165 with commit fd6de5a0cd42 Fixed in 5.10.85 with commit 7193ad3e50e5 Fixed in 5.15.8 with commit 36dfdf11af49 Fixed in 5.16 with commit 153a2d7e3350 Please see https://www.kernel.org or 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=TESTING_NOT_REAL_ID_YET will be updated if fixes are backported, please check that for the most up to date information about this issue. 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/93cd7100fe47 https://git.kernel.org/stable/c/d2ca6859ea96 https://git.kernel.org/stable/c/e7c8afee1491 https://git.kernel.org/stable/c/13e45e7a262d https://git.kernel.org/stable/c/fd6de5a0cd42 https://git.kernel.org/stable/c/7193ad3e50e5 https://git.kernel.org/stable/c/36dfdf11af49 https://git.kernel.org/stable/c/153a2d7e3350