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 B124E36308E for ; Sat, 15 Aug 2026 06:15:08 +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=1786774509; cv=none; b=XoLqRh9qM99ZNMaOyZiAL1YeI6p2dSUmmaM/wc1RCnRZNGF/7lISBC1wBJ4wQuDEVyq7wjOlhu1c5PLlU9O3TcNYlAV8Q9nGxq3TTz33Q9a2imeygmUGsD37ipCEAWwLE3f4j9fg7y3HtVCJCpM8ZF9CZbO7S4+o+EpsbgWJdqM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774509; c=relaxed/simple; bh=JzRC9sRNfkDNcA/OyuscnMeboMK77Zd2MPnY8FYdoRg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ow00bv7j4W5+58Kd/5Sq95R4rKD45kTenfh7cXJ7q/W3D6z39J9xJhtjDD62kpFoo7dx1/ZGtczkzfNCgqJDhX7i1Au+yn+BBTs9SGvxpBY++vyDZoCNLQrm1LL/W5b8MTHJLOUxzrGjmUYW7CEOdWm9BBx6+wWNrnAjnTcdCCY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TbhFFjvP; 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="TbhFFjvP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD89E1F000E9; Sat, 15 Aug 2026 06:15:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774508; bh=VSV2TBkP8hp9taRomBMy1H5E8lXrNXMdSNu2gIsA/ks=; h=From:To:Cc:Subject:Date:Reply-To; b=TbhFFjvPq7/XMeAGCjnrn1qaCjjwRAm9Mms03UwK6kepJH15S85/HiKYcMEvCkRHd grAFvsUmCTnk6NtJ8jXRUJuaPsRqwrXB8eLfokGCACzhMvUPT0DJZJzbwug+DCG3P2 5Wly7XFsXxLUfnBKap96XqHALW3daCCm3vkzbEdk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72179: riscv: cacheinfo: Fix node reference leak in populate_cache_leaves Date: Sat, 15 Aug 2026 15:04:18 +0900 Message-ID: <2026081539-CVE-2026-72179-825f@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=3180; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/hB9woX26VE69XmihEuAipFtEhltzOe89Ktmch59PJ4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDIc51G/9PNPzSOlpyLPQxpmigV+CLnNc2mBQbnfDx PIO68rijlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIWw7D/ODnd87IrMrsr73s Ghx1auXsXTPU/jLML3z211LaaUre5krj5PduH2Il0/R1AQ== 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: riscv: cacheinfo: Fix node reference leak in populate_cache_leaves Currently, the while loop drops the reference to prev in each iteration. If the loop terminates early due to a break, the final of_node_put(np) correctly drops the reference to the current node. However, if the loop terminates naturally because np == NULL, calling of_node_put(np) is a no-op. This leaves the last valid node stored in prev without its reference dropped, resulting in a node reference leak. Fix this by changing the final `of_node_put(np)` to `of_node_put(prev)`. The Linux kernel CVE team has assigned CVE-2026-72179 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit 94f9bf118f1e294b3f2092f8bde02860f5e3ea3f and fixed in 6.1.178 with commit 2560c97f63bb99b26d9f19b23a4f66ea24c9dc14 Issue introduced in 5.0 with commit 94f9bf118f1e294b3f2092f8bde02860f5e3ea3f and fixed in 6.6.145 with commit 51afb7da697b698996351740b4f39fb05ce2afd4 Issue introduced in 5.0 with commit 94f9bf118f1e294b3f2092f8bde02860f5e3ea3f and fixed in 6.12.97 with commit 880ac50b0bfae06d7ab5f1843253adfb86aa173a Issue introduced in 5.0 with commit 94f9bf118f1e294b3f2092f8bde02860f5e3ea3f and fixed in 6.18.40 with commit f322955d9a1c344ed943752f05aacea7bc22e025 Issue introduced in 5.0 with commit 94f9bf118f1e294b3f2092f8bde02860f5e3ea3f and fixed in 7.1.5 with commit 36e4843fe39ea2f17f4de6d59fba26271916c184 Issue introduced in 5.0 with commit 94f9bf118f1e294b3f2092f8bde02860f5e3ea3f and fixed in 7.2-rc1 with commit bf4a195f063b0a0805c1417f6aad1dd32ea48f0f 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-72179 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: arch/riscv/kernel/cacheinfo.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/2560c97f63bb99b26d9f19b23a4f66ea24c9dc14 https://git.kernel.org/stable/c/51afb7da697b698996351740b4f39fb05ce2afd4 https://git.kernel.org/stable/c/880ac50b0bfae06d7ab5f1843253adfb86aa173a https://git.kernel.org/stable/c/f322955d9a1c344ed943752f05aacea7bc22e025 https://git.kernel.org/stable/c/36e4843fe39ea2f17f4de6d59fba26271916c184 https://git.kernel.org/stable/c/bf4a195f063b0a0805c1417f6aad1dd32ea48f0f