# CVE-2026-139511: efi/libstub: Fix error unwind freeing fdt in allocate_new_fdt_and_exit_boot()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-11-30T13:35:25.654Z
- Modified: 2026-11-30T14:19:27.073Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 4fc8e738ff3e6a208855bb69783280870c7cf251 before 3b908dc1b8e6070a43bb55b7c4529f0ed2b0ebb2; from 4fc8e738ff3e6a208855bb69783280870c7cf251 before 0bb9a789c1736586e156b4eeefa20c3564cf4fdd; from 4fc8e738ff3e6a208855bb69783280870c7cf251 before 3546c80c4b6fcd424044b2d61809dab300e10725; from 4fc8e738ff3e6a208855bb69783280870c7cf251 before 8abcdae30b22c961e8217b487fb32964b1a070be; from 4fc8e738ff3e6a208855bb69783280870c7cf251 before d003acbf52efa21803321d65be9996877cac6d99; from 4fc8e738ff3e6a208855bb69783280870c7cf251 before d83fe67339f2032d8facf0fe8a047a4c5d15394f; 6.1 (not affected: before 6.1; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/3b908dc1b8e6070a43bb55b7c4529f0ed2b0ebb2>
- <https://git.kernel.org/stable/c/0bb9a789c1736586e156b4eeefa20c3564cf4fdd>
- <https://git.kernel.org/stable/c/3546c80c4b6fcd424044b2d61809dab300e10725>
- <https://git.kernel.org/stable/c/8abcdae30b22c961e8217b487fb32964b1a070be>
- <https://git.kernel.org/stable/c/d003acbf52efa21803321d65be9996877cac6d99>
- <https://git.kernel.org/stable/c/d83fe67339f2032d8facf0fe8a047a4c5d15394f>

## Sources

- CVE List: [CVE-2026-139511](https://www.cve.org/CVERecord?id=CVE-2026-139511), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139511](https://nvd.nist.gov/vuln/detail/CVE-2026-139511), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139511 · Whole record: https://cve.day/CVE-2026-139511.json · Rebuilt by cve.day 2026-11-30T14:33:24.194Z
