Skip to content
Heist/ feed
Back to feed
MediumFix available

rtc: tps6594: Fix integer overflow on 32bit systems

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.13, 6.13.2
CVEs
CVE-2024-57953
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 00:36 UTC · Revision 1

Source evidence

rtc: tps6594: Fix integer overflow on 32bit systems

core-osv · Original source

Published 27 Feb 2025, 02:07 UTC

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.

osv:CVE-2024-57953

Kernel

Fixed versions: 6.12.13, 6.13.2

Complete source record
{
  "id": "23b5a0456de5a9e7e724f2a4bc97570fbd2e4b50d814d1f7943ca41b066b31bd",
  "url": "https://osv.dev/vulnerability/CVE-2024-57953",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "rtc: tps6594: Fix integer overflow on 32bit systems",
    "summary": "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.",
    "evidence": "osv:CVE-2024-57953",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.13",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.13.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-57953",
      "aliases": [
        "CVE-2024-57953"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9f67c1e63976d3403f0b250b03ffe959c890f9db"
                },
                {
                  "fixed": "5127f3cbfc78a7b301b86328247230bec47e0bb3"
                },
                {
                  "fixed": "53b0c7b15accb18d15d95c7fe68f61630ebfd1ca"
                },
                {
                  "fixed": "09c4a610153286cef54d4f0c85398f4e32fc227e"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57953.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.8.0"
                },
                {
                  "fixed": "6.12.13"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.13.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57953.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:45.803393018Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/09c4a610153286cef54d4f0c85398f4e32fc227e",
        "https://git.kernel.org/stable/c/5127f3cbfc78a7b301b86328247230bec47e0bb3",
        "https://git.kernel.org/stable/c/53b0c7b15accb18d15d95c7fe68f61630ebfd1ca",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57953.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-57953",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57953.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-57953",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 513543,
  "published_at": "2025-02-27T02:07:01.598+00:00"
}