Bug 2516342 (CVE-2026-72179) - CVE-2026-72179 kernel: riscv: cacheinfo: Fix node reference leak in populate_cache_leaves
Summary: CVE-2026-72179 kernel: riscv: cacheinfo: Fix node reference leak in populate_...
Keywords:
Status: NEW
Alias: CVE-2026-72179
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-15 06:07 UTC by OSIDB Bzimport
Modified: 2026-08-18 07:03 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-15 06:07:29 UTC
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)`.


Note You need to log in before you can comment on or make changes to this bug.