Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8DDDF48C400 for ; Wed, 1 Jul 2026 13:35:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782912955; cv=none; b=maOJfdZzC+6SqgA6HrgA2jMV6kldOugw7/DdYLekK8ofkmJZ5c8LpJu7mwMUJg8CvKSawdauKmoQ18BVfikSyarJEWypBhiGdBpxx93rA9B2ZVfv+k03HWTIy+rgI+RJKk3SOqsA12DnKIzNHMtIxXQTh+IeZpJH//G0+z/zw2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782912955; c=relaxed/simple; bh=Ym/vCp0Zf3wUO1KjHICxrZVlkmnv4DKXQvRdbUsEEc8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d/I7JY9K1isxBTz2vSV0W1mB+sm2KScA6WpA5OZj+KUkE0yZliyoSkwXJwGFQvwO96vCrTHBEQUaw8vbO0YvhSbZJR/acdEkgB4WNYUjlJWOMu9Ejq3m6mJzrYjtW+cBQj6C9GB6s7guJUkdRO/OJW6LEda8V4PuHAuIKxihEd0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Vw+NsF/a; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Vw+NsF/a" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D20D41F00A3A; Wed, 1 Jul 2026 13:35:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782912951; bh=ukb4sw/vFkCThetS/pxbGkhadWLBnKbo1sgZ1DaK3jE=; h=From:To:Cc:Subject:Date:Reply-To; b=Vw+NsF/a0RRCiM4xFvJB3I7xZywR79OC1UVwKQu0frFbVlXMiiOCVWwDsBUVguFR+ pmwTHCXrsZAw6FV4VSkYBxrcuY+Ld6sKke48i422EJEpNEXIxBLWyWAWv3CIZ5gJ69 opYV13wkuB01u8MdTCsCRLxKzfPzPcs6Ba00EFR0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53333: mm/mincore: handle non-swap entries before !CONFIG_SWAP guard Date: Wed, 1 Jul 2026 15:34:48 +0200 Message-ID: <2026070143-CVE-2026-53333-082a@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2528; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tTTwfTSPW21RvHl9GbTdhKV229sEAOXH7uj/D1Hh6Gc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmu4sXHC1N2SDZ0fY6VX301JUi3YPKnnlL9xCuvpjbe/ Xjk/rLCjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI6D+G+Vne2YJOKr5OzZtn 5YjYF6bu1a2byTC/VCYg/Mq9gF2SNzIr5XyXRjWK2zQAAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: mm/mincore: handle non-swap entries before !CONFIG_SWAP guard mincore_swap() also fields migration/hwpoison entries (and shmem swapin-error entries), which can exist on !CONFIG_SWAP builds when CONFIG_MIGRATION or CONFIG_MEMORY_FAILURE is enabled. The !IS_ENABLED(CONFIG_SWAP) guard ran before the non-swap-entry early return, so mincore_pte_range() can spuriously WARN and report these pages nonresident on !CONFIG_SWAP 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. The Linux kernel CVE team has assigned CVE-2026-53333 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 1f2052755c152940c336918bd73d13d5468f548b and fixed in 6.18.36 with commit a8f91ddf67f669f547bb9fb559738da6f8ee2cf3 Issue introduced in 6.18 with commit 1f2052755c152940c336918bd73d13d5468f548b and fixed in 7.0.13 with commit 3481d4372ae34243f7025925314385b852c50f7e Issue introduced in 6.18 with commit 1f2052755c152940c336918bd73d13d5468f548b and fixed in 7.1 with commit 0c25b8734367574e21aeb8468c2e522713134da7 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-53333 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: mm/mincore.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/a8f91ddf67f669f547bb9fb559738da6f8ee2cf3 https://git.kernel.org/stable/c/3481d4372ae34243f7025925314385b852c50f7e https://git.kernel.org/stable/c/0c25b8734367574e21aeb8468c2e522713134da7