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=1795154205; b=FIMO+jQsad9ZaqOjJvqYghsFqMzulCXUIM5qjHqWKOnbiXB6+w92gYHHL4QueF1ERnRp HjQ9Z4/FvjHxJ+it0F0zZ+BqLj7HcKuKnGAQr31WNo7AE1eD6FtbKJy2Y3MbvcqzUl0wU DH9VQRN/jJr8UvkwG5dywxfkBqI01K3I9gyOMM5mt1AjKcvV3R0GKEVZ2+ecSgBS+yvvt hjEtLMvVmzT28sT4Cja7iV39JsC4ScQVAYkI7Dnir5/XC4/RpTl2RbTCygWzJs8t/KaA8 hGGSGWOfoQgXt3d6AushhrxTtogVLhSclFWUwkdlu6YpakDobW4S1pKdSopVTmWjCHA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154205; 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=8VJorN3BTJ5fwk/iWxxG0ULLkDg9qsjVfEpyTHDYnoY=; b=AVCHi9jnd99EGtMFsUFKDSb+tzXitUhDtavIljkIjGbEJf4I635Bh/22097veI8JbAib ZX2rH3puM5JPD3SdJgdyU59gVR95esRg6VELSHlbcCiWIRur+m4qyCCvBaeLy/UlM7yVL FM9OzJ/YULxJigMeuP+YwtFaJ+aBS6TVD8Ow+Gc85/N7Nle31nZuNrueZc2DDJA6LyFXl +1TumqIhqqM+/a4xVikhtkvNuXT5o4APsFfLrIePHAPGclmXW+Hkpg6Lk7cST0WTcyYDQ 9ZOwdugvNjnw/o9RGmYLxeF8abZutljSt4CXRI6MjKKWhDLlTcdlXTMQfgtWk6jqABA== 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=uoiK1f83; 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 E6F05606A326 for ; Fri, 20 Nov 2026 05:56:44 +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=uoiK1f83 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 297FF1F000C6; Fri, 20 Nov 2026 05:56:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154204; bh=8VJorN3BTJ5fwk/iWxxG0ULLkDg9qsjVfEpyTHDYnoY=; h=From:To:Cc:Subject:Date:Reply-To; b=uoiK1f83EvOQWxM9D4V7jOozcOINNSkmBhh5b6j97uSXBgT+9LYqXDDbEZK6pHbcD pB+hdTqJH0ueLCgX36agMQlytmSqdgdukmkZQ64YAm6/b0jG7m9/GrsO//BJu09E/l ZUF9xFNINqpDh0dpxNTN4KmvO65SHQWUyNttcBUg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99662: mm/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast Date: Fri, 20 Nov 2026 06:50:48 +0100 Message-ID: <2026112048-CVE-2026-99662-a9b9@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=2772; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gHRzhMzgbILMvV6303mA8BkGJ6Fs3qBrcoJ9JWWLWik=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/79e4ZYrX+VYp8Isev/Ki4dikM5EdQRM1r6/RORy56 Pyn0C8/OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiRjMYFnTMOTSrbsLdCHOJ 5aEsf1Tn3FkqEM4wVyjdUnrdoxslGi+lv5/huK5jeOdKEgA= 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/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast With nr_pages == 0, GUP-fast still enters its page table walk and can write past the caller's page array. The old end <= start check caught empty ranges, but was replaced with an overflow check. Users such as OrangeFS can pass a zero page count derived from a userspace-supplied length. So let's return zero for nr_pages == 0 before starting the walk, just like GUP-slow. Fix generated by an LLM and sent by Chris Mason in private. [ david: simplify description ] The Linux kernel CVE team has assigned CVE-2026-99662 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit c28b1fc70390df32e29991eedd52bd86e7aba080 and fixed in 6.12.118 with commit 11536b9b6bed3cc4d684a70d468493775e7d1d48 Issue introduced in 5.11 with commit c28b1fc70390df32e29991eedd52bd86e7aba080 and fixed in 6.18.64 with commit 0794c5809fa6322e8b43b70601700fd6c48e69ea Issue introduced in 5.11 with commit c28b1fc70390df32e29991eedd52bd86e7aba080 and fixed in 7.3.5 with commit 5697a3b58722b15fcb06fb30368ce9f46458a95a Issue introduced in 5.11 with commit c28b1fc70390df32e29991eedd52bd86e7aba080 and fixed in 7.4-rc2 with commit 1dfe4b276c23189394afb42d114ee8a54cc3aff2 Issue introduced in 5.10.4 with commit bcb0f647c1fae9496e6ce499618a8da003c56088 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-99662 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/gup.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/11536b9b6bed3cc4d684a70d468493775e7d1d48 https://git.kernel.org/stable/c/0794c5809fa6322e8b43b70601700fd6c48e69ea https://git.kernel.org/stable/c/5697a3b58722b15fcb06fb30368ce9f46458a95a https://git.kernel.org/stable/c/1dfe4b276c23189394afb42d114ee8a54cc3aff2