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-05
The vulnerable source is present in linux-6.18.60 (migrate_folio_move() still calls deferred_split_folio(dst) after remove_migration_ptes(), and deferred_split_scan() still drops a folio on folio_trylock() failure without requeueing; none of the 139 applied patches touch mm/).
However, the whole deferred-split machinery lives in mm/huge_memory.c, which is only built with CONFIG_TRANSPARENT_HUGEPAGE, and that option is disabled in this kernel config. huge_memory.o is not in the build output, deferred_split_folio() compiles to an empty inline stub, folio_test_partially_mapped() is constant false, and no deferred-split shrinker exists, so the race described by the CVE cannot occur in this image.
mm/migrate.o is built (CONFIG_MIGRATION=y via COMPACTION), but the affected hunk reduces to a no-op.
Evidence 10
Unfixed ordering: remove_migration_ptes(src, dst, 0) precedes deferred_split_folio(dst, src_partially_mapped) — the upstream fix is not backported here
output/build/linux-6.18.60/mm/migrate.c:1391-1401
`if (!folio_trylock(folio)) goto next;` with no requeue — second half of the fix also absent
output/build/linux-6.18.60/mm/huge_memory.c:4344-4345 (deferred_split_scan)
No applied patch touches mm/migrate.c or mm/huge_memory.c (only mmc/drm/wifi matches for 'mm')
output/build/linux-6.18.60/.applied_patches_list
# CONFIG_TRANSPARENT_HUGEPAGE is not set
output/build/linux-6.18.60/.config:980
obj-$(CONFIG_TRANSPARENT_HUGEPAGE) += huge_memory.o khugepaged.o — deferred_split_folio()/deferred_split_scan()/shrinker only built with THP
output/build/linux-6.18.60/mm/Makefile:101
mm/migrate.o and mm/compaction.o present; mm/huge_memory.o absent
output/objects.txt
In the #else /* CONFIG_TRANSPARENT_HUGEPAGE */ branch, deferred_split_folio() is an empty static inline stub
output/build/linux-6.18.60/include/linux/huge_mm.h:525,601
Without CONFIG_TRANSPARENT_HUGEPAGE, FOLIO_FLAG_FALSE(partially_mapped) — the flag the race depends on can never be set
output/build/linux-6.18.60/include/linux/page-flags.h:878-889
Page migration itself is compiled (compaction), but no THP/large-anon-folio support, so the deferred split queue is never populated
output/build/linux-6.18.60/.config (CONFIG_MIGRATION=y, CONFIG_COMPACTION=y, CONFIG_NUMA not set, CONFIG_HUGETLBFS not set)
BR2_LINUX_KERNEL=y with custom config board/x86_64/linux_defconfig — kernel is the target image kernel
output/.config:445,461
Version and patches
Upstream fix commits 3bac01168982 / cbf75cf212ee (mm: fix deferred split queue races during migration) are not present in linux-6.18.60 as unpacked in this tree, and no Buildroot/Infix patch supplies them. The code is therefore version-affected per NVD, but the affected feature (CONFIG_TRANSPARENT_HUGEPAGE → mm/huge_memory.c) is not compiled into this kernel.
Recommendation
Document as N/A: vulnerable feature (Transparent Huge Pages / deferred split queue) is not compiled into the x86_64 Infix kernel. The fix will arrive with a routine stable kernel bump; no urgent backport is needed. Re-evaluate if CONFIG_TRANSPARENT_HUGEPAGE is ever enabled in board/x86_64/linux_defconfig.
Open questions
None for this x86_64 build. Other board defconfigs (e.g. aarch64) were not reviewed and should be checked separately if they enable CONFIG_TRANSPARENT_HUGEPAGE.
Members of Kernel Kit decide. Sign in if you are one.