# CVE-2024-50159: firmware: arm_scmi: Fix the double free in scmi_debugfs_common_setup()

- Severity: High 7.0 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-11-07T09:31:36.167Z
- Modified: 2026-08-05T11:42:09.468Z
- Weaknesses: CWE-415
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from c3d4aed763ce4a39f8ed36c7b7cd9a6a35971329 before 6d91d07913aee90556362d648d6a28a1eda419dc; from c3d4aed763ce4a39f8ed36c7b7cd9a6a35971329 before fb324fdaf546bf14bc4c17e0037bca6cb952b121; from c3d4aed763ce4a39f8ed36c7b7cd9a6a35971329 before 39b13dce1a91cdfc3bec9238f9e89094551bd428; 6.3 (not affected: before 6.3; from 6.6.59 up to 6.6.*; from 6.11.6 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 6.3 before 6.6.59; from 6.7 before 6.11.6; 6.12

## Every score

- Linux: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/6d91d07913aee90556362d648d6a28a1eda419dc> (patch)
- <https://git.kernel.org/stable/c/fb324fdaf546bf14bc4c17e0037bca6cb952b121> (patch)
- <https://git.kernel.org/stable/c/39b13dce1a91cdfc3bec9238f9e89094551bd428> (patch)

## Sources

- CVE List: [CVE-2024-50159](https://www.cve.org/CVERecord?id=CVE-2024-50159), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-50159](https://nvd.nist.gov/vuln/detail/CVE-2024-50159), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-50159 · Whole record: https://cve.day/CVE-2024-50159.json · Rebuilt by cve.day 2026-11-25T22:58:47.863Z
