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 7D75926AC1 for ; Tue, 21 May 2024 15:34:01 +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=1716305641; cv=none; b=cghgy6rrTLAdwowJmSPqpEqrW0GckGZAb5v4i8l05vG8XhE7RBTnQGEfsXrnu15XQ63TOCd/2m53EAmxIk5ZDehPzP+VRUOB0VWuJmeUm3WZ5dvlQ0pD/exEjx9PPtoO0vB+Okft2yyTG+lnG/6+SjQROtcYdjHAWlJly6FVLIs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305641; c=relaxed/simple; bh=j5v/nl9zAFBbmmEGqh33bqi+6pV3+6twDqONJZG8itM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S7iWJBfNrEtQVfn+PgN709GJMv6wDwiMk7y7UUvUp5kWfm6NoQOXbo7V3VZooXeEl9RexFt2Y45eLgZRfi/trzz73Ha/dm+eVyXl8JY4sCy9aPwxa6ae0Xzczr71KiwjNbH+P/N16m5ydfImCYaWlZxImA52Snj8y2xndezBToY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rvH/c67x; 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="rvH/c67x" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AECB8C2BD11; Tue, 21 May 2024 15:34:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305641; bh=j5v/nl9zAFBbmmEGqh33bqi+6pV3+6twDqONJZG8itM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rvH/c67xtuE6y3Gu8kVzTRuSX+HHWn2fjjh+hoFqVV9VzX0UxWECxYUlqDq2KeFfl jiAd8xoDIdbC3TqIRDNSqizcowIq92SHZJy2MprXmnNOHOTUpovaA4+z7MIEbOn5a5 BgUAoYZirbiyYgtb6GUkftA0HrjBzrIXY2kWRgk8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52756: pwm: Fix double shift bug Date: Tue, 21 May 2024 17:30:52 +0200 Message-ID: <2024052146-CVE-2023-52756-f694@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=2692; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=j5v/nl9zAFBbmmEGqh33bqi+6pV3+6twDqONJZG8itM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++9Sk11Rv7fN8l56xR0Hp06mvgjbaNhyPpUXdk63yz xrfCPjVEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNZ/YthwWZtZYYTFW90jfb3 CqyqXiOkGWvXz7Dg6NmHh82XTvyYtcd9r4SE4NOZLSvmAwA= 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: pwm: Fix double shift bug These enums are passed to set/test_bit(). The set/test_bit() functions take a bit number instead of a shifted value. Passing a shifted value is a double shift bug like doing BIT(BIT(1)). The double shift bug doesn't cause a problem here because we are only checking 0 and 1 but if the value was 5 or above then it can lead to a buffer overflow. The Linux kernel CVE team has assigned CVE-2023-52756 to this issue. Affected and fixed versions =========================== Fixed in 4.14.331 with commit bce1f7c7e981 Fixed in 4.19.300 with commit a98ff250b5af Fixed in 5.4.262 with commit eca19db60f99 Fixed in 5.10.202 with commit e52518b9cb9f Fixed in 5.15.140 with commit a7ee519e8095 Fixed in 6.1.64 with commit 1fb3a9c59e7f Fixed in 6.5.13 with commit c19a8794bf4f Fixed in 6.6.3 with commit 45d0a298e05a Fixed in 6.7 with commit d27abbfd4888 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-2023-52756 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: include/linux/pwm.h 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/bce1f7c7e9812da57de1dda293cba87c693e9958 https://git.kernel.org/stable/c/a98ff250b5af87f92f17bb9725cb21de1931ee57 https://git.kernel.org/stable/c/eca19db60f99925461f49c3fd743733881395728 https://git.kernel.org/stable/c/e52518b9cb9fc98fc043c8fb2b8cfc619ca8a88b https://git.kernel.org/stable/c/a7ee519e8095d9c834086d0ff40da11415e1e4d7 https://git.kernel.org/stable/c/1fb3a9c59e7f7d2b1d737a0d6e02e31d5b516455 https://git.kernel.org/stable/c/c19a8794bf4fe45cff997f07a75ea84cc9e5d89c https://git.kernel.org/stable/c/45d0a298e05adee521f6fe605d6a88341ba07edd https://git.kernel.org/stable/c/d27abbfd4888d79dd24baf50e774631046ac4732