CVE-2024-50159 Details
Description
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.
A double free vulnerability has been identified in the Linux kernel's ARM SCMI firmware driver, specifically within the debugfs common setup function. This issue arises when the device management function 'devm_add_action_or_reset()' fails, leading to the cleanup function 'scmi_debugfs_common_cleanup()' being called twice. Such a scenario causes a double free of the 'dbg->name' memory, as indicated by a warning from the Clang static checker. The vulnerability affects the Linux kernel stable tree.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been patched. The patch is included in the official Linux kernel repositories.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/39b13dce1a91cdfc3bec9238f9e89094551bd428 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6d91d07913aee90556362d648d6a28a1eda419dc | kernel.org | Patch |
| https://git.kernel.org/stable/c/fb324fdaf546bf14bc4c17e0037bca6cb952b121 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-415 | Double Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.3, < 6.6.59 >= 6.7, < 6.11.6 6.12 rc1 6.12 rc2 6.12 rc3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 19, 2024 | CVE Modified | kernel.org |
| Nov 13, 2024 | Initial Analysis | [email protected] |
| Nov 7, 2024 | New CVE Received | kernel.org |