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 4515B2EC0B5 for ; Wed, 18 Mar 2026 17:41:26 +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=1773855687; cv=none; b=r99/elQ5A8uxCcRLfXGi8JW/uWK0waCtxaBaxG3CQYQ7pq0BZfYN9QDXTf3pz43xqk+N5ly/vth6dh+itqG5tnt6FLDRAF2eckq/ELLmJmfQDY3zcxEL328Y/wEsLFE2OKPtJEjUr5V9oUPLArqZkd9UVaOE18JqY64o3nDisGg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773855687; c=relaxed/simple; bh=FDSkAoxC0u4BLHfD4z+vrL+JjdP44IPi+ujJr5L0BHk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Qc117n2OnWeUXx+QsrlSBFDE86HwWgtL9mbbKdEhQpHcLZ0tvKBDpPP8FpuaIAcVA617r5ZUC2YUhz5Jpn+NWJsjc3QMaTUQVMaQBuvBvaKDtoXAlgEhqAmQi902EX41lk38MFhryZhQqOzEmjRO8g5PsOd6oQh5us4pw3mvugw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VG/EUlfJ; 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="VG/EUlfJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED332C19421; Wed, 18 Mar 2026 17:41:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1773855686; bh=FDSkAoxC0u4BLHfD4z+vrL+JjdP44IPi+ujJr5L0BHk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=VG/EUlfJ7gA162nNnixIaCGujvZTv64aJfk2AKgZK/sbIcfKkZTbyf2hryf4pyqox g+n6HoMUXYKxCOatGYbdCqCYXoNlGpvRjj5MokciP5A7/Jrx/6+SHMVj65CvHnd+UT xeZpa1k1jxz29aI+/L7N6vxOOSqPsPJbOUDvuZZo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71269: btrfs: do not free data reservation in fallback from inline due to -ENOSPC Date: Wed, 18 Mar 2026 18:41:15 +0100 Message-ID: <2026031816-CVE-2025-71269-b47d@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=1993; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nSaHKEgB8n7qTAEro8ZGQMliMWT3uZ7WyuiiIFeybIA=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm7Hu/Zsixw6Y/Es2+vPGot8XY6wR/1N4c9e8bNbNN3n YsZXNuNO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiZhoMCxasPv06dGPZ9VPf yk30XtYzNT1VYWWYp/lXPb38TSSPYNCtntKzAuq3BV7sAQA= 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: do not free data reservation in fallback from inline due to -ENOSPC If we fail to create an inline extent due to -ENOSPC, we will attempt to go through the normal COW path, reserve an extent, create an ordered extent, etc. However we were always freeing the reserved qgroup data, which is wrong since we will use data. Fix this by freeing the reserved qgroup data in __cow_file_range_inline() only if we are not doing the fallback (ret is <= 0). The Linux kernel CVE team has assigned CVE-2025-71269 to this issue. Affected and fixed versions =========================== Fixed in 6.18.10 with commit 6de3a371a8b9fd095198b1aa68c22cc10a4c6961 Fixed in 6.19 with commit f8da41de0bff9eb1d774a7253da0c9f637c4470a 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-2025-71269 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/inode.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/6de3a371a8b9fd095198b1aa68c22cc10a4c6961 https://git.kernel.org/stable/c/f8da41de0bff9eb1d774a7253da0c9f637c4470a