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=1795154434; b=v8tZ5BrVqTrvatk8f3GSSigA/tIFUBpkCxiRQIbQcOmvBfgZF13Pn2jde6OIYVJ1i723 JuytmyzHBVJ5kGU/ImS0NmjhYHWxVTuHHmb2l6sNwIZcuDicl5ZSMHZ2+DTYlIrUA7T83 kGTbyBliVkvtxaUEwDPiWnQpz6kphZa8L9DYiwoXx+FUwj0MEn8/55VHQuM9akF6dhrcD XEekcIcPjOCWYF3OzNu0yj+URu/Q7AR5sXuh98xtL+LDa6XXrxrO7iRxij0KtCsPHMCHl yK4WFHfyGzY/jmxtkYSQTEBELqzhVX1DVHHMdGel/o+9MrnbRBA2mBTsuRfrRoewGtw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154434; 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=0sqQ0z8dthzG66pnfK9u4E7NTpKZkiB2OxrRjQKs4aM=; b=ASTKK573b5/MVysv0khEo70pDVz/VpKeuOgdSja5hwSNYKfYwQLuRKD1kxk/P/As7L89 QZGl4OoXHX54wMaCJ2GlBI1jGWnkoy9bUUmfaAInJiV861G5J5syX4vEL7uQiOJEFrk4A ogvibNOLFEQlK8MYPBLmS69PyxcgjdaME2mi79dhEI4iqCaNjtjprVLWXeNO0lFpeeHmy iVOICscHbwsC3KMyGlx97xfN74rZZxq9zn85zchSIK6EjIbXCOOaHXfKaOcSA5Azanti1 k/QAhaEqq9f843zKyc6HcshTBSIIxSE+iLF0wdI3Hls0kFYMccx78whpT2OKxMkdedw== 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=X0o34wX1; 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 8C038606A53B for ; Fri, 20 Nov 2026 06:00:34 +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=X0o34wX1 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBD021F000D1; Fri, 20 Nov 2026 06:00:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154434; bh=0sqQ0z8dthzG66pnfK9u4E7NTpKZkiB2OxrRjQKs4aM=; h=From:To:Cc:Subject:Date:Reply-To; b=X0o34wX14r4iIKAEirUtPIAEIu9It8++acbCJFYx87FYJrIaMz9Zgry8HsjCDmySN vyeMQmLqKwxxS0RV2qA2+CtnwyuHgqhi6sjWJMpA7ecgA03E5UnxpYkFRE7XTTMBoM hzKlceWoeDxoLMSUE7I74tLK9XZ6tmTnv66HEBQE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99742: mm/mempolicy: charge shared policy nodes Date: Fri, 20 Nov 2026 06:52:08 +0100 Message-ID: <2026112018-CVE-2026-99742-a6ab@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=3718; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bcfyafX55aVe7XlxUiAiS+o1lnRix56e0tdIi41Hh+w=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/789yCX4974F9Z6R3b5vH/QfecX+WTvU2i30a8KyIJ SUl6/uPjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjItB8MC2a4pdysM2ErLpv8 q+rNj5vJid9vSzEs6FzStz2/0N2l5MnxZvddd78mez9aDAA= 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/mempolicy: charge shared policy nodes Any local user can bypass memory.max with mbind() on a tmpfs file, and allocate unbounded kernel memory. mbind() sets a NUMA memory policy for a range of a mapping. If the mapping is of a shmem and friends, the kernel also stores the policy on the inode, in a tree with one entry per range of the file. Each mbind() on a single page of a mapping can add one shared policy node (struct sp_node) and one struct mempolicy to that tree. They outlive the mapping and stay around until the inode is destroyed. The tree is not bounded by the file size, so the file can be empty. Memory that user space can allocate must be charged to a memory cgroup. A slab cache does that for all of its objects if it is created with SLAB_ACCOUNT. numa_policy_init() creates the slab caches for both structs without SLAB_ACCOUNT, so they are not charged to any cgroup. Reproduced with mbind() on single pages of an empty tmpfs file, from a cgroup with memory.max=8M: the global OOM killer killed tasks owned by root, and the machine panicked. Fix this by creating both caches with SLAB_ACCOUNT. This change implies that mbind() can now fail when running into memcg limits. Further, the policy_cache also serves task and VMA policies, so they are similarly accounted now. Note that per-file limits are not really helpful, as the user could simply use many files; having limits per user is tricky as well. Fix generated by an LLM and submitted by Chris Mason in private. [ david: smaller description tweaks ] The Linux kernel CVE team has assigned CVE-2026-99742 to this issue. Affected and fixed versions =========================== Issue introduced in 4.5 with commit 5d097056c9a017a3b720849efb5432f37acabbac and fixed in 6.12.118 with commit d500c37437cce47e492c561757ece2596e21446a Issue introduced in 4.5 with commit 5d097056c9a017a3b720849efb5432f37acabbac and fixed in 6.18.64 with commit 40e340bab4d07958b2077c16650c3da5c76d5820 Issue introduced in 4.5 with commit 5d097056c9a017a3b720849efb5432f37acabbac and fixed in 7.3.5 with commit 0109fa404651e20493ca35a9a7d4f87861148064 Issue introduced in 4.5 with commit 5d097056c9a017a3b720849efb5432f37acabbac and fixed in 7.4-rc2 with commit 68b2aa37afa390f08de13bc0bac61a9ded3318bc 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-99742 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/mempolicy.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/d500c37437cce47e492c561757ece2596e21446a https://git.kernel.org/stable/c/40e340bab4d07958b2077c16650c3da5c76d5820 https://git.kernel.org/stable/c/0109fa404651e20493ca35a9a7d4f87861148064 https://git.kernel.org/stable/c/68b2aa37afa390f08de13bc0bac61a9ded3318bc