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 5AF6B21660F for ; Wed, 26 Feb 2025 02:14:12 +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=1740536052; cv=none; b=SAKPOMKN/+xHOtGkbSgyK+TF5gIc8I9dnGqz8RSZ5ukglnXOH3V6s+RqtdbQ9uxKUpqtDAqqk5gxmo/4UqCNC/wnAailQvEjs4F4oUI+2knVQN0m2YY/OrceWoXZ9/A1r9ORsayJqgDqE2/40a9rKdGcxndj9TZns3Qt+QJInHI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536052; c=relaxed/simple; bh=2cXoFgyv5RKDwALGwhSMoImNavmAmMSL7lbOCLdaVYY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CzaSFppabRVqdrKx2YBLt8oIqgNOBHmTt4/qGexReD6VQSRil7vVQ3KOg/bYWCFmmVvyI9JViom+9rRPXBmACKynlErvIy8WmOPVHBNjrYQ+UNankKAL2+Dmi3zvROF2CB5lqqXDO1hbqHyo2MQZm5km/VeByywi23wRLyFNkMA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Kw2rK2yR; 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="Kw2rK2yR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 305BEC4CEDD; Wed, 26 Feb 2025 02:14:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536052; bh=2cXoFgyv5RKDwALGwhSMoImNavmAmMSL7lbOCLdaVYY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Kw2rK2yRL9FbJuRkcd6cZ+pGL/yJMBHTsNbwga+DkdgZkRQ456vI3bbg8tq3IB18Y 40FRkKlw1Z+DuZuBfPaaFkjD5LQwFCgDFZSqKs6EAF97ck/rbxiqid46QN9DHU0Vvp zz60ZXOQbKJpIWv90SAZTg8BtbMCezt8r9ec3woY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49387: watchdog: rzg2l_wdt: Fix 32bit overflow issue Date: Wed, 26 Feb 2025 03:11:01 +0100 Message-ID: <2025022648-CVE-2022-49387-b17b@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=2320; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2cXoFgyv5RKDwALGwhSMoImNavmAmMSL7lbOCLdaVYY=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yt9oKxfly7fb/Tjf3SvUn3z17Pl9/Q5tcsvXGq7/6 8zpdSeiI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYy4S3D/GxWic9Pzty3u6GW 2s95ke1GubalPMOCi0urWI/2+167bnruiU6gtY+r0NwuAA== 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: watchdog: rzg2l_wdt: Fix 32bit overflow issue The value of timer_cycle_us can be 0 due to 32bit overflow. For eg:- If we assign the counter value "0xfff" for computing maxval. This patch fixes this issue by appending ULL to 1024, so that it is promoted to 64bit. This patch also fixes the warning message, 'watchdog: Invalid min and max timeout values, resetting to 0!'. The Linux kernel CVE team has assigned CVE-2022-49387 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 2cbc5cd0b55fa2310cc557c77b0665f5e00272de and fixed in 5.17.15 with commit e07b9fa0dc32b492de85528caaf9f0c605d8424f Issue introduced in 5.17 with commit 2cbc5cd0b55fa2310cc557c77b0665f5e00272de and fixed in 5.18.4 with commit b95a47667d34e76c2c9013f8e3b1e5039a5a0b76 Issue introduced in 5.17 with commit 2cbc5cd0b55fa2310cc557c77b0665f5e00272de and fixed in 5.19 with commit ea2949df22a533cdf75e4583c00b1ce94cd5a83b 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-49387 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/watchdog/rzg2l_wdt.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/e07b9fa0dc32b492de85528caaf9f0c605d8424f https://git.kernel.org/stable/c/b95a47667d34e76c2c9013f8e3b1e5039a5a0b76 https://git.kernel.org/stable/c/ea2949df22a533cdf75e4583c00b1ce94cd5a83b