Skip to content
Heist/ feed
High

coresight: platform: defer connection counter increment until alloc succeeds

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: coresight: platform: defer connection counter increment until alloc succeeds coresight_add_out_conn() increments nr_outconns before calling devm_krealloc_array() and again before devm_kmalloc(). If either allocation fails, the counter is already bumped while the corresponding array entry is NULL or uninitialized garbage. coresight_add_in_conn() has the same problem with nr_inconns and devm_krealloc_array(). In both cases the probe returns -ENOMEM, which causes coresight_get_platform_data() to call coresight_release_platform_data() for cleanup. That function iterates up to nr_outconns (or nr_inconns) entries and dereferences each pointer unconditionally, hitting the NULL or garbage entry and panicking instead of failing gracefully. Fix by moving the counter increments to after all allocations succeed, so the struct is always consistent on any error path.

Announced Group revision 1
Original source ↗

CVE-2026-72485

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-72485

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "3d4ff657e454f8dba3e5e268e731e6e28c6031c1",
        "lessThan": "dd3c9e1c9858c797ba78f4ca6c0fc663eeac6d72",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3d4ff657e454f8dba3e5e268e731e6e28c6031c1",
        "lessThan": "aed6915c2f304ed34281856c53e374483c71b68b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3d4ff657e454f8dba3e5e268e731e6e28c6031c1",
        "lessThan": "09c44549820df67048be3ba19c723bac72ebb98e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3d4ff657e454f8dba3e5e268e731e6e28c6031c1",
        "lessThan": "8ca9adc805884d3bb5038082462577f86c2c4a10",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3d4ff657e454f8dba3e5e268e731e6e28c6031c1",
        "lessThan": "1563ae33dc4f5ebac96b93af2ef72e72aaaa31ae",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/hwtracing/coresight/coresight-platform.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.5"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.5",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.158",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.111",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.53",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.1.5",
        "versionType": "semver",
        "lessThanOrEqual": "7.1.*"
      },
      {
        "status": "unaffected",
        "version": "7.2",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/hwtracing/coresight/coresight-platform.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-72485

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#8252 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement