CVE-2024-53075: riscv: Prevent a bad reference count on CPU nodes
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 'ofnodeput' 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 'ofnodeput' 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.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-53075?
CVE-2024-53075 has been classified with a moderate severity due to potential reference counting issues in the Linux kernel.
How do I fix CVE-2024-53075?
To fix CVE-2024-53075, update to a patched version of the Linux kernel, specifically 6.12-rc6 or later.
Which versions of the Linux kernel are affected by CVE-2024-53075?
CVE-2024-53075 affects Linux kernel versions from 6.11 to 6.12-rc5.
What is the nature of the vulnerability in CVE-2024-53075?
CVE-2024-53075 involves a bad reference count on CPU nodes when populating cache leaves in the Linux kernel.
Is CVE-2024-53075 specific to any hardware architecture?
CVE-2024-53075 is particularly relevant for systems utilizing the RISC-V architecture.