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 832DE4644F for ; Mon, 12 Feb 2024 19:01: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=1707764494; cv=none; b=P444MIoM9bcIKlepOUsBNXDoYiwIf8pQA2NfyrB+efO/u7ZTNVk+Xfq+jHf0gpRFhKcDg0KFamiOVl1CqVKjHehZyM5BGov1GmXmizyrnlQGr2avUT2IFVje6UlDjuzdAIys2GmGp8XXxm8xVz6/jPecIzHrd6Dzu9CgCbrV0Ts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707764494; c=relaxed/simple; bh=JJRqLeQvIgFTf3jIyjaKnaoxys6tGms0ge+O26ZAUsA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Bg7vDENu0MAd5X3oElw/5N4LSi2NjSS0RbZCSwSUbPQ0OIa+ta/sKIIveX7E+u5eou2xl5IEv5Vhd+gYBqFO38NArUcbDyjXQa/a5mGKBp5tILU8IbhJtKubiUq/ZV8FXwXROfacEo3o3fiFSOtxllwWhTGfBbFj8+tVSqGBCLM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CazgW6cH; 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="CazgW6cH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4CA9C433F1; Mon, 12 Feb 2024 19:01:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1707764494; bh=JJRqLeQvIgFTf3jIyjaKnaoxys6tGms0ge+O26ZAUsA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CazgW6cHdnV1BMK400Tr4JSU7QAiuP4IDgooo0/WXthSO2PVkiNzYNRUTl2KlAlwf DSRu2DjGAUKbJ/5FhQ44GD3L4GI1Q/5wtT/a9Yhf+nUo/9RQQ7tVnv2/4ydYVZlSqm 4V+yFg3X1a66RLaZOguBvST48pPoGRd0zSZyj6x0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg KH Subject: TESTING_NOT_REAL_ID_YET: USB: gadget: bRequestType is a bitfield, not a enum - test 6? Date: Mon, 12 Feb 2024 20:01:28 +0100 Message-ID: <2024021229-boney-abstain-f1a8@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=owGbwMvMwCRo6H6F97bub03G02pJDKmnsjlfnJ9xZfc3xYM7Du+UePX+qsF86ZmHjfOX+gWV5 3j+1LHe3BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATubqYYZ75ZJPZKds/a7Gv /ZF0SOt8/9eTFzoZFvRIr+mZ6L+87XZl1eZVv+uL14o1GAAA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg KH 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