firmware: arm_scmi: Fix the double free in scmi_debugfs_common_setup()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.11.6, 6.6.59
- CVEs
- CVE-2024-50159
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 08:46 UTC · Revision 1
Source evidence
firmware: arm_scmi: Fix the double free in scmi_debugfs_common_setup()
core-osv · Original sourcePublished 7 Nov 2024, 09:31 UTC
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.
osv:CVE-2024-50159
Kernel
Fixed versions: 6.6.59, 6.11.6
Complete source record
{
"id": "b46b77056a3ca85f915ae466382b1a04cc1e47b23202b9f8cce01b3b6f13b5a3",
"url": "https://osv.dev/vulnerability/CVE-2024-50159",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "firmware: arm_scmi: Fix the double free in scmi_debugfs_common_setup()",
"summary": "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.",
"evidence": "osv:CVE-2024-50159",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.59",
"evidence": "/affected/1/ranges"
},
{
"value": "6.11.6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2024-50159",
"aliases": [
"CVE-2024-50159"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "c3d4aed763ce4a39f8ed36c7b7cd9a6a35971329"
},
{
"fixed": "6d91d07913aee90556362d648d6a28a1eda419dc"
},
{
"fixed": "fb324fdaf546bf14bc4c17e0037bca6cb952b121"
},
{
"fixed": "39b13dce1a91cdfc3bec9238f9e89094551bd428"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50159.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.3.0"
},
{
"fixed": "6.6.59"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.11.6"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50159.json"
}
}
],
"modified": "2026-10-28T02:30:34.394041955Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/39b13dce1a91cdfc3bec9238f9e89094551bd428",
"https://git.kernel.org/stable/c/6d91d07913aee90556362d648d6a28a1eda419dc",
"https://git.kernel.org/stable/c/fb324fdaf546bf14bc4c17e0037bca6cb952b121",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50159.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-50159",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50159.json"
}
},
"related_cves": [
{
"value": "CVE-2024-50159",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 501238,
"published_at": "2024-11-07T09:31:36.167+00:00"
}