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

Medium 5.5 Published Updated

A reference counting bug in the Linux kernel RISC-V cache initialization can lead to resource leaks and potential denial of service when ACPI is enabled.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-53075?

CVE-2024-53075 is a medium-severity vulnerability in Linux kernel, published on 19 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.

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

Which versions are affected by CVE-2024-53075?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-53075?

Apply the vendor's patch.

Is CVE-2024-53075 being exploited?

There is no known exploitation of CVE-2024-53075 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-53075, DEBIAN-CVE-2024-53075, GHSA-7866-w9g3-g699, UBUNTU-CVE-2024-53075.

Is CVE-2024-53075 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free