efi/libstub: Fix error unwind freeing fdt in allocate_new_fdt_and_exit_boot()
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
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.
| Product | Versions |
|---|---|
| Linux Linux | 4fc8e738ff3e6a208855bb69783280870c7cf251 to before 3b908dc1b8e6070a43bb55b7c4529f0ed2b0ebb2 Affected4fc8e738ff3e6a208855bb69783280870c7cf251 to before 0bb9a789c1736586e156b4eeefa20c3564cf4fdd Affected4fc8e738ff3e6a208855bb69783280870c7cf251 to before 3546c80c4b6fcd424044b2d61809dab300e10725 Affected4fc8e738ff3e6a208855bb69783280870c7cf251 to before 8abcdae30b22c961e8217b487fb32964b1a070be Affected4fc8e738ff3e6a208855bb69783280870c7cf251 to before d003acbf52efa21803321d65be9996877cac6d99 Affected4fc8e738ff3e6a208855bb69783280870c7cf251 to before d83fe67339f2032d8facf0fe8a047a4c5d15394f Affected |
| Linux Linux | 6.1 Affectedbefore 6.1 Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
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
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.