Bug 2324316 (CVE-2024-50159) - CVE-2024-50159 kernel: firmware: arm_scmi: Fix the double free in scmi_debugfs_common_setup()
Summary: CVE-2024-50159 kernel: firmware: arm_scmi: Fix the double free in scmi_debugf...
Keywords:
Status: NEW
Alias: CVE-2024-50159
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: 2324401
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-07 10:01 UTC by OSIDB Bzimport
Modified: 2024-11-07 16:43 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-11-07 10:01:24 UTC
In the Linux kernel, the following vulnerability has been resolved:

firmware: arm_scmi: Fix the double free in scmi_debugfs_common_setup()

Clang static checker(scan-build) throws below warning:
  |  drivers/firmware/arm_scmi/driver.c:line 2915, column 2
  |        Attempt to free released memory.

When devm_add_action_or_reset() fails, scmi_debugfs_common_cleanup()
will run twice which causes double free of 'dbg->name'.

Remove the redundant scmi_debugfs_common_cleanup() to fix this problem.


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