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=1795154196; b=kHvw1OGBpRlfw2Pm7DR5pNiZhl3T7JrrZqP3twUGX9lcVUBAddDMTG17a00WWwinm3/w e66FsMSW1ZunRqd3nbNvfShlana+sg1AieFAYydZ4zkfy0V9tao+6m2D8mOQvavFyzm60 ec4pzrngNAGcX+3OeG1D8Jx/Bi/WZkwRzqLuehJkPo9Qdnpz7zAWXqFirXusG1Z8tyxY1 E8NjtVFkIWCaK4gfShmVCMsdVClNSx5t2kdmCgKqnzI6Y0MDdAAcDBDXn0PDzGJET3ZVF cHsNwNh9eXSGLWkF+yBvA2ltI2Q2vYljayL++DCfx5kEfObxOzS4T/sUz0pyBLi3QPg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154196; 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=+eXhV42b80w2Gk+kndbDrLnfmqHtqhryZyDVM1pt19c=; b=Gqipd3cZ5ETjSULGkaWPebrdKLrWJ5xgMVJU34a8nV01mARIjGkg1YbXc3+OrksLOqmo ldgzPJr6n6K4O0+6Wc6Jw7Cu++zsADsJalbPGFBV6WFtQv0avQlmZs6m8husaGvurWqQd qDVZsNMeiLhpaCCm65qlZzcubrRkNs8Ok9i5g78GAIIxP7XnOAJwG4+wQJGc/4Fp1OA4z pkN5LtfVDvHbwqV7RdGNVR6UYtNqsC2sH1NDH7YzB04MDRxWBZwS5maVuf43DrU8A9bdb zAXY/ls+nvelIZZTwuZyaen4RmxkiaushUC5Dy6WDltWYxKUCReunsJKuhaWAY/1zew== 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=rxRava+R; 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 39F2B606A320 for ; Fri, 20 Nov 2026 05:56:36 +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=rxRava+R Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A4F51F000C6; Fri, 20 Nov 2026 05:56:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154196; bh=+eXhV42b80w2Gk+kndbDrLnfmqHtqhryZyDVM1pt19c=; h=From:To:Cc:Subject:Date:Reply-To; b=rxRava+RILuTzoWBFar9a9d9jtrKQBYSkkHOPDUzZNEN/eTRZ3LphYUBYRElJoFOk C3m8fBc0kGqNu4caWdMS7iVoMafXXKqS1tfboyvtr/p1TiRro9XRjLLYKzthAPdLmQ Yp+eLXswATK56Yfa96u+7LIigF/9HhQso3gqPTPY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99659: mm/mmu_gather: fix flushing ranges with 4 GiB or larger Date: Fri, 20 Nov 2026 06:50:45 +0100 Message-ID: <2026112047-CVE-2026-99659-55fb@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=2975; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1OvjdpDMVZ6wt0V4Pp0IU6jov3Fmk371TjRKhQhIZy8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/71fvl7rZasXv+orZ1CfYTSfiu+zT1a9To4vZPV0PZ srkHzvYEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABN5xMcwP2PO/VPrrqo6RWc+ WvHTr6am/ufXTwwLui6/zjkXvn+f+JukFLbonC35QplNAA== 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/mmu_gather: fix flushing ranges with 4 GiB or larger __tlb_adjust_range() takes the size of the range which has to be flushed as an unsigned int. Its callers, tlb_flush_{pte,pmd,pud,p4d}_range(), get and pass an unsigned long. Consequently, a range that is 4 GiB or larger gets truncated, possibly to 0. On arm64 with hugetlb, a 64k kernel can have 16 GiB hugetlb folios mapped contiguously at the PMD level and flush them when unmapping, and a 16k kernel can flush 64 GiB PUDs through tlb_unshare_pmd_ptdesc(). So at least these two scenarios are affected. Fix it by flushing the proper range instead of the truncated one by properly using "unsigned long" for range_size. Fix generated by an LLM and sent by Josef Bacik in private. [ david: use two-tab indent, simplify description ] The Linux kernel CVE team has assigned CVE-2026-99659 to this issue. Affected and fixed versions =========================== Issue introduced in 4.10 with commit b528e4b6405b9fd656a6a308a7e2aa6afa50e77d and fixed in 6.12.118 with commit da895690b531ba3905c69bd2ed1c447dafa7b4ce Issue introduced in 4.10 with commit b528e4b6405b9fd656a6a308a7e2aa6afa50e77d and fixed in 6.18.64 with commit 2e12a0d8fa2ea4af9a74f414063359d965784919 Issue introduced in 4.10 with commit b528e4b6405b9fd656a6a308a7e2aa6afa50e77d and fixed in 7.3.5 with commit 3647c49f164004458b5e767deed033bc13a25a2d Issue introduced in 4.10 with commit b528e4b6405b9fd656a6a308a7e2aa6afa50e77d and fixed in 7.4-rc2 with commit 64ae7959a1df8af8eec504e31df2ec9670424a4e 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-99659 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/asm-generic/tlb.h 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/da895690b531ba3905c69bd2ed1c447dafa7b4ce https://git.kernel.org/stable/c/2e12a0d8fa2ea4af9a74f414063359d965784919 https://git.kernel.org/stable/c/3647c49f164004458b5e767deed033bc13a25a2d https://git.kernel.org/stable/c/64ae7959a1df8af8eec504e31df2ec9670424a4e