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 B13161547EE for ; Thu, 27 Feb 2025 02:08:54 +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=1740622134; cv=none; b=fQ6pRu0j6aSe9Q2kndZCzOkU2VMrG+Pc9+9/OIYrImA98IIrnbr6fRcUhUrN/qTCBVm3pKBiD5NfSsv886LKbv36feQdb3BFol4W9ZE/KegzABoyVSw7ctN7pVl699oSIE3S89KVuY9ax9bR9SBTwAGVCLsojyWh9ASZmrtdbuw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622134; c=relaxed/simple; bh=WIMG5fCBAxSySgXwg8fVwSkypEzZhX94StXmBEiaBYM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Nb7mTrE3o31DIeeqYlHalVb5Eyl7di3cIOeOLjTftnQ0SfjMt6Zt7z3a+Z2gzefTtoOUJd8YQLImJK9LY4r1wvi8ouwKSq+q9u+yWxvgLWXHP5itr+n89L5OG2GC9+MRKO/V3epII+vXqDwpXy5mp1+AE64twGA/QbTNhxGNmsg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BnuGq8z4; 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="BnuGq8z4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 829C3C4CED6; Thu, 27 Feb 2025 02:08:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622134; bh=WIMG5fCBAxSySgXwg8fVwSkypEzZhX94StXmBEiaBYM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=BnuGq8z47vVX8P1Br++NKm7uWFs2iNRP2TghWtTAzEL0j3gqtWn9GKHagRPDMSxg7 PThr6iXGZ/e8NL+9cKvWh7/fvsJIR5Kcjm7qACNHE+c8ZVnb2gjZAWmNRsylDA17tB sIYfZdIqfBplq81HHHxK+wlewQzpL2q/GzNh6cDg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-57953: rtc: tps6594: Fix integer overflow on 32bit systems Date: Wed, 26 Feb 2025 18:05:31 -0800 Message-ID: <2025022631-CVE-2024-57953-9830@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=2570; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WIMG5fCBAxSySgXwg8fVwSkypEzZhX94StXmBEiaBYM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T+TMZMjS+3rlDMvUhPSsNdunvc5coHsu8cUEb5fDX jtPndJ164hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJdAcxzA/65zl79xwdsf2q T9qcVZIVOpzeFDIsmL1hk0/SQYbNK8++W/SBJXvLYhfZSQA= 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: rtc: tps6594: Fix integer overflow on 32bit systems The problem is this multiply in tps6594_rtc_set_offset() tmp = offset * TICKS_PER_HOUR; The "tmp" variable is an s64 but "offset" is a long in the (-277774)-277774 range. On 32bit systems a long can hold numbers up to approximately two billion. The number of TICKS_PER_HOUR is really large, (32768 * 3600) or roughly a hundred million. When you start multiplying by a hundred million it doesn't take long to overflow the two billion mark. Probably the safest way to fix this is to change the type of TICKS_PER_HOUR to long long because it's such a large number. The Linux kernel CVE team has assigned CVE-2024-57953 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 9f67c1e63976d3403f0b250b03ffe959c890f9db and fixed in 6.12.13 with commit 5127f3cbfc78a7b301b86328247230bec47e0bb3 Issue introduced in 6.8 with commit 9f67c1e63976d3403f0b250b03ffe959c890f9db and fixed in 6.13.2 with commit 53b0c7b15accb18d15d95c7fe68f61630ebfd1ca Issue introduced in 6.8 with commit 9f67c1e63976d3403f0b250b03ffe959c890f9db and fixed in 6.14-rc1 with commit 09c4a610153286cef54d4f0c85398f4e32fc227e 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-2024-57953 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/rtc/rtc-tps6594.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/5127f3cbfc78a7b301b86328247230bec47e0bb3 https://git.kernel.org/stable/c/53b0c7b15accb18d15d95c7fe68f61630ebfd1ca https://git.kernel.org/stable/c/09c4a610153286cef54d4f0c85398f4e32fc227e