# CVE-2024-56573: efi/libstub: Free correct pointer on failure

- Severity: High 7.0 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-02)
- Published: 2024-12-27T14:23:16.231Z
- Modified: 2026-08-05T11:45:08.677Z
- Weaknesses: CWE-763
- Assigned by: Linux

## 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().

(As written by CVE List.)

## Affected

- Linux Linux: from 42c8ea3dca094ab82776ca706fb7a9cbe8ac3dc9 before d173aee5709bd0994d216d60589ec67f8b11376a; from 42c8ea3dca094ab82776ca706fb7a9cbe8ac3dc9 before eaafbcf0a5782ae412ca7de12ef83fc48ccea4cf; from 42c8ea3dca094ab82776ca706fb7a9cbe8ac3dc9 before 06d39d79cbd5a91a33707951ebf2512d0e759847; 6.2 (not affected: before 6.2; from 6.6.64 up to 6.6.*; from 6.12.4 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 6.2 before 6.6.64; from 6.7 before 6.12.4

## Every score

- Linux: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/d173aee5709bd0994d216d60589ec67f8b11376a> (patch)
- <https://git.kernel.org/stable/c/eaafbcf0a5782ae412ca7de12ef83fc48ccea4cf> (patch)
- <https://git.kernel.org/stable/c/06d39d79cbd5a91a33707951ebf2512d0e759847> (patch)

## Sources

- CVE List: [CVE-2024-56573](https://www.cve.org/CVERecord?id=CVE-2024-56573), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-56573](https://nvd.nist.gov/vuln/detail/CVE-2024-56573), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-56573 · Whole record: https://cve.day/CVE-2024-56573.json · Rebuilt by cve.day 2026-11-25T22:58:50.456Z
