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 BE499217727 for ; Wed, 26 Feb 2025 02:24: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=1740536644; cv=none; b=cD6DPThgS8Lw+XL60iDaxAYEnpN+TZpM8gf+uGlS27UqpB8NdxuKJSBwi/u7TbdkpHPHB7jEc/EN1RA1XNYEuziMjYxHPbDCm91/+9koKTwn5uRjan35/QS5iwJY0dHLpb94IkYo/9Lw9rC7A3c0IdQ43hNzW/ANCGHcUbei7zQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536644; c=relaxed/simple; bh=a3i497cuJyvz/gbSWmPLYch7EPZm3U2d/Dj3lS2p0ig=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HRUfS4ONyuXTby+s2hYY+a4RDCBh3Wi9ahcfqgG/bSx05v6Bo3N6+aQUA0D5ZB26zzje9Qvtz468C01BRHSbT7bqsHgnyBfpBCVZu2KTr8036/PoB68AzUMQtkfpjwzc6l3qcH84BZypNZVqCG/NOdH1cOhtv1+r3wwZMqDJdJY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pYirtVCf; 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="pYirtVCf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29E16C4CEDD; Wed, 26 Feb 2025 02:24:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536644; bh=a3i497cuJyvz/gbSWmPLYch7EPZm3U2d/Dj3lS2p0ig=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pYirtVCfQ7M5Z0+fCZdG6RKk8jYlTvYb2LwtFCn0LMFk+tLyTmByQ7koGsUUWSpCa Yc87zZ8R4+Ht8ahbXOIdikCnMyquAG7iB1usCPcMIAziAVVXl6nrMMeNLgdAe1vGkT XA8DR2DcotGfRWrqTBzc+aveltwaeSRVf07aKCNk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49570: gpio: gpio-xilinx: Fix integer overflow Date: Wed, 26 Feb 2025 03:22:13 +0100 Message-ID: <2025022606-CVE-2022-49570-468c@gregkh> X-Mailer: git-send-email 2.48.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=2122; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=a3i497cuJyvz/gbSWmPLYch7EPZm3U2d/Dj3lS2p0ig=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qs697+X4fWJ/tS+zedvth3f7TtSIncw4v+CLxYWn5 x9bqs+q6YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJzDvEMN//UnL15qWr1sTk x05eoVE62T3yFQ/Dggnx36c6zf/b+TOhL8lArJPX1ODNPwA= 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: gpio-xilinx: Fix integer overflow Current implementation is not able to configure more than 32 pins due to incorrect data type. So type casting with unsigned long to avoid it. The Linux kernel CVE team has assigned CVE-2022-49570 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 02b3f84d9080b0f4297f31258307f626a43faba5 and fixed in 5.15.58 with commit e129e5486b981d324057e6986059f852658b0d00 Issue introduced in 5.14 with commit 02b3f84d9080b0f4297f31258307f626a43faba5 and fixed in 5.18.15 with commit 6f16a5390640807dde420ee5ccbc4c95577aea6a Issue introduced in 5.14 with commit 02b3f84d9080b0f4297f31258307f626a43faba5 and fixed in 5.19 with commit 32c094a09d5829ad9b02cdf667569aefa8de0ea6 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-2022-49570 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-xilinx.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/e129e5486b981d324057e6986059f852658b0d00 https://git.kernel.org/stable/c/6f16a5390640807dde420ee5ccbc4c95577aea6a https://git.kernel.org/stable/c/32c094a09d5829ad9b02cdf667569aefa8de0ea6