From mboxrd@z Thu Jan 1 00:00:00 1970 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 607EF37C0FB for ; Fri, 11 Sep 2026 19:49:23 +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=1789156188; cv=none; b=l2d2SMUt2SgCKKOHSAa0vD98YKdV2WBabW35jf/l6SaED5Knlac/4u/9lyYu+RLammu8N2xfR1U1cmaanj4Xb185QK6joEuP19n0ILwtCPj5CgM8v6P2jX73yZ6EVKgE6gmauUl+C7NLtmnV3kO/HDsr+MdTxHqKaSFxM4Y2gJY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789156188; c=relaxed/simple; bh=OJC26oK/UZRIoYIk0pBJPjQC9ImjToEJw6HYAKO6n2Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eB1c+2eefui1cJKSzmIsNFZyLwXV5boLwfb2J+pa9P7PkQ8k0EZT/TsMLZv5EpVmI+SDojo/idpSvf+huYH/jSCnDjCBa9BgyKHb4y/gCUpN/YkaodYCsWrskzRC1uluQ5S33jLjPkld/mjPlWEH51V03C9Kwh0VKJdzuAFA4D8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aek202/n; 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="aek202/n" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 940D31F00893; Fri, 11 Sep 2026 19:49:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789156163; bh=1IHFIFPaRYWouBLN1zF81gXqshEeq1l4z5pFntTjpRw=; h=From:To:Cc:Subject:Date:Reply-To; b=aek202/ngP2ehpDbU46ZMbQGCKyH05LMmzo2Nf2XDqzvKTQv8Grl+6a1IlUWmqvCu EEuXXdPGTieVPxLImAISajVkdYJ5aqkU2lNLWvbbZCPQQPLTyJeLpAHmvmdotu+PNc EBj1zmiO1Eo34oCyT56mDMKsYhYAzW97lwDrH4jk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-81008: interconnect: Fix use after free in icc_get() and of_icc_get_by_index() Date: Fri, 11 Sep 2026 21:41:54 +0200 Message-ID: <2026091152-CVE-2026-81008-73d0@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=3643; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NYy/0xlisZuMHIlUeJKfClbi8dhc0q86dscs8T0LaPg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIl3MVi4qt7vOmDq7zF5r7sTJN05u31KmUb7h7vLdb 02ymfdUd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEQiYxLNgbcVBRkcVa+kL1 eZ1NofuZvK2VFzPM993w3+hZm173s3v/VU/rPlI+nvJ3DQA= 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: interconnect: Fix use after free in icc_get() and of_icc_get_by_index() In of_icc_get_by_index() and icc_get(), if the dynamic allocation for path->name fails via kasprintf(), the error handling path directly calls kfree(path) to free the path object and returns an error. However, prior to this point, path_find() calls path_init(), which already links the path's requests into the req_list of the respective interconnect nodes via hlist_add_head(). Directly invoking kfree(path) leaves dangling pointers in the hlist. A subsequent call to icc_get() or icc_set_bw() will traverse or modify these corrupted lists, triggering a slab use afterfree. KASAN report showing the vulnerability when reproducing via debugfs: BUG: KASAN: slab-use-after-free in path_find+0x6f8/0xcfc Write of size 8 at addr fff000000d43f748 by task sh/1 ... Call trace: kasan_report+0xac/0xfc path_find+0x6f8/0xcfc icc_get+0x148/0x380 icc_get_set+0xf8/0x2d0 ... Freed by task 1: kfree+0x1a0/0x4a4 icc_get+0x2cc/0x380 icc_get_set+0xf8/0x2d0 Fix this by replacing kfree(path) with the proper teardown function, icc_put(path), which safely removes the requests from the req_list using hlist_del() and drops the provider usage references before freeing the memory. Additionally, in icc_get(), ensure that the icc_lock mutex is released prior to calling icc_put(path) to avoid a deadlock, as icc_put() internally acquires the same lock. The Linux kernel CVE team has assigned CVE-2026-81008 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit 3791163602f7140011a8dc1691cfe6ec0cb1ef07 and fixed in 6.12.109 with commit a4e9aa7907ade87d1d96853d14e05dcf682f8363 Issue introduced in 5.6 with commit 3791163602f7140011a8dc1691cfe6ec0cb1ef07 and fixed in 6.18.50 with commit db8147c5d5ad2cfa21c2be566f95981b41b05de6 Issue introduced in 5.6 with commit 3791163602f7140011a8dc1691cfe6ec0cb1ef07 and fixed in 7.2.4 with commit d715d19cfcfe99f361adb05cefc143a95d400b87 Issue introduced in 5.6 with commit 3791163602f7140011a8dc1691cfe6ec0cb1ef07 and fixed in 7.3-rc1 with commit 25c7e242aca084fdc1098248194032317dca625d 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-81008 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/interconnect/core.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/a4e9aa7907ade87d1d96853d14e05dcf682f8363 https://git.kernel.org/stable/c/db8147c5d5ad2cfa21c2be566f95981b41b05de6 https://git.kernel.org/stable/c/d715d19cfcfe99f361adb05cefc143a95d400b87 https://git.kernel.org/stable/c/25c7e242aca084fdc1098248194032317dca625d