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