Bug 2425157 (CVE-2023-54146) - CVE-2023-54146 kernel: x86/kexec: Fix double-free of elf header buffer
Summary: CVE-2023-54146 kernel: x86/kexec: Fix double-free of elf header buffer
Keywords:
Status: NEW
Alias: CVE-2023-54146
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-24 14:07 UTC by OSIDB Bzimport
Modified: 2026-03-24 12:08 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-12-24 14:07:12 UTC
In the Linux kernel, the following vulnerability has been resolved:

x86/kexec: Fix double-free of elf header buffer

After

  b3e34a47f989 ("x86/kexec: fix memory leak of elf header buffer"),

freeing image->elf_headers in the error path of crash_load_segments()
is not needed because kimage_file_post_load_cleanup() will take
care of that later. And not clearing it could result in a double-free.

Drop the superfluous vfree() call at the error path of
crash_load_segments().


Note You need to log in before you can comment on or make changes to this bug.