CVE-2026-72485

coresight: platform: defer connection counter increment until alloc succeeds

HIGH
7.8
CVSS Score
Published: August 15, 2026 at 05:57 AM UTC
Updated: October 3, 2026 at 11:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.5 ≤ v < 6.12.1116.5 ≤ v < 6.18.536.5 ≤ v < 6.6.1586.5 ≤ v < 7.1.56.5 ≤ v < 7.23d4ff657e454f8dba3e5e268e731e6e28c6031c16.5
Vendor states this is fixed in 09c44549820df67048be3ba19c723bac72ebb98e (fixed)
Vendor states this is fixed in 1563ae33dc4f5ebac96b93af2ef72e72aaaa31ae (fixed)
Vendor states this is fixed in 8ca9adc805884d3bb5038082462577f86c2c4a10 (fixed)
Vendor states this is fixed in aed6915c2f304ed34281856c53e374483c71b68b (fixed)
Vendor states this is fixed in dd3c9e1c9858c797ba78f4ca6c0fc663eeac6d72 (fixed)
Vendor states this is fixed in 6.12.111 (unaffected)
Vendor states this is fixed in 6.18.53 (unaffected)
Vendor states this is fixed in 6.5 (unaffected)
Vendor states this is fixed in 6.6.158 (unaffected)
Vendor states this is fixed in 7.1.5 (unaffected)
Vendor states this is fixed in 7.2 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusRECEIVED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card