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 9E6DF496D4F for ; Fri, 25 Sep 2026 10:36:15 +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=1790332576; cv=none; b=G2XC9/uhQmtcBR24IihGdKCKCsZynlemWuf2cDPNke8DAPDfADbfjQwbzHDwEMtu9AkR02N4zAIe1tb/IzqEPfc2wKiBC/mv8A90UsXXfHcHWMo54ZxGKWlJM2fj5vf+AwaKo2H+qZauF7wXdk3V4KWISrwVXWWEQns58NnH71I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332576; c=relaxed/simple; bh=9RCMFqXfO+j7GUk9OpaEVP8fW+169V5YOYkakc5jmrs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KCfjoC13KrgJhqCV2/AJfpen1eBX/0i+ItAxU8tnIhwk0VpUhxMABpHbFRHZC6ss1SSc3nNqgAa2jyCUV8/Ahcm8p2ago5E/C4sMyEb7R0BbZFIe2dxLvq4Vnegawisg6wxi0QFzV9Q6Cuak8NmEg8PPk3O7fqsCdLtv9tb7spc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OitYtwBG; 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="OitYtwBG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFCCA1F000FF; Fri, 25 Sep 2026 10:36:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332575; bh=l+ceJLPn8R3zqJtDSL9duxcCKpvr3wcJ0/hvevcO0RI=; h=From:To:Cc:Subject:Date:Reply-To; b=OitYtwBGc8LZZWepBWyT/9rn0INlUVAwQJ63KbRmxuS8lcbKHns4w/1UksDWUDCdT /V1F5pUSSsdeBMyuw90NdUdhRBS0B2DZS12syZMtD5bFCBxajUYloCWJhJFFat35XR saY6hv/rtkgiUdojlO0nnslY2AZdpimiTnU+D3Wk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98083: btrfs: fix transaction use-after-free in raid stripe insertion Date: Fri, 25 Sep 2026 12:26:25 +0200 Message-ID: <2026092538-CVE-2026-98083-06f5@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=3072; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=r9f64BkNF9ntJ4IAo+QtJz2sOKQ93J2sxk3Q2yhiQGE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvPO+Lpw11WCDOBcLe03itI1zOKc/X6W8wy1b5Ntjy /TYw/F/O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiKi4M88wnuj3o3NLKwLR9 zRQFJc+Q13Z/VzDMLzpRdmRymHLPh16mng4OjbpPhlmXAA== 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 transaction use-after-free in raid stripe insertion If allocation of a RAID stripe extent fails, btrfs_insert_one_raid_extent() aborts and ends the transaction before returning -ENOMEM. btrfs_finish_one_ordered(), the production caller through btrfs_insert_raid_extent(), still owns the transaction handle. It handles the error by aborting the transaction and then reaches the common exit path, which ends the transaction again. The premature end can free the handle and drop its transaction reference. Transaction cleanup can then free the transaction before the caller's second abort accesses the handle and transaction, resulting in use-after-free. Keep the abort at the failure site, but let the caller's common exit path end the transaction once, after it has finished using both objects. The Linux kernel CVE team has assigned CVE-2026-98083 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 02c372e1f016e5113217597ab37b399c4e407477 and fixed in 6.12.111 with commit b185bdf30313e213fa1c887fe22fc3d513c061d9 Issue introduced in 6.7 with commit 02c372e1f016e5113217597ab37b399c4e407477 and fixed in 6.18.53 with commit 2fbfd02bdfe12b20bd3cc7a3190fb32e3f7072f5 Issue introduced in 6.7 with commit 02c372e1f016e5113217597ab37b399c4e407477 and fixed in 7.2.7 with commit b7b94923b3b5774d85a2a7c8d6eb9e3e0ef66685 Issue introduced in 6.7 with commit 02c372e1f016e5113217597ab37b399c4e407477 and fixed in 7.3-rc2 with commit a8813a923f9e43f788b357fb55c35f7f6ed6f98c Issue introduced in 6.6.130 with commit ab69bf6f8970c09d3735c25094e9471d54365282 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-98083 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/raid-stripe-tree.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/b185bdf30313e213fa1c887fe22fc3d513c061d9 https://git.kernel.org/stable/c/2fbfd02bdfe12b20bd3cc7a3190fb32e3f7072f5 https://git.kernel.org/stable/c/b7b94923b3b5774d85a2a7c8d6eb9e3e0ef66685 https://git.kernel.org/stable/c/a8813a923f9e43f788b357fb55c35f7f6ed6f98c