CVE-2026-72485

coresight: platform: defer connection counter increment until alloc succeeds

State
Published
Severity
7.8 High
Published
Aug 15, 2026
Updated
Oct 3, 2026
Reserved
Aug 9, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 3d4ff657e454f8dba3e5e268e731e6e28c6031c1 to before dd3c9e1c9858c797ba78f4ca6c0fc663eeac6d72Affected
  • 3d4ff657e454f8dba3e5e268e731e6e28c6031c1 to before aed6915c2f304ed34281856c53e374483c71b68bAffected
  • 3d4ff657e454f8dba3e5e268e731e6e28c6031c1 to before 09c44549820df67048be3ba19c723bac72ebb98eAffected
  • 3d4ff657e454f8dba3e5e268e731e6e28c6031c1 to before 8ca9adc805884d3bb5038082462577f86c2c4a10Affected
  • 3d4ff657e454f8dba3e5e268e731e6e28c6031c1 to before 1563ae33dc4f5ebac96b93af2ef72e72aaaa31aeAffected
LinuxLinux
  • 6.5Affected
  • before 6.5Not affected
  • 6.6.158 through 6.6.*Not affected
  • 6.12.111 through 6.12.*Not affected
  • 6.18.53 through 6.18.*Not affected
  • 7.1.5 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.