What’s Vulnerable › Vulnerabilities
CVE-2024-56573: efi/libstub: Free correct pointer on failure
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-12-27 · updated 2026-08-04
- Weakness: CWE-763
Description
In the Linux kernel, the following vulnerability has been resolved: efi/libstub: Free correct pointer on failure cmdline_ptr is an out parameter, which is not allocated by the function itself, and likely points into the caller's stack. cmdline refers to the pool allocation that should be freed when cleaning up after a failure, so pass this instead to free_pool().
Affected products
- Linux kernel: from 6.2 before 6.6.64; from 6.7 before 6.12.4 — fixed in 6.12.4, 6.6.64
How to fix
Upgrade to a fixed version: Linux kernel 6.12.4, 6.6.64. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/06d39d79cbd5a91a33707951ebf2512d0e759847
- https://git.kernel.org/stable/c/d173aee5709bd0994d216d60589ec67f8b11376a
- https://git.kernel.org/stable/c/eaafbcf0a5782ae412ca7de12ef83fc48ccea4cf
Get alerted when CVE-2024-56573 or the next vulnerability affects your stack