CVE-2024-57953
Severity CVSS v4.0:
Pending analysis
Type:
CWE-190
Integer Overflow or Wraparound
Publication date:
27/02/2025
Last modified:
07/03/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
rtc: tps6594: Fix integer overflow on 32bit systems<br />
<br />
The problem is this multiply in tps6594_rtc_set_offset()<br />
<br />
tmp = offset * TICKS_PER_HOUR;<br />
<br />
The "tmp" variable is an s64 but "offset" is a long in the<br />
(-277774)-277774 range. On 32bit systems a long can hold numbers up to<br />
approximately two billion. The number of TICKS_PER_HOUR is really large,<br />
(32768 * 3600) or roughly a hundred million. When you start multiplying<br />
by a hundred million it doesn&#39;t take long to overflow the two billion<br />
mark.<br />
<br />
Probably the safest way to fix this is to change the type of<br />
TICKS_PER_HOUR to long long because it&#39;s such a large number.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
CPE | From | Up to |
---|---|---|
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.8 (including) | 6.12.13 (excluding) |
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.13 (including) | 6.13.2 (excluding) |
To consult the complete list of CPE names with products and versions, see this page