From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154165; b=JbeO3koa92tr7xgDIelSx/OBvHzSHLBnMXDAoqTfjFtS2F9uG+XJqQ4j0+MN+hDuZ6BZ +k62fSYzgH51Bd5dgvcHrOw722UUCwo5on9xt5nKNoqbnLjgstuFk1zrgeSr4GUEvxW45 p0PRrucdgDAZPIuxJ5cM87UsMeJCxpJJ+0zQ7BmLKfvqo200YltqALLgpfhdoa67kqs4i oOCe5D0j464Mcvzj6NvSYhna3am1Bb39/0yZP8OgFM5IyS8uZhXbDpSNpQUHi7VRf8xng 09nD0TKh7DauAQbBlnSQTl8uhc9TcZdNdRqiRpSnm6F4JQQgrA10vsqZtjeBcx29RSQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154165; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=UwBj7esQ4LgReJHNLg0Yg2dqOZLcz8u7V6+5bMYJEFs=; b=S4t+Fo1aXTCPim7YG5G9Y4eG4MnjiXsfU+gEddVTs6y64gluFdWP4UdiuxcDiDnKDS3j CXlPd8T7SQMrIhYaTrnWNWxuhFAsdrCtzszJyHiI1xWbBEoYnAFz2g0E654iK7rTXnytb 0i8Rf9dJSD84LnfyNuTh8X1NZPrMoGVkRpQZjpAfOMPHJ1l/0OEdxO/xv1Ti4rZWmGNSj w9uh21zuDxHcABbsG5QgS6F4+2ERc45DXlw8ZOGC5mt4cW5SqNqkAHSeHmlGHYgIdb32Q oCggEYz8k3NKPlThKy+awlpb0PSEuZ/MI33AGbEOnenN5qpgHyZzEjimcIMamn2wwtA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=qjboWQZi; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78AD9606A325 for ; Fri, 20 Nov 2026 05:56:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=qjboWQZi Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6ECAF1F000CA; Fri, 20 Nov 2026 05:56:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154165; bh=UwBj7esQ4LgReJHNLg0Yg2dqOZLcz8u7V6+5bMYJEFs=; h=From:To:Cc:Subject:Date:Reply-To; b=qjboWQZicSHffEjFUGmjtLnNk9TSrRtdeEEBGluCg5pDMyMbXsvoqnJvKmQENgS8D u4LRfnmKkp6YJLF5P46c1wuuTcxOVXwaa/enuj5vBiH3eYaOAEi2FOzt845kjuj9EJ KeWjkU7WPb9deSQiYn+zee8csjAIHE8lpxTNOGMA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99649: mm/ksm: check large swap-cache folios before mapping them Date: Fri, 20 Nov 2026 06:50:35 +0100 Message-ID: <2026112043-CVE-2026-99649-a84a@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2478; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tjuidPwBB1rBecwzBDh0Iv466BUi1+Ndr+nPZTakQpQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/75fnP6u6Xfh4W3HHQ56ag0kGP45/ubjMbhvTVObsg o/X2uOfdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEQn8zLFj7vlBJPfNs6aPu B8suGvJ+Om/Kdpxhnv0C2T1RecFfegolF/FumlCYF/RfEAA= 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/ksm: check large swap-cache folios before mapping them KSM folios are always small, but their shared swap slots can be read back as part of a large folio in the swap cache. ksm_might_need_to_copy() skips large folios, so another process can map a page with an incompatible anon_vma or page index. Reverse mapping then cannot find the new mapping, preventing migration or reclaim. Apply the same compatibility checks to large folios as to small ones. Pass the page corresponding to the swap entry and copy only that page when necessary. In do_swap_page()'s copy path, decrement only that slot's swap count, because the source swap-cache folio can now be large. Fix generated by an LLM and sent by Chris Mason in private. The Linux kernel CVE team has assigned CVE-2026-99649 to this issue. Affected and fixed versions =========================== Issue introduced in 7.0 with commit f1879e8a0c601de78a356016e216241b43de9208 and fixed in 7.3.5 with commit cc4b71683ee9d8d4ed0b25c0744314005fb3e395 Issue introduced in 7.0 with commit f1879e8a0c601de78a356016e216241b43de9208 and fixed in 7.4-rc2 with commit 7f2c000ffb1047b476cbf267f741272c389d3e31 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-99649 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: include/linux/ksm.h mm/ksm.c mm/memory.c mm/swapfile.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/cc4b71683ee9d8d4ed0b25c0744314005fb3e395 https://git.kernel.org/stable/c/7f2c000ffb1047b476cbf267f741272c389d3e31