{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2024-56573", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2024-12-27T14:03:05.998Z", "datePublished": "2024-12-27T14:23:16.231Z", "dateUpdated": "2026-08-05T11:45:08.677Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-08-05T11:45:08.677Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nefi/libstub: Free correct pointer on failure\n\ncmdline_ptr is an out parameter, which is not allocated by the function\nitself, and likely points into the caller's stack.\n\ncmdline refers to the pool allocation that should be freed when cleaning\nup after a failure, so pass this instead to free_pool()." } ], "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 vulnerable code is the EFI stub entry point (`efi_pe_entry`/`efi_zboot_entry`), which executes only in the UEFI pre-boot environment on arm64/ARM/RISC-V/LoongArch; it is not bound to any network stack. An attacker needs local access to the machine to influence the boot environment and cause the kernel image to be loaded.\nAC:H - The `fail_free_cmdline` path is only reachable when `efi_parse_options()`'s `allocate_pool` of a ≤COMMAND_LINE_SIZE buffer fails, i.e. UEFI boot-services pool exhaustion — a firmware memory state the attacker cannot reliably influence, since the immediately preceding `efi_convert_cmdline()` allocation of comparable size already succeeded.\nPR:L - Reaching the stub requires a local foothold sufficient to influence the boot (boot entry/command line, chainloaded image, or a reboot on an embedded/kiosk arm64 device); no OS root or CAP_SYS_ADMIN in the running kernel is required.\nUI:N - No victim action is needed — the attacker with local access triggers the boot themselves, and the faulty path executes automatically inside the stub with no user prompt or interaction.\nS:U - The EFI stub already runs with full UEFI boot-services privilege by design, so corrupting the firmware pool does not cross into a different security authority; this is the standard \"same privilege domain\" case rather than a VM/IOMMU boundary escape.\nC:H - Firmware `FreePool()` on a stack address links stub stack memory into the boot-services free list, so that memory can later be handed to other allocations and read back; allocator-metadata corruption in the pre-boot environment is leverageable as an arbitrary-read primitive.\nI:H - Corrupting the UEFI pool allocator's free list yields attacker-influenced writes into fully privileged pre-boot memory, which is exploitable for control-flow hijack before any kernel hardening or Secure Boot lockdown is in effect.\nA:H - The invalid free hangs the boot outright on firmware that asserts on a bad pool signature (EDK2 DEBUG deadloop), and otherwise corrupts firmware heap state; the real `cmdline` pool allocation is additionally leaked on every occurrence." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "drivers/firmware/efi/libstub/efi-stub.c" ], "versions": [ { "version": "42c8ea3dca094ab82776ca706fb7a9cbe8ac3dc9", "lessThan": "d173aee5709bd0994d216d60589ec67f8b11376a", "status": "affected", "versionType": "git" }, { "version": "42c8ea3dca094ab82776ca706fb7a9cbe8ac3dc9", "lessThan": "eaafbcf0a5782ae412ca7de12ef83fc48ccea4cf", "status": "affected", "versionType": "git" }, { "version": "42c8ea3dca094ab82776ca706fb7a9cbe8ac3dc9", "lessThan": "06d39d79cbd5a91a33707951ebf2512d0e759847", "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/efi/libstub/efi-stub.c" ], "versions": [ { "version": "6.2", "status": "affected" }, { "version": "0", "lessThan": "6.2", "status": "unaffected", "versionType": "semver" }, { "version": "6.6.64", "lessThanOrEqual": "6.6.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.12.4", "lessThanOrEqual": "6.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.13", "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.2", "versionEndExcluding": "6.6.64" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.2", "versionEndExcluding": "6.12.4" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.2", "versionEndExcluding": "6.13" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/d173aee5709bd0994d216d60589ec67f8b11376a" }, { "url": "https://git.kernel.org/stable/c/eaafbcf0a5782ae412ca7de12ef83fc48ccea4cf" }, { "url": "https://git.kernel.org/stable/c/06d39d79cbd5a91a33707951ebf2512d0e759847" } ], "title": "efi/libstub: Free correct pointer on failure", "x_generator": { "engine": "bippy-1.2.0" } } } }