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 F0D71138496 for ; Fri, 16 Feb 2024 15:27: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=1708097256; cv=none; b=gCEnKlkRzGZtBHSw25gnwkwdqdfnN0Da/e6qvJM/4vqft4HS09LKfYa9lWMbT9JmhfE/fTRaY6xxJD+60hrH/d7XC1BXNok0y+Tyaka+LIlQjjq7RQoP5GdspY+SzdxeabkZh3DUHuwX40BVCivPOEyW3qrftojDmPAk+SscW90= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708097256; c=relaxed/simple; bh=pzYCHQViQ1rwQoirjjK/qd3RGRMiA4HmMlapUnoBIP4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=O3rHvCYfllJze344qfAZMfudY7w9hYS9cI6tKoj5c/Kz5YDUE1Tj2gFY22yN/9YsXUxK98ggp1y7g+6Ws5JKCFQz4sT+2gziOpclBA2/1PRRniIWLbkhxRGU0UEm3o6lN08dx7ub9abhEypjLi5efmPjHynXyyhVeYhjVVQPDWA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=00xPbDcV; 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="00xPbDcV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0AC8EC433C7; Fri, 16 Feb 2024 15:27:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708097255; bh=pzYCHQViQ1rwQoirjjK/qd3RGRMiA4HmMlapUnoBIP4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=00xPbDcVbDRXdV/Aw8AzNQJDK1ltmoJYZtqACLKLBsyMRbicrxkvPZkF2ZtsBVwKP c8Mb626iXaYufBYpCRmnEewixkRp4cBZISDwVyylCMghLLENT/AACRWYVDlUt4Br9L LwtLplWSNDNLVk5e+txvT0JhtxR1x08OUJS/CJrQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: TESTING_NOT_REAL_ID_YET: USB: gadget: bRequestType is a bitfield, not a enum Date: Fri, 16 Feb 2024 16:27:00 +0100 Message-ID: <2024021605-mutation-unselect-e463@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=2591; i=gregkh@kernel.org; h=from:subject:message-id; bh=tec82I27FjnBUVN9SxGhffcrTbKcdgl5eUDM15/PyE0=; b=owGbwMvMwCRo6H6F97bub03G02pJDKnn604ubWAv6bacu+4Eq/ipxu/vxbkZLfILzEz5WrYuW buc89TdjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIkZcMC2ZZnJdfp/tEtdVu zx+5dtXKQgsLUYY5PL8LS30vP/HnUzJcl3Lg0dcjJm6cAA== X-Developer-Key: i=gregkh@kernel.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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 and fixed versions =========================== Issue introduced in 4.4.295 with commit 93cd7100fe47 and fixed in 4.4.296 with commit 2983866fc137 Issue introduced in 4.9.293 with commit d2ca6859ea96 and fixed in 4.9.294 with commit 4dbf2224984f Issue introduced in 4.14.258 with commit e7c8afee1491 and fixed in 4.14.259 with commit 9b3a3a363591 Issue introduced in 4.19.221 with commit 13e45e7a262d and fixed in 4.19.222 with commit 05da4194e81a Issue introduced in 5.4.165 with commit fd6de5a0cd42 and fixed in 5.4.168 with commit aae3448b78d9 Issue introduced in 5.10.85 with commit 7193ad3e50e5 and fixed in 5.10.88 with commit 2b54f485f2c1 Issue introduced in 5.15.8 with commit 36dfdf11af49 and fixed in 5.15.11 with commit abd3a33b3f2b 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/linux/c/2983866fc137 https://git.kernel.org/stable/linux/c/4dbf2224984f https://git.kernel.org/stable/linux/c/9b3a3a363591 https://git.kernel.org/stable/linux/c/05da4194e81a https://git.kernel.org/stable/linux/c/aae3448b78d9 https://git.kernel.org/stable/linux/c/2b54f485f2c1 https://git.kernel.org/stable/linux/c/abd3a33b3f2b