Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 150A0386C2A for ; Fri, 3 Apr 2026 15:24:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775229893; cv=none; b=YEWq/+MV6Mv3CjVVxKiJzYkgATFLc1it1rvVfRTOaJgHNf9uU1GJN4arniPMEQnTj2NRuacaHARnUez3YUeC/JyK08S0J8OnuuklD1UGzhRjgTZ1femp7jpnk7rLDE3wt0zn7YGAmckQ+aVfL5nhqJLptJGJixR81nFsC1n5wng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775229893; c=relaxed/simple; bh=aFDLH38o6ojo1d8eOHnkjhfeFK10To4cETTl5ifr3Fk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iIwiFm32yfCeiJvdrPX0KonzkxBjWp/cwEpvxlVJfnGB1eBAjAwKYKUlz9eSYzIzBTj8j3PifhOUjV6fMWoQGhyDa+xVxqspEOXkVsiPZbKHKA1aBl61+u3FgmUQEB1gp0nuPxZ/t5KjXl5V936bYDFtQIhej5QRfxWLP8stbfg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aQrNCkvu; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="aQrNCkvu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34800C4CEF7; Fri, 3 Apr 2026 15:24:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775229892; bh=aFDLH38o6ojo1d8eOHnkjhfeFK10To4cETTl5ifr3Fk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=aQrNCkvuyGBOQyaWL+6TMMhwqh7mbNBJIIweKqLa/x7WYkghKJBC6vzm/RtWXXFly WQAh+pvTa2xo6d0DGxcSUpusiJ9tDoO/zSNYb6ofj+lemtA4P2i1BMwVHShszOTqqO acKZUPsjSqVb9mkSL/rfOry2fLUYPTS0MNON4GZo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23434: mtd: rawnand: serialize lock/unlock against other NAND operations Date: Fri, 3 Apr 2026 17:18:15 +0200 Message-ID: <2026040311-CVE-2026-23434-f0f0@gregkh> X-Mailer: git-send-email 2.53.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=3191; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=C+4NlcYfWbzA/rEpLxunI8cWIfv+/0jiCutRpqdHmKw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnnb5ksC/7tf/Xo0r7Ko5d3KjrOSs+70RUd9zD7a8HLU /FNsvf/dMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEquczzLNJqK697HOaWWPN SxebhnT2XbW5dQwL5kSZWWkaNHaLL/Cc4Gv4/tqEkskMAA== 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: mtd: rawnand: serialize lock/unlock against other NAND operations nand_lock() and nand_unlock() call into chip->ops.lock_area/unlock_area without holding the NAND device lock. On controllers that implement SET_FEATURES via multiple low-level PIO commands, these can race with concurrent UBI/UBIFS background erase/write operations that hold the device lock, resulting in cmd_pending conflicts on the NAND controller. Add nand_get_device()/nand_release_device() around the lock/unlock operations to serialize them against all other NAND controller access. The Linux kernel CVE team has assigned CVE-2026-23434 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit 92270086b7e5ada7ab381c06cc3da2e95ed17088 and fixed in 6.1.167 with commit ce5229e78078e437704157eb542f43a6f83b429b Issue introduced in 5.7 with commit 92270086b7e5ada7ab381c06cc3da2e95ed17088 and fixed in 6.6.130 with commit a80291e577b44593a724d6cd64c14337c78f194d Issue introduced in 5.7 with commit 92270086b7e5ada7ab381c06cc3da2e95ed17088 and fixed in 6.12.78 with commit f71ce0ae5aefe39dd5b2f996c0e08550d2153ad2 Issue introduced in 5.7 with commit 92270086b7e5ada7ab381c06cc3da2e95ed17088 and fixed in 6.18.20 with commit 5fd5c078af23cb353507aa522e09d557d7eaef04 Issue introduced in 5.7 with commit 92270086b7e5ada7ab381c06cc3da2e95ed17088 and fixed in 6.19.10 with commit f25446e2c28939753d3b62d34dfda49952b2557d Issue introduced in 5.7 with commit 92270086b7e5ada7ab381c06cc3da2e95ed17088 and fixed in 7.0-rc5 with commit bab2bc6e850a697a23b9e5f0e21bb8c187615e95 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-23434 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/mtd/nand/raw/nand_base.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/ce5229e78078e437704157eb542f43a6f83b429b https://git.kernel.org/stable/c/a80291e577b44593a724d6cd64c14337c78f194d https://git.kernel.org/stable/c/f71ce0ae5aefe39dd5b2f996c0e08550d2153ad2 https://git.kernel.org/stable/c/5fd5c078af23cb353507aa522e09d557d7eaef04 https://git.kernel.org/stable/c/f25446e2c28939753d3b62d34dfda49952b2557d https://git.kernel.org/stable/c/bab2bc6e850a697a23b9e5f0e21bb8c187615e95