Skip to contentSkip to conversation

CVE-2026-99594: arm64: kexec_file: Fix elf_headers memory leak in retry loop

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 20

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

[[email protected]: drop the redundant NULL check before vfree()]

The Linux kernel CVE team has assigned CVE-2026-99594 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.10 with commit 108aa503657ee2fe8aa071dc620d96372c252ecd and fixed in 6.12.118 with commit 6bbf156e8ec4468d3b9a3caad891c9ca43a9cab7
	Issue introduced in 5.10 with commit 108aa503657ee2fe8aa071dc620d96372c252ecd and fixed in 6.18.64 with commit b784e4391fe79e74f989e997b9a0c2a9c337dbe6
	Issue introduced in 5.10 with commit 108aa503657ee2fe8aa071dc620d96372c252ecd and fixed in 7.3.5 with commit f118ee71df3a2d3c54d57cfbe3643a9a29b83128
	Issue introduced in 5.10 with commit 108aa503657ee2fe8aa071dc620d96372c252ecd and fixed in 7.4-rc2 with commit ac302aea3d824ccc99f29b8e499c365cb9a684a9
	Issue introduced in 5.9.9 with commit 950fd0db5dbfc2f8e1c89c7c19c65daf2684ad9e

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99594

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
arch/arm64/kernel/machine_kexec_file.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/6bbf156e8ec4468d3b9a3caad891c9ca43a9cab7
	https://git.kernel.org/stable/c/b784e4391fe79e74f989e997b9a0c2a9c337dbe6
	https://git.kernel.org/stable/c/f118ee71df3a2d3c54d57cfbe3643a9a29b83128
	https://git.kernel.org/stable/c/ac302aea3d824ccc99f29b8e499c365cb9a684a9