CVE-2024-50159
JSON

7.0high

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

Severity
7.0high CVSS:3.1 by Linux
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.3 before 6.6.59, from 6.7 before 6.11.6, 6.12NVD

All scores

Linux7.0high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: firmware: arm_scmi: Se corrige la doble liberación en scmi_debugfs_common_setup() El verificador estático de Clang (scan-build) arroja la siguiente advertencia: | drivers/firmware/arm_scmi/driver.c:line 2915, column 2 | Intenta liberar la memoria liberada. Cuando devm_add_action_or_reset() falla, scmi_debugfs_common_cleanup() se ejecutará dos veces, lo que provoca una doble liberación de 'dbg->name'. Elimina el scmi_debugfs_common_cleanup() redundante para solucionar este problema.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-50159 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-50159 changed 2026-08-04Public domain