Skip to content
Heist/ feed
Back to feed
UnratedFix available

hwmon: (ltc2991) re-order conditions to fix off by one bug

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: hwmon: (ltc2991) re-order conditions to fix off by one bug LTC2991_T_INT_CH_NR is 4. The st->temp_en[] array has LTC2991_MAX_CHANNEL (4) elements. Thus if "channel" is equal to LTC2991_T_INT_CH_NR then we have read one element beyond the end of the array. Flip the conditions around so that we check if "channel" is valid before using it as an array index.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.10.3
CVEs
CVE-2024-43852
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 02:00 UTC · Revision 1

Source evidence

hwmon: (ltc2991) re-order conditions to fix off by one bug

core-osv · Original source

Published 17 Aug 2024, 09:22 UTC

In the Linux kernel, the following vulnerability has been resolved: hwmon: (ltc2991) re-order conditions to fix off by one bug LTC2991_T_INT_CH_NR is 4. The st->temp_en[] array has LTC2991_MAX_CHANNEL (4) elements. Thus if "channel" is equal to LTC2991_T_INT_CH_NR then we have read one element beyond the end of the array. Flip the conditions around so that we check if "channel" is valid before using it as an array index.

osv:CVE-2024-43852

Kernel

Fixed versions: 6.10.3

Complete source record
{
  "id": "aee697a027c13f470688a073b73a39273a1780843824fc6dd3f0d71525983bca",
  "url": "https://osv.dev/vulnerability/CVE-2024-43852",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "hwmon: (ltc2991) re-order conditions to fix off by one bug",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: hwmon: (ltc2991) re-order conditions to fix off by one bug LTC2991_T_INT_CH_NR is 4. The st->temp_en[] array has LTC2991_MAX_CHANNEL (4) elements. Thus if \"channel\" is equal to LTC2991_T_INT_CH_NR then we have read one element beyond the end of the array. Flip the conditions around so that we check if \"channel\" is valid before using it as an array index.",
    "evidence": "osv:CVE-2024-43852",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.10.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-43852",
      "aliases": [
        "CVE-2024-43852"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "2b9ea4262ae9114b0b86ac893b4d6175d8520001"
                },
                {
                  "fixed": "c180311c0a520692e2d0e9ca44dcd6c2ff1b41c4"
                },
                {
                  "fixed": "99bf7c2eccff82760fa23ce967cc67c8c219c6a6"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-43852.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.10.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-43852.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:42.034516750Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/99bf7c2eccff82760fa23ce967cc67c8c219c6a6",
        "https://git.kernel.org/stable/c/c180311c0a520692e2d0e9ca44dcd6c2ff1b41c4",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43852.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-43852",
        "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/43xxx/CVE-2024-43852.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-43852",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 509302,
  "published_at": "2024-08-17T09:22:09.844+00:00"
}