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 772F312EBEE for ; Tue, 21 May 2024 14:22:04 +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=1716301324; cv=none; b=SkrFmw7hkUgpQqxLvGw+/QyE1nQ13+aYzBhpViaUBL+WoEcZ/hPFhm0CWkRSpFZUcLaRW1bGRCW0X5TVieWBn1OLSEPk9DQeM8yExPe9Tr4P2196/CiBo6cDKf9kuXgDjCjfkboYdTnmobirw/G9h4fz0uFJIw6uMAjDY/Pa7SE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301324; c=relaxed/simple; bh=y2kUSxQxZI5S/2EMd5Q7IxLErI/XeC+1MyoMYoVwFzs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sA8bGPBl0TOVNnhyYyygU0tZrtojqHZfK3hy+08YxoT4VGaGmFiRXDdDBdQbYsIIvQhwi1tVPTyPQxQjLRlCS9KJpaFjwarAGyxazPcJfwwsrMc+cI/27QD4ht3mbTYjOfzNpcJ6p1czCRlqMi82i0Hm39mQ1gzK/QVce+xuiMA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=O7YuRjED; 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="O7YuRjED" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01EFDC2BD11; Tue, 21 May 2024 14:22:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716301324; bh=y2kUSxQxZI5S/2EMd5Q7IxLErI/XeC+1MyoMYoVwFzs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=O7YuRjEDkMRY97+ObcdtmoUILcDhqT+v8x1B8sZqEEZ45Tg434QyxGmD/2rlwOM+Y FWK82kZO0Z1fG8YwCmdf8VYwPsBA/OLMLoUi5kb8LA7R728XWdJAHDJI/mv5SkhpBe x3U9I2IpaKX2f/SjU5GMYn7+hR0fB+G9s6j1RD4I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47263: gpio: wcd934x: Fix shift-out-of-bounds error Date: Tue, 21 May 2024 16:20:17 +0200 Message-ID: <2024052148-CVE-2021-47263-37f2@gregkh> X-Mailer: git-send-email 2.45.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=2023; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=y2kUSxQxZI5S/2EMd5Q7IxLErI/XeC+1MyoMYoVwFzs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+a1v0O/x1p0SUL/jvltgtNiMwYI+/Vo1Ig9qauUmaf T8KFxp3xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQmmjHMlXubtTlo39XuedUb 5/23/bNqmd92a4Z5RgqRuwzd0h/fNDT69PIqT2tX070tAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: gpio: wcd934x: Fix shift-out-of-bounds error bit-mask for pins 0 to 4 is BIT(0) to BIT(4) however we ended up with BIT(n - 1) which is not right, and this was caught by below usban check UBSAN: shift-out-of-bounds in drivers/gpio/gpio-wcd934x.c:34:14 The Linux kernel CVE team has assigned CVE-2021-47263 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit 59c324683400 and fixed in 5.10.44 with commit e0b518a2eb44 Issue introduced in 5.6 with commit 59c324683400 and fixed in 5.12.11 with commit dd55331d493b Issue introduced in 5.6 with commit 59c324683400 and fixed in 5.13 with commit dbec64b11c65 Please see https://www.kernel.org for 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=CVE-2021-47263 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/gpio/gpio-wcd934x.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/e0b518a2eb44d8a74c19e50f79a8ed393e96d634 https://git.kernel.org/stable/c/dd55331d493b7ea75c5db1f24d6822946fde2862 https://git.kernel.org/stable/c/dbec64b11c65d74f31427e2b9d5746fbf17bf840