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 0D7773E49C for ; Mon, 12 Feb 2024 18:55:30 +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=1707764131; cv=none; b=TPCdFh/rs3nPfZoM1V/vbWkIkG/UnIOXSMvSQKURAtbo/kTG440s3ywDNPdAFSL7pQjRRnCvRvCi859+bAKuDPIEEhGWUdUdxj49fuTH/Mj+6DdTBMCXX8oTesxetT85Fb+ukWS7qRe83L5/iEXQgG+2OKu82d4vPBNv1yHFegc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707764131; c=relaxed/simple; bh=QW5nHgEwoIJ4369UKPrgKil70wmArZTM8m8DqPDfkWI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DKWlcy8fGs73vB5WJwIvi2zNNJ8FDo1cSJ7e+MUtqtJ+0nHxllk6E+QYdI6QE3KNSbxqWI/TE3UJ2UpPSujy6TdmU8+ydRvOMJkDB7PQ7SZ1dMOv61NkUsqzdGsCLHqcv+lq9uBsAxNzl6zLpr213x79f3AFZAUXNuUiSK61qDg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mibdKQm5; 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="mibdKQm5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 189C2C433C7; Mon, 12 Feb 2024 18:55:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1707764130; bh=QW5nHgEwoIJ4369UKPrgKil70wmArZTM8m8DqPDfkWI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mibdKQm5jvL3a9zNhu2PH0rQN9Z25krqgOR0E/X8hyNC+IPaCwM+Ln6KPbR2NxbIF O+luT4FYz9Bxsj5C0MbGoCaQJUeL/OyMqpD1BY+Gcpn3kbT6EUtLqo2rM3YogDi3ZS l5PJO3QY7bXxcVhwPR2t1BPklh56LjdxGCmi8bPs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: gregkh@linuxfoundation.org Subject: TESTING_NOT_REAL_ID_YET: USB: gadget: bRequestType is a bitfield, not a enum - test 5 Date: Mon, 12 Feb 2024 19:55:16 +0100 Message-ID: <2024021216-daybreak-flavored-90c6@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=1494; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=txGfZ9zbRzb6RZWYbTvW1peEZIsCdK2c5Q90C0xDSIY=; b=owGbwMvMwCRo6H6F97bub03G02pJDKmnMqf0+WeoHrl93aXEabpeKcMLG1f2tSkXtxp8FjVRy zyXeFilI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaSf5thnrXPrwpH2RjtOKHu KexqJsJb1beaMixYWhMWv0S0LvpKYZx+5lE1ZrEYz2YA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: gregkh@linuxfoundation.org Description =========== USB: gadget: bRequestType is a bitfield, not a enum Szymon rightly pointed out that the previous check for the endpoint direction in bRequestType was not looking at only the bit involved, but rather the whole value. Normally this is ok, but for some request types, bits other than bit 8 could be set and the check for the endpoint length could not stall correctly. Fix that up by only checking the single bit. The Linux kernel CVE team has assigned TESTING_NOT_REAL_ID_YET to this issue. Affected versions ================= Issue introduced in 4.4.295 and fixed in 4.4.296 Issue introduced in 4.9.293 and fixed in 4.9.294 Issue introduced in 4.14.258 and fixed in 4.14.259 Issue introduced in 4.19.221 and fixed in 4.19.222 Issue introduced in 5.4.165 and fixed in 5.4.168 Issue introduced in 5.10.85 and fixed in 5.10.88 Issue introduced in 5.15.8 and fixed in 5.15.11 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 change to resolve this issue can be found at: https://git.kernel.org/stable/linux/c/f08adf5add9a071160c68bb2a61d697f39ab0758