In the Linux kernel, the following vulnerability has been resolved:
arm64: kexec_file: Fix elf_headers memory leak in retry loop
A retry allocates new elf headers and overwrites image->elf_headers,
leaking the previous buffer.
Free it before assigning.
[catalin.marinas@arm.com: drop the redundant NULL check before vfree()]