# CVE-2024-53075: riscv: Prevent a bad reference count on CPU nodes

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-11-19T17:31:39.625Z
- Modified: 2026-06-17T08:08:12.680Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

riscv: Prevent a bad reference count on CPU nodes

When populating cache leaves we previously fetched the CPU device node
at the very beginning. But when ACPI is enabled we go through a
specific branch which returns early and does not call 'of_node_put' for
the node that was acquired.

Since we are not using a CPU device node for the ACPI code anyways, we
can simply move the initialization of it just passed the ACPI block, and
we are guaranteed to have an 'of_node_put' call for the acquired node.
This prevents a bad reference count of the CPU device node.

Moreover, the previous function did not check for errors when acquiring
the device node, so a return -ENOENT has been added for that case.

(As written by CVE List.)

## Affected

- Linux Linux: from ebccacb0b599fa788a16eff35a7de14621f56804 before 80aec5a855106c668b5978c48e789f010198b832; from 604f32ea6909b0ebb8ab0bf1ab7dc66ee3dc8955 before 303846a3dc275e35fbb556d72f1e356ba669e4f8; from 604f32ea6909b0ebb8ab0bf1ab7dc66ee3dc8955 before 37233169a6ea912020c572f870075a63293b786a; 6.11 (not affected: before 6.11; from 6.11.7 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 6.11 before 6.11.7; 6.12

## References

- <https://git.kernel.org/stable/c/80aec5a855106c668b5978c48e789f010198b832>
- <https://git.kernel.org/stable/c/303846a3dc275e35fbb556d72f1e356ba669e4f8> (patch)
- <https://git.kernel.org/stable/c/37233169a6ea912020c572f870075a63293b786a> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-53075 · Whole record: https://cve.day/CVE-2024-53075.json · Rebuilt by cve.day 2026-11-25T22:58:48.811Z
