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=1795154202; b=BZ6OanJUIWPYScJXSz+0lM1taC0eDX0mgNOF6FX5roGiqZztCK2iyKR0SY/9a71t5qDA m10cDNgGc9r/YI+Au95tv0dA5faqm3ypOsih2fuwtREkmL3MHDL02SwPZnUn6YfsfgPAU C1QfiLo11zDF8NRvhWvb3p3O/rzoejbhwOoZ6n4y6m5se8V18NNRf97s8nUi8j4hTT8xv W9QjKv08nFlkPO3bkBvaX6nYirtgRhW1ypGQipgu/FLzyOiIyoYz9Ru3M9EP+pJfZnBQ7 l57k9bKSEWcskELtK3bLvXBfdy6SHmjmSmHwhbiSxlkBcbXWY/ZwanwIDveJj/Dnj/g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154202; 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=n+mvxVYWTZ77uBN7v11LDNaul/KwcBhwJm01lBL00e0=; b=L67Q8lsHhIuumqbSSfu3K950XLMS21pS7rB9s4ns/I/ntxbGF7hoIQ8NsMXmz6ydmUsr 1IaOmVT0/qy0DSWcZsB/6YIpUWgI2edeTubBUsIX+iVPMIu8/RD5XkverW3Jm6N5q1+uJ pAci5Wy2acrYRE2umLYOuzqkn5Mz7Pc+yxYTAT4FangEGQ2pyYf+UQMUc0jyHfFxYjKMY 27xSv4aTvnFLDFUg0ZgVET/q/2TBFzObJB8q9mr3Sya6jCPaCHvFkqvJWVzffHcfhzt/9 +uk0kyStuBrVuystW04F2zqQCHjOrJPSNMLdI4bHXHzdTXwwvSJ/yNyRbDgSdsnrQQg== 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=GAgsdDpP; 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 E9774606A333 for ; Fri, 20 Nov 2026 05:56:41 +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=GAgsdDpP Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4647F1F000C6; Fri, 20 Nov 2026 05:56:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154201; bh=n+mvxVYWTZ77uBN7v11LDNaul/KwcBhwJm01lBL00e0=; h=From:To:Cc:Subject:Date:Reply-To; b=GAgsdDpPy33J4ch8JisbE0CfbtwOmwm+VVOt+Shz5GcRR1fOyIPZn/EYZo+PZ95tN CcATlKGRuNYDZBRZc/NRzLtqC1+5nHJYJwqwlPlimKPYjpKksy0caJqx8zybT5Ww50 zAeWNgL2c0Shpl7tGnFfdt9f/vyqj4yNrgVH+J8s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99661: mm/gup: check for overflow when converting nr_pages to bytes in GUP-fast Date: Fri, 20 Nov 2026 06:50:47 +0100 Message-ID: <2026112047-CVE-2026-99661-9d59@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=2664; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pK/1UoKDsZwo6P6q6b/4lIV5ztdycfJQmrsRD7sWVZ8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/71fnX2zj9DFXq89y33/yjUHdtI5Hcx/vcHip2zGh8 PqW7iatjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgIzzqG+XXK6zLkLum/mGv1 ukcmwGHTlcTOuQwL+l10ed8WdSlNYYo7lxRuU77wwbdjAA== 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: check for overflow when converting nr_pages to bytes in GUP-fast The overflow check in gup_fast_fallback() only covers the addition to start. The preceding nr_pages << PAGE_SHIFT can already have truncated the length on 32bit. Users such as RapidIO's rio_dma_transfer() can derive such page counts from a 64-bit userspace length. Let's just check_shl_overflow() to reject any such overflow with -EOVERFLOW early. The Linux kernel CVE team has assigned CVE-2026-99661 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit c28b1fc70390df32e29991eedd52bd86e7aba080 and fixed in 6.12.118 with commit 89eed2a8f389d09d75d90633d879e0f5825f9376 Issue introduced in 5.11 with commit c28b1fc70390df32e29991eedd52bd86e7aba080 and fixed in 6.18.64 with commit 666516c935a353eda4dd43fbbd063d39b7f743bb Issue introduced in 5.11 with commit c28b1fc70390df32e29991eedd52bd86e7aba080 and fixed in 7.3.5 with commit 063cd7c398fb837d811a72e19a6f71df9f104d9b Issue introduced in 5.11 with commit c28b1fc70390df32e29991eedd52bd86e7aba080 and fixed in 7.4-rc2 with commit 21a3888d3d2f87b7f15ccea1f0befd57346fe899 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-99661 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/89eed2a8f389d09d75d90633d879e0f5825f9376 https://git.kernel.org/stable/c/666516c935a353eda4dd43fbbd063d39b7f743bb https://git.kernel.org/stable/c/063cd7c398fb837d811a72e19a6f71df9f104d9b https://git.kernel.org/stable/c/21a3888d3d2f87b7f15ccea1f0befd57346fe899