CVE-2026-143078: LoongArch: kexec_file: Fix elf_headers memory leak in retry loop
In the Linux kernel, the following vulnerability has been resolved:
LoongArch: kexecfile: Fix elfheaders memory leak in retry loop
A retry allocates new elf headers and overwrites image->elfheaders, leaking the previous buffer. Free it before assigning here.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Free the previously allocated elf_headers buffer before assigning a newly allocated buffer in the retry loop.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems running the Linux kernel on LoongArch are affected where the kexec_file retry path is exercised. The issue concerns repeated allocation of ELF headers during retries.
What is required to trigger the leak?
The kexec_file operation must enter its retry loop. Each retry allocates new ELF headers and replaces image->elf_headers without freeing the previously allocated buffer.
What can be done if an updated kernel cannot be deployed immediately?
Avoid or limit workloads that invoke kexec_file in a way that causes retries, since the leak occurs on repeated retry allocations. The provided data does not describe another mitigation.