CVE-2024-57953 rtc: tps6594: Fix integer overflow on 32bit systems
Integer overflow in the TPS6594 RTC driver on 32-bit systems can cause incorrect time calculations or potential system instability.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-57953?
CVE-2024-57953 is a medium-severity vulnerability in Linux kernel, published on 27 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-190
Which versions are affected by CVE-2024-57953?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-57953?
Apply the vendor's patch.
Is CVE-2024-57953 being exploited?
There is no known exploitation of CVE-2024-57953 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-57953, DEBIAN-CVE-2024-57953, GHSA-m4w7-955p-fwcr, ROOT-OS-UBUNTU-2404-CVE-2024-57953, UBUNTU-CVE-2024-57953.