Bug 2327386 (CVE-2024-53075) - CVE-2024-53075 kernel: riscv: Prevent a bad reference count on CPU nodes
Summary: CVE-2024-53075 kernel: riscv: Prevent a bad reference count on CPU nodes
Keywords:
Status: NEW
Alias: CVE-2024-53075
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: 2327518
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-19 18:04 UTC by OSIDB Bzimport
Modified: 2024-11-21 19:11 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-11-19 18:04:31 UTC
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.


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