What’s Vulnerable › Vulnerabilities
CVE-2024-50159: firmware: arm_scmi: Fix the double free in scmi_debugfs_common_setup()
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-11-07 · updated 2026-08-04
- Weakness: CWE-415
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.
Affected products
- Linux kernel: from 6.3 before 6.6.59; from 6.7 before 6.11.6; 6.12-rc1, 6.12-rc2, 6.12-rc3 — fixed in 6.11.6, 6.6.59
How to fix
Upgrade to a fixed version: Linux kernel 6.11.6, 6.6.59. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/39b13dce1a91cdfc3bec9238f9e89094551bd428
- https://git.kernel.org/stable/c/6d91d07913aee90556362d648d6a28a1eda419dc
- https://git.kernel.org/stable/c/fb324fdaf546bf14bc4c17e0037bca6cb952b121
Get alerted when CVE-2024-50159 or the next vulnerability affects your stack