Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154523; b=xCmVzvP2A9tLPgLKXDLDaA77u2fUv0nAf6vZdR031xamqNdR+2VAH9yHAZjlcPEyr+gk tI38RMpffvYkTJ5aUpYjcxZi5ZUjBOdz9TrxKFc67y39KNgfMyyEYv43tPABDXTWeQm9b J698Zyy7VYO/nROzKlZ2U6xHh6wS+sTZtCIySy/Is6mEGTeDJEwCDrCQ7zrPC4LQHc617 cXZbRj/8NIjKUYoytfypJjummAd/olVfdMKOSHUL18ghd/sNyswaWJ+WoHbsDxE6KTk08 xkgtETGDqMemNyVfseQ7jH4NHtiSoE1RJEQHUkXoa6M8hfNd8kjog0ry0WvqC0pveCg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154523; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=uzS0//Vg580yMfAvB5tO/BrbT6vgind7VPxV1AY78bo=; b=Mq8p723yH7niHPvDO2V8838WimfWZrhqPnGboZJRJLWPDWoFlGhQS/MYarg6XJRPTEg0 +kRr/zCkjvjOH4DjncoZz6TPAy/q/Yqj2sV2WRWyWIaMOH96cfKiEY2fY2yTXrjC9YU4F 0LR/9GLj4vbzHME2YRkNCZmRpMRPGAD9ZLEuL/luCTzKTH3jl0qq1wfxQyI8ogsJ1pZFC hP6aoQEsoJA2CzchgE1SCjVMu7LoPvgFGa8EtlSUup0x61yaITXum660lu18HszG1lHI5 Yvwanymw0DNgNEhiExtH4A/e9P+q8ripQX7XWmGbi184RtGFDwSJKOsW36enR3LRQkw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Y48ITOkl; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CCF3E606A522 for ; Fri, 20 Nov 2026 06:02:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Y48ITOkl Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F6231F000CF; Fri, 20 Nov 2026 06:02:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154523; bh=uzS0//Vg580yMfAvB5tO/BrbT6vgind7VPxV1AY78bo=; h=From:To:Cc:Subject:Date:Reply-To; b=Y48ITOklGbUEmCF2sjKLXGAe9pa3KewRAIqQm8NScOdzVWMSHg9W8OCKDwFnZBw3N TjtPU0A/dKO0nab6fj9MzfNT2FKcI66OGBgHpBfUOwc6aS9uC5nltSscr8FJ8ZEVni GnLPSkBeluwy1dCDGa82JFHoAJXy+jtFGo9J7Rfw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99756: btrfs: prevent deleting the wrong subvolume by ID Date: Fri, 20 Nov 2026 06:52:22 +0100 Message-ID: <2026112023-CVE-2026-99756-28b6@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2647; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=y0GHHr1MvezsSkAn+sQ4rBLijL2VUhVp3NrZ+67ZRB8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/789XvGoVy1TVY3Td7eFn9qqVoRwzGlmCZn1Y73bNq bdAzn55RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExE6AXD/GjLaY53/Z3NL5e6 znTN0wwX7BG4zzBXpPnp/QcB7yuWzfu+6y3zG+f1kS/fAAA= 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: prevent deleting the wrong subvolume by ID When deleting a subvolume by ID, btrfs_ioctl_snap_destroy() first resolves the requested ID to a name, then looks up that name again under the parent directory lock. A concurrent rename can change which subvolume is associated with the name between these operations. Since the deletion path does not verify the ID of the resolved subvolume, it can delete a different subvolume while leaving the requested one intact. This was reproduced by repeatedly exchanging the names of two subvolumes using renameat2(RENAME_EXCHANGE) while deleting one of them by ID. The wrong subvolume was deleted in 9 out of 14 independent tests. Fix this by checking that the resolved subvolume ID matches the requested ID while holding the parent directory lock. Return -EAGAIN on a mismatch so that userspace can retry the operation instead of being told that the requested subvolume does not exist. The Linux kernel CVE team has assigned CVE-2026-99756 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit 949964c928430a42e0d4f514d888a58a201b6fcb and fixed in 7.3.5 with commit db399899dbac590d7d124b6896bd113916e7ab09 Issue introduced in 5.7 with commit 949964c928430a42e0d4f514d888a58a201b6fcb and fixed in 7.4-rc2 with commit 1960146913b31b288ed2cd607d103ee3b41681d4 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-99756 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/ioctl.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/db399899dbac590d7d124b6896bd113916e7ab09 https://git.kernel.org/stable/c/1960146913b31b288ed2cd607d103ee3b41681d4