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 2DDFE4A3F17 for ; Thu, 24 Sep 2026 16:05:59 +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=1790265961; cv=none; b=PhcC52tOf6DfBxma6uwgmZI/ECsCe7AwGc9bofFf7y3yWxi6zJ+4yx8FhifnuubggNjdYgGUaSBOHwWFCIWvlIgLdKj61oO4fPpNb9hR+njhZKp8PY1RyjdlKT3uU/GNJ4brJcuO5yGGmmDbm0JhP/BjKlm2iUO3XY80q/1Ho3o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790265961; c=relaxed/simple; bh=/9UWlxwznTkAkwEsoO5UhoJl/UUJjVPRXoPIffTlYrI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PtN1yNyispH6Yuov9SrvkCIyTrwiCr2m3tnAmzKO1XgBKuA1m9KGPkjKaZT1xwute+yqZKEQzwKR0qik+HJ9a2oALbslFiWT8wDBbf14ufq9dg04/UMP+lE071pQDIJI2FfswftRDgYL1QtvlF1akCNhBvqXxCoua9aUakWJnfM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lBmSA5c6; 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="lBmSA5c6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF7391F0089C; Thu, 24 Sep 2026 16:05:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790265959; bh=Xdhn4DCY2JBplWHQyoKAOLsuvge/39LR0SKw6A/YK7o=; h=From:To:Cc:Subject:Date:Reply-To; b=lBmSA5c6o2hfB08QbgeQoJE4d9YYJbU/EThRobuwukIOX0pZUqxtHPyDqPTaiMdFs GO49rH8Ew5Kx2D6nebkF4U5SGHgHEM7zV5SXB4Tu5Oy476xRh+j22a0jwnN4jxLjp+ vniKFsOFrlrZHtp2wz0lJzKUkI9eFV8HbrCgGrqM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93798: btrfs: fix reloc root cleanup in merge_reloc_roots() Date: Thu, 24 Sep 2026 18:02:34 +0200 Message-ID: <2026092418-CVE-2026-93798-f251@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=2307; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=417mIySVi7dstRuIv4nKIaw+32bOdrE8fHMP4NNpZrY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlbPbu2y02xd0tnsv6iZTHR9OLJ64b/Wotqtios+bDq3 +Zq3T3+HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRhcsYFvR+vho5RWNVtMGP 4kc7Cz7c9OhJTGSYK7+n1sb5YR7nESG51Wb7vSyaNUMnAQA= 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: fix reloc root cleanup in merge_reloc_roots() If the root we got has zero root refs in its root item, we are resetting the root's ->reloc_root without using barriers like we do everywhere else. Sashiko complained about this while reviewing another patch, and it's correct (see the Link tag below). Also, we should not clear BTRFS_ROOT_DEAD_RELOC_TREE from the root unless the root points to the reloc root we have. Fix this by using clear_reloc_root(), which issues the memory barrier after setting the root's ->reloc_root to NULL and before clearing the bit BTRFS_ROOT_DEAD_RELOC_TREE from the root. The Linux kernel CVE team has assigned CVE-2026-93798 to this issue. Affected and fixed versions =========================== Fixed in 6.12.111 with commit ab48583aa9948205ff9a6470e23dbff74c565e24 Fixed in 6.18.53 with commit 63d6b1f04cd91c825329712aa526215ffa5d11ca Fixed in 7.2 with commit b78fe9563e2d5ae47805f1e5dc722c91fd30e1f8 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-93798 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/relocation.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/ab48583aa9948205ff9a6470e23dbff74c565e24 https://git.kernel.org/stable/c/63d6b1f04cd91c825329712aa526215ffa5d11ca https://git.kernel.org/stable/c/b78fe9563e2d5ae47805f1e5dc722c91fd30e1f8