# CVE-2026-72179: riscv: cacheinfo: Fix node reference leak in populate_cache_leaves

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-08-15T05:53:42.980Z
- Modified: 2026-08-17T06:18:18.393Z
- Assigned by: Linux

## 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)`.

(As written by CVE List.)

## Affected

- Linux Linux: from 94f9bf118f1e294b3f2092f8bde02860f5e3ea3f before 2560c97f63bb99b26d9f19b23a4f66ea24c9dc14; from 94f9bf118f1e294b3f2092f8bde02860f5e3ea3f before 51afb7da697b698996351740b4f39fb05ce2afd4; from 94f9bf118f1e294b3f2092f8bde02860f5e3ea3f before 880ac50b0bfae06d7ab5f1843253adfb86aa173a; from 94f9bf118f1e294b3f2092f8bde02860f5e3ea3f before f322955d9a1c344ed943752f05aacea7bc22e025; from 94f9bf118f1e294b3f2092f8bde02860f5e3ea3f before 36e4843fe39ea2f17f4de6d59fba26271916c184; from 94f9bf118f1e294b3f2092f8bde02860f5e3ea3f before bf4a195f063b0a0805c1417f6aad1dd32ea48f0f; 5.0 (not affected: before 5.0; from 6.1.178 up to 6.1.*; from 6.6.145 up to 6.6.*; from 6.12.97 up to 6.12.*; from 6.18.40 up to 6.18.*; from 7.1.5 up to 7.1.*; from 7.2 up to *)

## References

- <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>

## Sources

- CVE List: [CVE-2026-72179](https://www.cve.org/CVERecord?id=CVE-2026-72179), CVE Terms of Use, modified 2026-08-17
- NVD: [CVE-2026-72179](https://nvd.nist.gov/vuln/detail/CVE-2026-72179), Public domain, modified 2026-08-17

---

Page: https://cve.day/CVE-2026-72179 · Whole record: https://cve.day/CVE-2026-72179.json · Rebuilt by cve.day 2026-11-25T22:59:33.034Z
