firmware: arm_scmi: Fix the double free in scmi_debugfs_common_setup()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.6.596.11.66.12In 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.
From the CVE record · Linux
The Linux kernel's ARM SCMI debugfs setup can free memory twice if devm_add_action_or_reset() fails. The input does not specify how an attacker could trigger this failure, or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with ARM SCMI support should check their kernel versions; affected versions are not specified.