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 7915A519DE2 for ; Thu, 17 Sep 2026 16:29:03 +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=1789662544; cv=none; b=QeaUUzILMN1Y7SFLFKN9701sQ8J/vR5v6oy0vtEcKNHdE0I9H8VdNQmNSO4Hw4iTGGeklPqREkdeYZoNj4o1D9WcweW0hAg+eZJijhufe+3fASKtVNeR2mktXq8tFz8oPqneHG2q29EvhcjQMcTG5DXzJoQYGquJwsX985m6wxk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662544; c=relaxed/simple; bh=ppGxblbr4OROsCl2f+u/h4xEOhlxXIPH2sLvryPoVAA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=goJ4nymxy9vfKVWEvHTON3NAB/poKSrVtqqodRBEVv2sbclAkM7VSQP33e3SKzM10O61C4B+ATu6oD+tzNadxjAldSNrr5vkMkrdmI9QsPYm9Dr4UOUdM0eSqpsVNItt8JgJde6JXssSf9hUmYqZpEpV51aTb0GaiWgVC6Z9Xes= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DZjHTbIP; 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="DZjHTbIP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEB301F00893; Thu, 17 Sep 2026 16:29:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662543; bh=PCGUFpM9PMBR2Jb8yU/nTxhfjuQHyKzhHuLTm0y/YmE=; h=From:To:Cc:Subject:Date:Reply-To; b=DZjHTbIPRpvvDD53nRoyfLVGRGl8PcoTrsfiefzDppFFRD8PBZS5GDobB22q2ZHeH KK6+D9qk3T6/6ZVDqj0SlqkT57fG5/3kFODSArDSnRNrTgVd9r9kwRgag0fsLIhTB0 wTfPdaUXthwi0E4ja32Sx6KbGQO4+cVQEXz4a01E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90389: md: scope memalloc_noio to allocation critical sections Date: Thu, 17 Sep 2026 17:13:39 +0100 Message-ID: <2026091712-CVE-2026-90389-8306@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=2996; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9PRe/u/8/MZ9mF5+Uhv5T9rmuCPl7sJUP+qGkK4QicY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBFb8uHU49zqLtLKmcfADvTP/I06L/Q6Ji2q/k+5Rb qm7zWZeRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkVgXDgkPumSlZW+bc6ba9 cKMw/+SKPU7SbQwLzmxojP5w8MHsovwZux09Te+XrWDmAgA= 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: md: scope memalloc_noio to allocation critical sections Storing a memalloc_noio_save() token in mddev->noio_flags lets one task save the token and another task restore it. With concurrent suspend sysfs writes, task A can enter PF_MEMALLOC_NOIO, return to userspace still in that scope, and later task B can restore A's saved token. Avoid tying the token lifetime to mddev. Keep mddev_suspend() and mddev_resume() only responsible for array suspension, and enter PF_MEMALLOC_NOIO only in the MD paths that allocate memory after the array has been suspended. Restore the token before resuming the array. A reproducer repeatedly writes suspend_lo and suspend_hi from concurrent workers and checks each worker's /proc/self/stat flags before and after the sysfs write. The Linux kernel CVE team has assigned CVE-2026-90389 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 78f57ef9d50a75326da73d352d7c27828495229a and fixed in 6.12.110 with commit 72ebfdf507ede7d7f2b7ca0a5634811a0e4bf045 Issue introduced in 5.8 with commit 78f57ef9d50a75326da73d352d7c27828495229a and fixed in 6.18.52 with commit 28fdea874f68cac6c36651b1fc7272fd2199c48d Issue introduced in 5.8 with commit 78f57ef9d50a75326da73d352d7c27828495229a and fixed in 7.2.6 with commit a58923756b0f8e71032070c23ae0b167e46731da Issue introduced in 5.8 with commit 78f57ef9d50a75326da73d352d7c27828495229a and fixed in 7.3-rc1 with commit bace2010dd7ac07bc980575afb135c406730a7fe 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-90389 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: drivers/md/md-bitmap.c drivers/md/md.c drivers/md/md.h drivers/md/raid5.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/72ebfdf507ede7d7f2b7ca0a5634811a0e4bf045 https://git.kernel.org/stable/c/28fdea874f68cac6c36651b1fc7272fd2199c48d https://git.kernel.org/stable/c/a58923756b0f8e71032070c23ae0b167e46731da https://git.kernel.org/stable/c/bace2010dd7ac07bc980575afb135c406730a7fe