CVE-2024-56573

efi/libstub: Free correct pointer on failure

State
Published
Severity
7.0 High
Published
Dec 27, 2024
Updated
Aug 5, 2026
Reserved
Dec 27, 2024

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.17.0 HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 42c8ea3dca094ab82776ca706fb7a9cbe8ac3dc9 to before d173aee5709bd0994d216d60589ec67f8b11376aAffected
  • 42c8ea3dca094ab82776ca706fb7a9cbe8ac3dc9 to before eaafbcf0a5782ae412ca7de12ef83fc48ccea4cfAffected
  • 42c8ea3dca094ab82776ca706fb7a9cbe8ac3dc9 to before 06d39d79cbd5a91a33707951ebf2512d0e759847Affected
LinuxLinux
  • 6.2Affected
  • before 6.2Not affected
  • 6.6.64 through 6.6.*Not affected
  • 6.12.4 through 6.12.*Not affected
  • 6.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.