Kernel Kit / Infix / v26.10.0latest
CVE-2026-46017
4.7mediumlinux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases
Reach linux · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
mm: fix deferred split queue races during migration
migrate_folio_move() records the deferred split queue state from src and replays it on dst. Replaying it after remove_migration_ptes(src, dst, 0) makes dst visible before it is requeued, so a concurrent rmap-removal path can mark dst partially mapped and trip the WARN in deferred_split_folio().
Move the requeue before remove_migration_ptes() so dst is back on the deferred split queue before it becomes visible again.
Because migration still holds dst locked at that point, teach deferred_split_scan() to requeue a folio when folio_trylock() fails. Otherwise a fully mapped underused folio can be dequeued by the shrinker and silently lost from split_queue.
[ziy@nvidia.com: move the comment]
Published 2026-05-27NVD
CVSS 3.1Local · low privileges · no user interaction
How it is reached
- Attack vector
- Local
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- None
What it costs
- Confidentiality
- None
- Integrity
- None
- Availability
- High
- Scope
- Unchanged
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Fable 5.1 · high confidence · 2026-11-06
The configured linux-6.18.60 source still has the vulnerable ordering: migrate_folio_move() calls deferred_split_folio(dst) after remove_migration_ptes(src, dst, 0), and deferred_split_scan() drops a folio on folio_trylock() failure without requeueing it; none of the 139 applied patches touch mm/.
The build enables CONFIG_TRANSPARENT_HUGEPAGE=y with TRANSPARENT_HUGEPAGE_ALWAYS, CONFIG_MIGRATION, CONFIG_COMPACTION and ARCH_ENABLE_THP_MIGRATION, so large anon folios, kcompactd/direct compaction migration and the deferred-split shrinker are all active in the default kernel with no operator configuration required.
The race is a kernel-internal timing issue triggered by ordinary memory pressure + compaction; it is not network-reachable, and the impact is a WARN or a folio silently lost from the split queue (DoS/memory leak class, CVSS A:H local).
Evidence 9
remove_migration_ptes(src, dst, 0) is called before deferred_split_folio(dst, src_partially_mapped) - the pre-fix ordering the CVE describes
output/build/linux-6.18.60/mm/migrate.c:1391-1401 (migrate_folio_move)
`if (!folio_trylock(folio)) goto next;` with no requeue of a fully-mapped underused folio - the second half of the fix is missing
output/build/linux-6.18.60/mm/huge_memory.c:4344-4345 (deferred_split_scan)
No applied patch mentions mm/, migrate, huge_memory or deferred split
output/build/linux-6.18.60/.applied_patches_list
CONFIG_TRANSPARENT_HUGEPAGE=y, CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y (THP on for all anon mappings by default)
output/build/linux-6.18.60/.config:983-986
CONFIG_COMPACTION=y, CONFIG_MIGRATION=y, CONFIG_ARCH_ENABLE_THP_MIGRATION=y - folio migration of large folios happens via kcompactd/direct compaction
output/build/linux-6.18.60/.config:968-972
CONFIG_TRANSPARENT_HUGEPAGE=y is set deliberately in the Infix kernel defconfig
board/aarch64/linux_defconfig:61
mm/compaction.o, mm/huge_memory.o and mm/migrate.o are compiled into the image
output/objects.txt:23046-23065
deferred_split_shrinker registered unconditionally at init with scan_objects = deferred_split_scan, so it runs during normal reclaim
output/build/linux-6.18.60/mm/huge_memory.c:919-928
BR2_LINUX_KERNEL=y - the kernel is the target image kernel
output/.config:449
Version and patches
Vulnerable since the deferred-split replay was added to migrate_folio_move() (v6.18-era mm changes); fixed upstream by 3bac01168982 (mainline) and stable backport cbf75cf212ee. The 6.18.60 tarball used here predates the stable backport - the fix hunks are absent from both mm/migrate.c and mm/huge_memory.c. No Buildroot/Infix patch addresses it (139 patches applied, none in mm/).
Recommendation
Upgrade to the 6.18.y stable release that contains cbf75cf212ee6e499abc1757fb4b5ae6d70ed0aa, or backport that commit (two small hunks in mm/migrate.c and mm/huge_memory.c). Priority medium: local-only, hard-to-time race, effect is a WARN splat / leaked deferred-split entry rather than a crash or privilege escalation, but it can occur in normal operation under memory pressure with THP=always.
Open questions
Which 6.18.y stable point release first carries cbf75cf212ee cannot be confirmed from this tree (no git history for the kernel source); check the stable changelog when choosing the upgrade target. Whether the WARN path can actually be forced to a hang/panic (e.g. panic_on_warn) depends on runtime sysctls not set in this tree; .config has no CONFIG_PANIC_ON_WARN-style option enabled per the grep performed.
Members of Kernel Kit decide. Sign in if you are one.