Skip to content
Heist/ feed
Back to feed
HighFix available

iio: gts-helper: Fix memory leaks for the error path of iio_gts_build_avail_scale_table()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: iio: gts-helper: Fix memory leaks for the error path of iio_gts_build_avail_scale_table() If per_time_scales[i] or per_time_gains[i] kcalloc fails in the for loop of iio_gts_build_avail_scale_table(), the err_free_out will fail to call kfree() each time when i is reduced to 0, so all the per_time_scales[0] and per_time_gains[0] will not be freed, which will cause memory leaks. Fix it by checking if i >= 0.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.11.7, 6.6.60
CVEs
CVE-2024-53076
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 00:16 UTC · Revision 1

Source evidence

iio: gts-helper: Fix memory leaks for the error path of iio_gts_build_avail_scale_table()

core-osv · Original source

Published 19 Nov 2024, 17:31 UTC

In the Linux kernel, the following vulnerability has been resolved: iio: gts-helper: Fix memory leaks for the error path of iio_gts_build_avail_scale_table() If per_time_scales[i] or per_time_gains[i] kcalloc fails in the for loop of iio_gts_build_avail_scale_table(), the err_free_out will fail to call kfree() each time when i is reduced to 0, so all the per_time_scales[0] and per_time_gains[0] will not be freed, which will cause memory leaks. Fix it by checking if i >= 0.

osv:CVE-2024-53076

Kernel

Fixed versions: 6.6.60, 6.11.7

Complete source record
{
  "id": "28fad396a82a609f8a91638abf2c73675e14e2b162cb672d247e70c5396c3b3d",
  "url": "https://osv.dev/vulnerability/CVE-2024-53076",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "iio: gts-helper: Fix memory leaks for the error path of iio_gts_build_avail_scale_table()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: iio: gts-helper: Fix memory leaks for the error path of iio_gts_build_avail_scale_table() If per_time_scales[i] or per_time_gains[i] kcalloc fails in the for loop of iio_gts_build_avail_scale_table(), the err_free_out will fail to call kfree() each time when i is reduced to 0, so all the per_time_scales[0] and per_time_gains[0] will not be freed, which will cause memory leaks. Fix it by checking if i >= 0.",
    "evidence": "osv:CVE-2024-53076",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.6.60",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.11.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-53076",
      "aliases": [
        "CVE-2024-53076"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "38416c28e16890b52fdd5eb73479299ec3f062f3"
                },
                {
                  "fixed": "62c11896683129790b8f5ab6eb7e695818b0b723"
                },
                {
                  "fixed": "b304362ce836968b803e5d4c5f84dcb51a7bf0f2"
                },
                {
                  "fixed": "369f05688911b05216cfcd6ca74473bec87948d7"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-53076.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.4.0"
                },
                {
                  "fixed": "6.6.60"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.11.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-53076.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.310138512Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/369f05688911b05216cfcd6ca74473bec87948d7",
        "https://git.kernel.org/stable/c/62c11896683129790b8f5ab6eb7e695818b0b723",
        "https://git.kernel.org/stable/c/b304362ce836968b803e5d4c5f84dcb51a7bf0f2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53076.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-53076",
        "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/53xxx/CVE-2024-53076.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-53076",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 499323,
  "published_at": "2024-11-19T17:31:40.349+00:00"
}