CVE-2024-50159

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

State
Published
Severity
7.0 High
Published
Nov 7, 2024
Updated
Aug 5, 2026
Reserved
Oct 21, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.0 HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • c3d4aed763ce4a39f8ed36c7b7cd9a6a35971329 to before 6d91d07913aee90556362d648d6a28a1eda419dcAffected
  • c3d4aed763ce4a39f8ed36c7b7cd9a6a35971329 to before fb324fdaf546bf14bc4c17e0037bca6cb952b121Affected
  • c3d4aed763ce4a39f8ed36c7b7cd9a6a35971329 to before 39b13dce1a91cdfc3bec9238f9e89094551bd428Affected
LinuxLinux
  • 6.3Affected
  • before 6.3Not affected
  • 6.6.59 through 6.6.*Not affected
  • 6.11.6 through 6.11.*Not affected
  • 6.12 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.