Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE0034EBADB for ; Wed, 16 Sep 2026 10:42:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555391; cv=none; b=Bl/KAfXr61f5xlVldRWNaQJyxEN7saRGFmvBmQh6iA7uMWacL08P7XgIXZyoV0m/eEIXq6heke6F6GxYBtzRrGIchLNUwwHrDCrQlC0K4fs8bofpKnTuKxquRk1uaE5c1JA9tyTwVxgtrwYCVmyYPtu653wrLnVUFs/I799ezOg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555391; c=relaxed/simple; bh=C39RBlOiBdy1y8LZfjy9a1Zg1rRGnMfEl3ReIpy7Qrk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tJKMRKrB5L7pBGI35N/JMpaE4bJWWw8FM8PHCDqNlCSS+lhp9go2M+u2tKv9IQziu79+ctCJskqIlz3/M1L2tNeZSXU418zT8mSH5qYP212xrGTQSKodEJafQf/BXigD/hMLA5te1Pm7vq5BX3BNGabITwzReO3HGeNDh/9o+i0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=w5UsceIU; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="w5UsceIU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA0001F00898; Wed, 16 Sep 2026 10:42:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789555341; bh=B+q8XooW/byVlXht/d2/gJ+/4t1k2R2/PwTPAppVpo0=; h=From:To:Cc:Subject:Date:Reply-To; b=w5UsceIUSDT8pYFtauykDsIYEMoL0AHRbt1upu5qK9NIpxBo4jkmVhFJWCKjYn+Lo ODfraT0HXLnRYIOi/s7fRmMgoJ1oaLBDh7dKYisv+IPJgdirXvMZIjwR4LAfs5B0kx z1+SDB9NuSPrFFV2YI5v5Yaca2R4Pwt9mYi2lRBA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89986: mm/mempolicy: fix sleeping allocation in alloc_pages_bulk_weighted_interleave() Date: Wed, 16 Sep 2026 11:31:56 +0100 Message-ID: <2026091656-CVE-2026-89986-a2a5@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3203; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cTw4+9qYwiRWxT30bRpVqhlZNwCWZPk0n7r5MOSkIaw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8pdo/Sv5zNLYlOPms0mcf6mi9iFWh+Apqc56Qgf5/ 5csO72qI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYS78ywYFIi67TfbpnnI057 xeucCHtUJ8j7g2GeXef1H08P3UnOb+vU4jx2qU9sSUMdAA== 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: fix sleeping allocation in alloc_pages_bulk_weighted_interleave() syzbot reported a sleeping function called from invalid context splat in bucket_table_alloc(). When rhashtable_insert_slow() rehashes the table under rcu_read_lock(), it calls bucket_table_alloc(..., GFP_ATOMIC | __GFP_NOWARN). If the bucket table allocation uses vmalloc, __vmalloc_node_range_noprof() invokes vm_area_alloc_pages() -> alloc_pages_bulk_mempolicy_noprof() with the passed GFP_ATOMIC flags. If the current task has an MPOL_WEIGHTED_INTERLEAVE mempolicy, alloc_pages_bulk_weighted_interleave() is called and currently hardcodes GFP_KERNEL when allocating the temporary weights array, triggering a might_alloc() splat in atomic/RCU contexts. Pass the gfp flags (masked with GFP_RECLAIM_MASK to strip page-allocator zone modifiers like __GFP_HIGHMEM) received by alloc_pages_bulk_weighted_interleave() to kmalloc() instead of hardcoding GFP_KERNEL. Since the weights buffer is immediately initialized in full, kmalloc() is sufficient. The Linux kernel CVE team has assigned CVE-2026-89986 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit fa3bea4e1f8202d787709b7e3654eb0a99aed758 and fixed in 6.12.110 with commit bcb3d0c867ee40dc48e9c085bf328fbc679b6656 Issue introduced in 6.9 with commit fa3bea4e1f8202d787709b7e3654eb0a99aed758 and fixed in 6.18.51 with commit 0ceda28f371df9e0bbdaa29214f71fe8298f23d8 Issue introduced in 6.9 with commit fa3bea4e1f8202d787709b7e3654eb0a99aed758 and fixed in 7.2.5 with commit 2943f1f4b7f2816177060eb9f551f2e6d8b629ba Issue introduced in 6.9 with commit fa3bea4e1f8202d787709b7e3654eb0a99aed758 and fixed in 7.3-rc2 with commit 540e583b66d6402bf556fde5e53c817a54c1afe5 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-89986 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/bcb3d0c867ee40dc48e9c085bf328fbc679b6656 https://git.kernel.org/stable/c/0ceda28f371df9e0bbdaa29214f71fe8298f23d8 https://git.kernel.org/stable/c/2943f1f4b7f2816177060eb9f551f2e6d8b629ba https://git.kernel.org/stable/c/540e583b66d6402bf556fde5e53c817a54c1afe5