In the Linux kernel, the following vulnerability has been resolved:
mm/page_alloc: fix initialization of tags of the huge zero folio with init_on_free
__GFP_ZEROTAGS semantics are currently a bit weird, but effectively this flag is only ever set alongside __GFP_ZERO and __GFP_SKIP_KASAN.
If we run with init_on_free, we will zero out pages during __free_pages_prepare(), to skip zeroing on the allocation path.
However, when allocating with __GFP_ZEROTAG set, post_alloc_hook() will consequently not only skip clearing page content, but also skip clearing tag memory.
Not clearing tags through __GFP_ZEROTAGS is irrelevant for most pages that will get mapped to user space through set_pte_at() later: set_pte_at() and friends will detect that the tags have not been initialized yet (PG_mte_tagged not set), and initialize them.
However, for the huge zero folio, which will be mapped through a PMD marked as special, this initialization will not be performed, ending up exposing whatever tags were still set for the pages.
The docs (Documentation/arch/arm64/memory-tagging-extension.rst) state that allocation tags are set to 0 when a page is first mapped to user space. That no longer holds with the huge zero folio when init_on_free is enabled.
Fix it by decoupling __GFP_ZEROTAGS from __GFP_ZERO, passing to tag_clear_highpages() whether we want to also clear page content.
Invert the meaning of the tag_clear_highpages() return value to have clearer semantics.
Reproduced with the huge zero folio by modifying the check_buffer_fill arm64/mte selftest to use a 2 MiB area, after making sure that pages have a non-0 tag set when freeing (note that, during boot, we will not actually initialize tags, but only set KASAN_TAG_KERNEL in the page flags).
$ ./check_buffer_fill 1..20 ... not ok 17 Check initial tags with private mapping, sync error mode and mmap memory not ok 18 Check initial tags with private mapping, sync error mode and mmap/mprotect memory ...
This code needs more cleanups; we'll tackle that next, like decoupling __GFP_ZEROTAGS from __GFP_SKIP_KASAN.
[[email protected]: s/__GPF_ZERO/__GFP_ZERO/, per David]
CVSS Details
- CVSS 3.1 Base Score: 5.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon_linux_2023 | — | Upgrade kernel6.18-debuginfoUpgrade kernel-livepatch-6.18.35-68.127Upgrade python3-perf6.18Upgrade perf6.18-debuginfoUpgrade bpftool6.18Upgrade python3-perf6.18-debuginfoUpgrade microvm-kernel6.18Upgrade kernel6.18-tools-debuginfoUpgrade bpftool6.18-debuginfoUpgrade perf6.18Upgrade kernel6.18-debuginfo-common-x86_64Upgrade kernel6.18-develUpgrade kernel6.18-toolsUpgrade kernel6.18Upgrade kernel6.18-modules-extra-commonUpgrade kernel6.18-headersUpgrade kernel6.18-tools-develUpgrade kernel6.18-modules-extraUpgrade kernel6.18-debuginfo-common-aarch64 | Aug 10, 2026 | Jul 19, 2026 |
| Redhat_linux | — | No solution exists | Jul 22, 2026 | Jul 19, 2026 |
| Ubuntu | — | Upgrade linux-image-nvidia-7.0Upgrade linux-image-7.0.0-1009-aws-64kUpgrade linux-image-gcp-64k-7.0Upgrade linux-image-gcp-64kUpgrade linux-image-nvidia-bos-64kUpgrade linux-image-nvidiaUpgrade linux-image-7.0.0-1016-nvidiaUpgrade linux-image-oracle-64kUpgrade linux-image-7.0.0-1015-raspiUpgrade linux-image-nvidia-bos-64k-7.0Upgrade linux-image-nvidia-bos-7.0Upgrade linux-image-oracle-7.0Upgrade linux-image-nvidia-64k-7.0Upgrade linux-image-raspiUpgrade linux-image-7.0.0-1008-oracleUpgrade linux-image-7.0.0-1009-awsUpgrade linux-image-aws-64k-7.0Upgrade linux-image-nvidia-bosUpgrade linux-image-nvidia-64k-hwe-26.04Upgrade linux-image-raspi-realtime-7.0Upgrade linux-image-7.0.0-2016-nvidia-bosUpgrade linux-image-7.0.0-1010-ibmUpgrade linux-image-nvidia-hwe-26.04Upgrade linux-image-azureUpgrade linux-image-7.0.0-1011-gcp-64kUpgrade linux-image-7.0.0-1016-nvidia-64kUpgrade linux-image-azure-fdeUpgrade linux-image-nvidia-64kUpgrade linux-image-ibm-7.0Upgrade linux-image-ibmUpgrade linux-image-raspi-7.0Upgrade linux-image-aws-64kUpgrade linux-image-awsUpgrade linux-image-azure-7.0Upgrade linux-image-7.0.0-1015-raspi-realtimeUpgrade linux-image-7.0.0-1009-azure-fdeUpgrade linux-image-gcp-7.0Upgrade linux-image-oracleUpgrade linux-image-azure-fde-7.0Upgrade linux-image-7.0.0-2016-nvidia-bos-64kUpgrade linux-image-7.0.0-1014-azureUpgrade linux-image-raspi-realtimeUpgrade linux-image-7.0.0-1011-gcpUpgrade linux-image-7.0.0-1008-oracle-64kUpgrade linux-image-aws-7.0Upgrade linux-image-oracle-64k-7.0Upgrade linux-image-7.0.0-1010-azureUpgrade linux-image-gcp | Jul 21, 2026 | Jul 20, 2026 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub