Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DDEED3806C0 for ; Sat, 15 Aug 2026 06:30:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775443; cv=none; b=jChgs1S4to3oHHajy7OmfteoLOq0j1PxAddd1hYKz/lSvV29uC4GBIJ74g3RCiAahlTBUMWf240OLzBCqsioylQ8u8kRH6aW8matzd5etaQutGPmtmbUZc1mHJ/7z2z8l5kqCfn4EmY4IgAgYwkBqjJFvCfC7HwyCNqk0oqJp7Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775443; c=relaxed/simple; bh=eTaNo2mIwyhnu1ZU5Dj9HG4/AT3ckVqbOkEdX2+BzaI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AoBajbo16qKbfggRTvJl4/G+fRXDKfVOdbe3Ty49oIA+c0KFrfZu54/ariyONyX7hwSTZk0YS+lERCpiFXPspAPYbZEShnjednl8pUL4lm4dHOUxfKStbomVNT5usbBkx45czpr2wx5BJeKWeWSglkt2+fia+9j83d7h6eCE4Eo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xNVTtTDf; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="xNVTtTDf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A1A21F000E9; Sat, 15 Aug 2026 06:30:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775441; bh=Q3GEF4WH4BYTnv0hHEBC+dRZdKSSrcNYsjAU3Hx8/wc=; h=From:To:Cc:Subject:Date:Reply-To; b=xNVTtTDfS/hipQRVZf20FydX9vNfmj2PjItmKHfAuJUnq4KzthFz00jPNxE+KluDO JSspOl6M7I0Th+ULOS+5BxuJCepj97/g7lR9V58d6EigugXdCJtNm1gK3MurLMtnx6 Ht8UIZV1bUUv9lhrRmho7XvOEpPK57cxtJp9mcvY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72485: coresight: platform: defer connection counter increment until alloc succeeds Date: Sat, 15 Aug 2026 15:09:24 +0900 Message-ID: <2026081537-CVE-2026-72485-81e7@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2614; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6r75TLYhJ3VKJ+s5LV/s1xsO5BXtDmbHVbUt/CgwwFA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDH+P+5+7zL7A4JSjqlzolj2Fb7ay73++4m3+g1uqj 26s8txT2hHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQA3OZphDm/55s6ilZPNV8+P XqbJtDfdQsEziWHB8hPlSz7nSHTVzCuNWnDHZHVA2G9LAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-72485 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit 3d4ff657e454f8dba3e5e268e731e6e28c6031c1 and fixed in 7.1.5 with commit 8ca9adc805884d3bb5038082462577f86c2c4a10 Issue introduced in 6.5 with commit 3d4ff657e454f8dba3e5e268e731e6e28c6031c1 and fixed in 7.2-rc1 with commit 1563ae33dc4f5ebac96b93af2ef72e72aaaa31ae Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-72485 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/hwtracing/coresight/coresight-platform.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/8ca9adc805884d3bb5038082462577f86c2c4a10 https://git.kernel.org/stable/c/1563ae33dc4f5ebac96b93af2ef72e72aaaa31ae