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 17A5569E18 for ; Sat, 17 Feb 2024 11:50:35 +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=1708170636; cv=none; b=kTNZj7wRVq50yvXfohSPMfp8yfN6+ynGlSvvZfmiRRckqhOWbI1cBW7h+wiDlTD9g4LSGfpge/r4PdMqVpZHYgsiRRk6JaIx694tTaOL0M9nIKUKllGzI9spspsjlEFhCRR3PZXqqM7tby8GyNA4LUQN6sad3f63sCvOIIeAg44= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708170636; c=relaxed/simple; bh=4viQIDLluZfcuQKYZNuMWmUZJGvf3i4MZgZO1S6yDMc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=h06uTXONCKcwt5KWfCR2KEZ8f/tCycHYIzY/83wxxa9pYOwXxuh8vCCsm0DWGyKxUlWzfayN2obI2LN3Psy3RwrkHQoQAPBBUrQu1CxH/UYJLnQ2HbQDuFvsK6ACpcp2aoJqh59RuGtlMN/1jdxwUeYWHHBo8N/IoQ+JQRh+Kqk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uEZjYGmg; 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="uEZjYGmg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44BDBC433F1; Sat, 17 Feb 2024 11:50:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708170635; bh=4viQIDLluZfcuQKYZNuMWmUZJGvf3i4MZgZO1S6yDMc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=uEZjYGmg3zrttyUMMahyX5lNY1plizCgvo7Abdti1lvn8ZMQcduC3amFX2NUan1Na 0O4PB6Ig6V/jidK6QyLrS72A2sBcGWn35HeaRJVo/xkdFP3zk3b/BECVpLpIrSJRvc o386kFUIco75A2TCP0K4cSxmA7fkz+wKg7j8rlEU= 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: Sat, 17 Feb 2024 12:50:32 +0100 Message-ID: <2024021731-denim-headscarf-0644@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=2284; i=gregkh@kernel.org; h=from:subject:message-id; bh=4viQIDLluZfcuQKYZNuMWmUZJGvf3i4MZgZO1S6yDMc=; b=owGbwMvMwCRo6H6F97bub03G02pJDKkX5nawzKhXlDo5Nf5g5L2fxyTMNi14acF//U9CK/+O2 1yck3d86IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJpG9jWLCXbfvXisTwj10b GU8wdSXPn3LlmxTDglv8eeWsV96/DdcIOG30V3W2p7nXBgA= 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. Affected files ============== The file(s) affected by this issue are: drivers/usb/gadget/composite.c drivers/usb/gadget/legacy/dbgp.c drivers/usb/gadget/legacy/inode.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/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