{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2024-50159", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2024-10-21T19:36:19.961Z", "datePublished": "2024-11-07T09:31:36.167Z", "dateUpdated": "2026-08-05T11:42:09.468Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-08-05T11:42:09.468Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nfirmware: arm_scmi: Fix the double free in scmi_debugfs_common_setup()\n\nClang static checker(scan-build) throws below warning:\n | drivers/firmware/arm_scmi/driver.c:line 2915, column 2\n | Attempt to free released memory.\n\nWhen devm_add_action_or_reset() fails, scmi_debugfs_common_cleanup()\nwill run twice which causes double free of 'dbg->name'.\n\nRemove the redundant scmi_debugfs_common_cleanup() to fix this problem." } ], "metrics": [ { "cvssV3_1": { "version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7, "baseSeverity": "HIGH" }, "scenarios": [ { "lang": "en", "value": "AV:L - The defect lives in the `arm-scmi` platform driver's `scmi_probe()` debugfs setup path, which is only executed during local device/driver binding — there is no network, packet, or remote-peer input anywhere on the path. Reaching it requires local system context (boot, module load, or deferred-probe retry), so Local is the appropriate vector.\nAC:H - The double free is only reached when `__devres_alloc_node()` returns NULL, i.e. a small GFP_KERNEL allocation fails at one exact instant during a one-shot probe; small GFP_KERNEL allocations reclaim or OOM-kill rather than fail, and `.suppress_bind_attrs = true` removes any sysfs re-probe retry loop. The attacker cannot initiate the probe nor steer that specific allocation, so success depends on conditions genuinely outside their control, compounded by the non-default `CONFIG_ARM_SCMI_RAW_MODE_SUPPORT`/`CONFIG_ARM_SCMI_DEBUG_COUNTERS` requirement.\nPR:L - The only attacker-influenceable ingredient is system memory pressure, which an ordinary unprivileged local process can generate without any capability, and SCMI probe can occur after userspace is up via udev-driven module load or deferred-probe retry. Choosing the higher-severity option over PR:H, which would otherwise apply since deliberately initiating a probe needs CAP_SYS_MODULE.\nUI:N - Driver probe and the debugfs setup run autonomously from the DT/platform-device match; no victim must open a file, mount a filesystem, or take any other action. The error path executes purely as a consequence of the allocation failure.\nS:U - The double free corrupts the kernel's own slab allocator and dentry cache within the same kernel security authority. No hypervisor, IOMMU, container, or sandbox boundary is crossed.\nC:H - A slab double free lets the same object be handed out to two independent allocations, and the redundant `debugfs_remove_recursive()` additionally dereferences a released dentry — both are read primitives over attacker-unrelated kernel objects. Consistent with treating use-after-free/double-free as enabling arbitrary kernel memory disclosure.\nI:H - Freeing `dbg->name` and `dbg->type` twice corrupts the SLUB freelist, the standard stepping stone to aliased-object and arbitrary-write primitives, and the stale dentry is written through by the second recursive removal. Memory corruption of this class is scored as enabling control-flow hijacking.\nA:H - With freelist hardening the second `kfree()` raises a BUG/panic outright; without it, freelist corruption and the dentry use-after-free reliably lead to an oops during subsequent allocation or dcache activity. Either outcome is a full kernel crash." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "drivers/firmware/arm_scmi/driver.c" ], "versions": [ { "version": "c3d4aed763ce4a39f8ed36c7b7cd9a6a35971329", "lessThan": "6d91d07913aee90556362d648d6a28a1eda419dc", "status": "affected", "versionType": "git" }, { "version": "c3d4aed763ce4a39f8ed36c7b7cd9a6a35971329", "lessThan": "fb324fdaf546bf14bc4c17e0037bca6cb952b121", "status": "affected", "versionType": "git" }, { "version": "c3d4aed763ce4a39f8ed36c7b7cd9a6a35971329", "lessThan": "39b13dce1a91cdfc3bec9238f9e89094551bd428", "status": "affected", "versionType": "git" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "drivers/firmware/arm_scmi/driver.c" ], "versions": [ { "version": "6.3", "status": "affected" }, { "version": "0", "lessThan": "6.3", "status": "unaffected", "versionType": "semver" }, { "version": "6.6.59", "lessThanOrEqual": "6.6.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.11.6", "lessThanOrEqual": "6.11.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.12", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.3", "versionEndExcluding": "6.6.59" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.3", "versionEndExcluding": "6.11.6" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.3", "versionEndExcluding": "6.12" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/6d91d07913aee90556362d648d6a28a1eda419dc" }, { "url": "https://git.kernel.org/stable/c/fb324fdaf546bf14bc4c17e0037bca6cb952b121" }, { "url": "https://git.kernel.org/stable/c/39b13dce1a91cdfc3bec9238f9e89094551bd428" } ], "title": "firmware: arm_scmi: Fix the double free in scmi_debugfs_common_setup()", "x_generator": { "engine": "bippy-1.2.0" } } } }