From mboxrd@z Thu Jan 1 00:00:00 1970 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 B502A3F9E5 for ; Mon, 12 Feb 2024 18:07:43 +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=1707761263; cv=none; b=RLEPgdADItPYXqt0pLzLyB0uXCxAP6aWKNVWHT+/HnAIxxE+ee+AH7u7dcAJ9l6bdQkEUU0+MYBeuazcBFOJo6EidoErimVjWPGqrHqGVPmlOwEWOaReC0oqeTnax7QxaAoa0uc9LxOsD9zC0+JzXZibHAdWBI2I6bSxXHcApUE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707761263; c=relaxed/simple; bh=renKDZ1ydO4xC5zLHImlJBaAyL2sE7QnFdVfWhkkhYQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U+/5get4Cee2GveAzDiYgaLBl2WLMbANp2elGy6fhgHQnJ8zJBvR4zAxe9BWBkGEByXu3feV0UYfBpL7azPt3+aCzXj/HaTqJOXcs5ZZx8UNT/rgQMt3HKY/+6jU+iBAT0aUKnR9CQKUjANGQb+n2C1WpUMGJ1N7KgAvDCqK9nc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qC0dGCLE; 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="qC0dGCLE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3DB4C433C7; Mon, 12 Feb 2024 18:07:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1707761263; bh=renKDZ1ydO4xC5zLHImlJBaAyL2sE7QnFdVfWhkkhYQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qC0dGCLEwwg9Bh1AvKRnGpF6PAWAveeF6KC6UeeS/XBASTf5lT6lLiGt6U6oFcgwK 1ZfJF+TfEskZK3HHpm/uReXWUZPBmlvGfmhQdSBDiGGEzpPS7jZ+l4wA7nx9rx1grR fbdv3Gie4zOfKYAAXLPrDUDT3xctE4ka/phkgncQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Linux Kernel CVE team Subject: TESTING_NOT_REAL_ID_YET: USB: gadget: bRequestType is a bitfield, not a enum Date: Mon, 12 Feb 2024 19:07:23 +0100 Message-ID: <20240212180728.947800-1-gregkh@linuxfoundation.org> 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: Content-Transfer-Encoding: 8bit From: Linux Kernel CVE team 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. Mitigation ========== The individual change to resolve this issue can be found at: https://git.kernel.org/stable/linux/c/f08adf5add9a071160c68bb2a61d697f39ab0758 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 Recomendation ============= The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are not 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.