CVE-2026-139511

efi/libstub: Fix error unwind freeing fdt in allocate_new_fdt_and_exit_boot()

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

efi/libstub: Fix error unwind freeing fdt in allocate_new_fdt_and_exit_boot()

Sashiko says fdt_addr can point to either an allocated fdt or the fdt from
get_fdt() which is memory owned by FW.

Only the allocated fdt should be freed on the error unwind path. Use a
dedicated variable for the allocation's size so that the free does not get
confused.

Analysis

AI-generated

Technical impact

The vulnerability lies in the efi/libstub component of the Linux kernel, where a released pointer may incorrectly refer to firmware‑owned firmware device trees rather than to kernel‑allocated ones. This incorrect freeing can corrupt memory management, leading to a crash or denial of service during system boot. The flaw stems from ambiguous handling of the fdt pointer on error paths and represents a typical resource release error. The impact is limited to kernel stability and reliability, potentially preventing a system from starting normally. In the absence of further exploitation evidence, the vulnerability does not inherently provide attacker‑controlled code execution or privilege escalation.

Affected Systems

All systems running any Linux kernel that includes the efi/libstub module are affected, because the kernel CPE covers every Linux kernel version. Exact version information is not specified in the advisory; therefore all kernels prior to the fix commit are considered vulnerable. The vendor product list only indicates generic Linux:Linux, indicating no product‑specific segmentation.

Risk and Exploitability

No known public exploits exist for this flaw, and the Exploit Prediction Scoring System does not report a score for it. It is not listed in the CISA KEV catalog, suggesting a low to moderate likelihood of exploitation in the wild. The likely attack vector is during system boot when the kernel loads firmware tables; a compromised firmware or malicious loader could trigger the error path to lead the kernel to attempt a misguided free. Because the flaw pertains to memory handling, an attacker would need to influence the boot sequence or supply malformed firmware tables to observe a crash or denial of service. The consequence is limited to denial of service rather than active exploitation, and the risk is considered moderate given the lack of exploitation evidence and the necessity of affecting the boot process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest kernel update that contains the fix for the errant fdt deallocation bug
  • If immediate patching is not possible, replace or update the system firmware to ensure it does not supply fdt data that triggers the buggy path
  • Continue to monitor system stability and kernel logs for unexpected crashes during boot to assess residual risk

Generated by OpenCVE AI on November 30, 2026 at 23:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-232
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: efi/libstub: Fix error unwind freeing fdt in allocate_new_fdt_and_exit_boot() Sashiko says fdt_addr can point to either an allocated fdt or the fdt from get_fdt() which is memory owned by FW. Only the allocated fdt should be freed on the error unwind path. Use a dedicated variable for the allocation's size so that the free does not get confused.
Title efi/libstub: Fix error unwind freeing fdt in allocate_new_fdt_and_exit_boot()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-232

    Improper Handling of Undefined Values

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:35 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM