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=1795154420; b=4RTm2uq93rwFBc+UJjee2yS1vJUi8EYTo8cLAuMna/OrzqO57x02ajc/byfKJj+CnLdF snV2na4l9m/2SHfbAuoU6RlePX7Ji6bp+Spa7m2z4mEvsVKzgFxu94yJKkR8wkzvNxzDj M6A5y3Iyncpcja5JFLnFzZcMWXP/b9TrFOGcdwE0Ix8qEGCZBYWlsc9bKYa49A0BGJ9km EVSvjt5H0kbyBZFR1TCoE5Qw28lRnN/Kb62loMRAJvnBHH2z0jzmKHWXIrPQx2yzzEIk9 08sd8owhDwe/UxJXsnehQSTzMuKW04WComfwLg1qEH5y7MUXV7eYTj4GwE1JxAITBlg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154420; 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=ddITuRdtWYV0GjL6W3stMW8W6rrkP3y4Z4zB28X8faY=; b=uHX9qGNwkU9Wm1xmC1KrQry/YQ+uCEFK+zhakmV9W2dNpmwXIYiR0viTxom2NRcIrxtN dvKLGMFyy/2M64RKBZtG3geDJ9uqdhp17oRTIx0z8Yl0gPdigHleE81B/5P8OG94hzCBi sRfpojgIUVdb2FN3r+050aSKsiz73bYNo5GuEvBB6FDx4P3ajsxkfVdjGKwv/ooE7MnGq uf3pVcQSZ77VnYZHynmUt1sHoEeFo0k7+LqMuJ7A5H/Y3R0GcEt1r1n6uuSLHbGFS3ypD ZkKbNvs89lVdJcJ1ROaXSaT+KjOIIMpDITOBkJx5+hhUgGSsFFZBe4hQqQg1tSE3UsQ== 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=b4pIwwO9; 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 53398606A529 for ; Fri, 20 Nov 2026 06:00:20 +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=b4pIwwO9 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3DDB1F000C6; Fri, 20 Nov 2026 06:00:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154420; bh=ddITuRdtWYV0GjL6W3stMW8W6rrkP3y4Z4zB28X8faY=; h=From:To:Cc:Subject:Date:Reply-To; b=b4pIwwO9nxM/ahbztR2gala7v2ial6iurLipKzzkZNePGdKPkZjUYk4IintGA0ICk AqxVWDq4AC8x5v7oeQ+inECRaOWBEwBmheRckR8t1pVRValXf19mINmSkftuG7njsf 3AndQxm7M3FiwXpltv6DtpNOTsxo98lkh1GsMvz4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99737: mm/shmem: fix truncate loop after boundary swapin failure Date: Fri, 20 Nov 2026 06:52:03 +0100 Message-ID: <2026112016-CVE-2026-99737-b6a1@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=2704; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fqBUkpQZpvZovmRRpTjMpJSVgaPaRorxTNg4g/zYpFY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/78949Llinv3x9pxfq3lWfxYtey1qaFq2bzJ3QELlr mmH+3av7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJrDnPsGBqqEuGZV/Z5w2B Icy69/wEpsUe0GOYH++5dj/3608Zc0vLv72Na1I+uHb3GwA= 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/shmem: fix truncate loop after boundary swapin failure If swapping in a large entry at the new EOF fails, shmem_undo_range() leaves the entry in place. Its final scan skips the entry, then restarts from the same start index and finds it again. Truncation can loop forever while holding i_rwsem. Advance start past the skipped entry so that a restarted scan can finish, as we already do for folios that cannot be split. Note that this does not fix the missing zeroing when boundary swapin fails, it merely prevents the endless loop. The Linux kernel CVE team has assigned CVE-2026-99737 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.69 with commit a99f9a4669a04662c8f9efe0e62cafc598153139 and fixed in 6.12.118 with commit 7f1bbb9c6a8ed3fed72bf7efc906ebe31e92feeb Issue introduced in 6.18.9 with commit b23bee8cdb7aabce5701a7f57414db5a354ae8ed and fixed in 6.18.64 with commit d4d46430852caf5e7dbca1386fc6621ecf8fe2b0 Issue introduced in 6.19 with commit 8a1968bd997f45a9b11aefeabdd1232e1b6c7184 and fixed in 7.3.5 with commit e6e9ba49679e5f33f62615fb57ec103045fbc8f9 Issue introduced in 6.19 with commit 8a1968bd997f45a9b11aefeabdd1232e1b6c7184 and fixed in 7.4-rc2 with commit 5f1ec2cf92a7d655a8eb39711987822f9b1f9d67 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-99737 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/shmem.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/7f1bbb9c6a8ed3fed72bf7efc906ebe31e92feeb https://git.kernel.org/stable/c/d4d46430852caf5e7dbca1386fc6621ecf8fe2b0 https://git.kernel.org/stable/c/e6e9ba49679e5f33f62615fb57ec103045fbc8f9 https://git.kernel.org/stable/c/5f1ec2cf92a7d655a8eb39711987822f9b1f9d67