CVE-2024-56573

Summary

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 Software

VendorProductVersion RangeStatus
LinuxLinux42c8ea3dca094ab82776ca706fb7a9cbe8ac3dc9 < d173aee5709bd0994d216d60589ec67f8b11376aaffected
LinuxLinux42c8ea3dca094ab82776ca706fb7a9cbe8ac3dc9 < eaafbcf0a5782ae412ca7de12ef83fc48ccea4cfaffected
LinuxLinux42c8ea3dca094ab82776ca706fb7a9cbe8ac3dc9 < 06d39d79cbd5a91a33707951ebf2512d0e759847affected
LinuxLinux6.2affected
LinuxLinux0 < 6.2unaffected
LinuxLinux6.6.64 <= 6.6.*unaffected
LinuxLinux6.12.4 <= 6.12.*unaffected
LinuxLinux6.13 <= *unaffected

Weaknesses

References