VDB

CVE-2026-23352

CVE-2026-23352 PUBLISHED

x86/efi: defer freeing of boot services memory

Reported by linux · Published March 25, 2026

In the Linux kernel, the following vulnerability has been resolved: x86/efi: defer freeing of boot services memory efi_free_boot_services() frees memory occupied by EFI_BOOT_SERVICES_CODE and EFI_BOOT_SERVICES_DATA using memblock_free_late(). There are two issue with that: memblock_free_late() should be used for memory allocated with memblock_alloc() while the memory reserved with memblock_reserve() should be freed with free_reserved_area(). More acutely, with CONFIG_DEFERRED_STRUCT_PAGE_INIT=y efi_free_boot_services() is called before deferred initialization of the memory map is complete. Benjamin Herrenschmidt reports that this causes a leak of ~140MB of RAM on EC2 t3a.nano instances which only have 512MB or RAM. If the freed memory resides in the areas that memory map for them is still uninitialized, they won't be actually freed because memblock_free_late() calls memblock_free_pages() and the latter skips uninitialized pages. Using free_reserved_area() at this point is also problematic because __free_page() accesses the buddy of the freed page and that again might end up in uninitialized part of the memory map. Delaying the entire efi_free_boot_services() could be problematic because in addition to freeing boot services memory it updates efi.memmap without any synchronization and that's undesirable late in boot when there is concurrency. More robust approach is to only defer freeing of the EFI boot services memory. Split efi_free_boot_services() in two. First efi_unmap_boot_services() collects ranges that should be freed into an array then efi_free_boot_services() later frees them after deferred init is complete.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12-headersAmazon Linux1:6.12.77-99.140.amzn2023
kernel6.18-libbpfAmazon Linux1:6.18.20-20.229.amzn2023
kernel-modules-extraAmazon Linux1:6.1.168-202.320.amzn2023
kernel-livepatch-6.12.77-99.140Amazon Linux1:1.0-0.amzn2023
kernel6.12-libbpf-staticAmazon Linux1:6.12.77-99.140.amzn2023
linux_kernellinux6.19.7, 6.18.17, 6.12.77, 6.6.130, 6.1.167, 5.15.203, 5.10.253
LinuxLinuxf9e9cc320854a76a39e7bc92d144554f3a727fad, a4b0bf6a40f3c107c67a24fbc614510ef5719980, 7dcf59422a3b0d20ddda844f856b4a1e0608a326, 7131bd1fecc749bc94fb44aae217bbd8a8a85264, 6d8ba221e7aafaa2f284b7d22faee814c28e009d, 6a25e25279282c5c8ade554c04c6ab9dc7902c64, 4a2cb90c538f06c873a187aa743575d48685d7a6, 399da820ecfe6f4f10c143e5c453d3559a04db9c, 3.0, 227688312fece0026fc67a00ba9a0b3611ebe95d, 2.6.39.2

Affected products

VendorProductVersions
LinuxLinux0aed459e8487eb6ebdb4efe8cefe1eafbc704b30, 916f676f8dc016103f983c7ec54c18ecdbb6e349, 916f676f8dc016103f983c7ec54c18ecdbb6e349
LinuxLinux3.0, 0, 2.6.39.2
amazon:2023kernel6.12-headers0
amazon:2023kernel6.18-libbpf0
amazon:2023kernel-modules-extra0
amazon:2023kernel-livepatch-6.12.77-99.1400
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel6.12-libbpf-devel0
amazon:2023python3-perf6.180
amazon:2023bpftool0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-livepatch-6.1.168-202.3200
amazon:2023kernel6.180
amazon:2023python3-perf0
amazon:2023kernel6.120
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.12-tools-devel0
amazon:2023perf6.120
amazon:2023kernel6.18-tools0
amazon:2023kernel6.18-modules-extra-common0

…and 27 more

Timeline

  • Mar 24, 2026 CVE Published
  • Mar 25, 2026 EPSS Score (27 in total, the first dated here)
  • Mar 25, 2026 Coalition ESS Score (2 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (142 in total, the first dated here)
  • Mar 29, 2026 PoC Published (2 in total, the first dated here)
  • Aug 11, 2026 Distribution Patch (59 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-23352
vulnetix vdb fixes CVE-2026-23352

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-23352/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›