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)`.
Published: 2026-08-15
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An incorrect reference release in the RISC‑V cacheinfo module causes the last valid device tree node to retain a reference after the discovery loop terminates normally, creating a memory/resource leak that can gradually consume kernel memory. The flaw corresponds to the resource‑management weakness CWE‑772 and is strictly a local kernel‑level issue; it does not provide a direct attack surface for remote code execution or data exfiltration.

Affected Systems

All Linux kernel installations that include the RISC‑V cacheinfo component and are running a kernel version that predates the patch introducing the reference drop change remain vulnerable. Because the CPE string indicates the Linux kernel broadly, any kernel that incorporates the legacy logic (before the relevant commit or backport) is at risk. Updating to a kernel that incorporates the change – either by installing a patched distribution package or by backporting the commit – removes the leak.

Risk and Exploitability

The CVSS score is 5.5, the EPSS score is <1%, and it is not listed in the CISA KEV catalog. Based on the description it is inferred that the exposure is limited to a local kernel context; the flaw does not provide privileged code execution or remote data access. Consequently, the threat of exploitation is low. However, over extended periods a kernel that repeatedly loads the cacheinfo module could see an incremental memory drain, which could culminate in a denial‑of‑service scenario or kernel instability. Administrators should treat the issue as medium risk that warrants timely patching, especially on long‑running or production deployments.

Generated by OpenCVE AI on August 18, 2026 at 14:10 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the kernel to the patched version that contains the change to drop the reference to the previous node.
  • If your distribution kernel does not yet include the fix, backport the commit that replaces the final 'of_node_put(np)' with 'of_node_put(prev)' into your local kernel tree before building.
  • After applying the patch, perform regression tests that verify the RISC‑V cacheinfo module loads correctly and that no memory leaks are observed during normal operation.
  • Monitor kernel memory usage over time for unexpected growth; if anomalies persist after patching, investigate additional reference leaks in related modules and apply any subsequent fixes.

Generated by OpenCVE AI on August 18, 2026 at 14:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
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)`.
Title riscv: cacheinfo: Fix node reference leak in populate_cache_leaves
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:09:41.910Z

Reserved: 2026-08-09T03:40:39.910Z

Link: CVE-2026-72179

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:21:36.180

Modified: 2026-08-17T06:18:18.393

Link: CVE-2026-72179

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-72179 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T14:15:07Z

Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime