CVE-2026-53333: mm/mincore: handle non-swap entries before !CONFIG_SWAP guard
In the Linux kernel, the following vulnerability has been resolved:
mm/mincore: handle non-swap entries before !CONFIGSWAP guard
mincoreswap() also fields migration/hwpoison entries (and shmem swapin-error entries), which can exist on !CONFIGSWAP builds when CONFIGMIGRATION or CONFIGMEMORYFAILURE is enabled. The !ISENABLED(CONFIGSWAP) guard ran before the non-swap-entry early return, so mincorepterange() can spuriously WARN and report these pages nonresident on !CONFIGSWAP kernels.
Move the guard below the non-swap-entry check so only true swap entries trip the WARN, and migration/hwpoison entries take the existing "uptodate / non-shmem" path.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Patch the kernel mm/mincore logic so that the !CONFIG_SWAP guard runs after the non-swap-entry check (handle non-swap entries before !CONFIG_SWAP), preventing spurious WARNs for migration/hwpoison/shmem-related entries on !CONFIG_SWAP builds.
Linux kernel (mm/mincore) Guard position for CONFIG_SWAP check in mincore_swap/mincore_pte_range = Move the guard below the non-swap-entry early return so only true swap entries are handled