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 D3DF6497B81 for ; Fri, 25 Sep 2026 10:37:01 +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=1790332623; cv=none; b=VczSh4P3DZJtC/mX9gwZHJLd+dSabvBYkwl4FnapszUd9o5VnzA9NwfRoas/f83pcKEepu7tX8pRZ3g1XTCNPlyxPE3EzDkfAqfrwuuH2m0EqDuB2yKA2+Fo/Dsyc0w7mtq8Q42m6miBLwlOuNZwOqjFGMzPKpS75ZdFLlcbLU8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332623; c=relaxed/simple; bh=/btWEXZqvOPZ4C+BhenoklG8I+99rBRC8Ix5GTBkPME=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=B8xeo6TZ2bsgOZ/GyxIIkepXaiABKufxgY7MzU5Q7UCKhXIpDSmhxWRvH7SWj7oC/hHPvdq6hW6fZYvybt4HDokIMCq5Btp0u+VUKmnGI4VWw/AZ630BkpVHeBoOjI6ZcYVZfbTb31wlbYNRMrpWrC73dsB7Yrndx2AXPO77WEY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FLln++fE; 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="FLln++fE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31FC31F000FF; Fri, 25 Sep 2026 10:37:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332621; bh=zj5xp8r0F4AEkj77Rwigkd3etggemL2rahx+eOSgOi8=; h=From:To:Cc:Subject:Date:Reply-To; b=FLln++fE8YesO0h/kt5XkH5iS3vJTN7rIdYjqE9oKSV98G/GsAdbLDlz8TADb6C7I akQKTdAfHaWPq768yweYQo4IvfMpIS7CbzU8Qyf5NQwj210CHo3bYvA9Gbz/iNabP3 54mVR3juj03/Y10auuGFFboK11uMiNk1icH1ZB78= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98090: btrfs: restore active device pointers after failed sprout Date: Fri, 25 Sep 2026 12:26:32 +0200 Message-ID: <2026092539-CVE-2026-98090-8154@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=2791; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZVQX8W88tbd6zbk7QEp/ELEA7P+j0tsvD5QPMxdXHJg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvAtaHyf6WkZPKeFe+uD2w/yJgclTL7TmVJ7sPuRok 3zY12JtRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEs4BhfuSu5rvMMgYqx/+1 fy7PsP5v5Bo7gWE268T+NeFnHizyvpi4f0drd5SFvHABAA== 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: btrfs: restore active device pointers after failed sprout btrfs_init_new_device() switches latest_dev and possibly s_bdev from the seed device to the new sprout device before creating the first writable chunks. If chunk creation or the subsequent sprout setup fails, the error path releases the new device without switching those pointers back. btrfs_show_devname() can then dereference the freed latest_dev and crash. Restore the active device pointers to the latest seed device before removing and releasing the failed sprout device. The Linux kernel CVE team has assigned CVE-2026-98090 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit b7cb29e666fe79dda5dbe5f57fb7c92413bf161c and fixed in 6.12.111 with commit 2ee5c4bc11007c51f63f0c1be5d3f07f2b404ff7 Issue introduced in 5.16 with commit b7cb29e666fe79dda5dbe5f57fb7c92413bf161c and fixed in 6.18.53 with commit e127ac29a52134d0f4cba39d38e4b375deb3d1aa Issue introduced in 5.16 with commit b7cb29e666fe79dda5dbe5f57fb7c92413bf161c and fixed in 7.2.7 with commit b79b4b29003690acfade8241998fc0104ef9c84c Issue introduced in 5.16 with commit b7cb29e666fe79dda5dbe5f57fb7c92413bf161c and fixed in 7.3-rc2 with commit e0b54613aabeb8e9da597f23b90c6a03d0981986 Issue introduced in 5.15.11 with commit a6e7e218a4d6488d56727a7d9aee1b7e78c0c485 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-98090 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: fs/btrfs/volumes.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/2ee5c4bc11007c51f63f0c1be5d3f07f2b404ff7 https://git.kernel.org/stable/c/e127ac29a52134d0f4cba39d38e4b375deb3d1aa https://git.kernel.org/stable/c/b79b4b29003690acfade8241998fc0104ef9c84c https://git.kernel.org/stable/c/e0b54613aabeb8e9da597f23b90c6a03d0981986