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=1792758455; b=AXNpDYdgwc25xEY09e2v/k5b+USXBYUCZQJGi0tUbFToMboP50bhWG5RGO1DAASg0oWz Wm73IDZcdEfiYXcrqNaFpAaiKXPLfZfJCkUm/wfEvt9b4WSXd0qK5ZVfue9xgd/PjtYB3 V9yWorWz43idVEBycuk17kanm3rKnX+1w/Li7cbv7AWY9Sg8dxNOnAZN6tiCua88nNKno Lg6a1PoSq2ojYEJQSwtVUd88tk1+/AsSAO9O2FPFjQkpSEOqImnDGtqaPkkDujv8MW9r6 e2FGEwyO/ERKcpIct+Kc59jjqaLevFLwibdN7WOLW+QYSvbIqgtGbfzi8OekAt8PREw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758455; 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=UePzZodfLkrM50cdQ81sAB7Vp8mufH7fkcu+81Fc9sY=; b=ldznMeVID1JSP3Xqm/ZqEie6djYH+6R4iZi/kB4BWqCFHqh8o8sYckHTQvXW4ABZL6dd HOmeXxFr5ydek7oMhmHWxR+uLtUjrzvZwCHYo4jwk1BQ7HO4Z2Fad8cGusY24mTQ8Lx5S boHP1mlem8MhuZqAIQLn2trCSfl66Zfe/jszLAYmcxn10B3yg1Fy8mmQB5gemo1bPZ83x UPSjGEOMvlWxYIqW84yKJyiyok9nKS6xFCwLYPeQhbQisbDh5FG1a4xN/JCW7oT36Y3PA O0rwW0T+7+ahF4kTy0D281WHrjTmoephZlKNMI8ytbv2RUL3HCHiFjwZCZ1603vIKHA== 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=ejJThTZd; 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 9786B606A31A for ; Fri, 23 Oct 2026 12:27:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ejJThTZd Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB0FC1F01825; Fri, 23 Oct 2026 12:27:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758455; bh=UePzZodfLkrM50cdQ81sAB7Vp8mufH7fkcu+81Fc9sY=; h=From:To:Cc:Subject:Date:Reply-To; b=ejJThTZdoIoxKlyMS7fBpu7MjBG7g0calod2ak0BHeiqherEaQQ8nBJCAfTAlz/FF HiM9FVOn5CJtN78MjvrJOcF67w3wutuTLikQNjoT1Hvcvk4a7M3JMCaIk7icKkJS23 +VKGwazPmWM9ClUw4xi8MtxcEhRss52/jyp3piYA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98961: btrfs: unlock inode and extent in caller when io_uring read extent fails Date: Fri, 23 Oct 2026 14:19:23 +0200 Message-ID: <2026102309-CVE-2026-98961-5cff@gregkh> X-Mailer: git-send-email 2.56.0 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=2417; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=J4mNN5r48mRbLeTdzzIIpwYrDmgTwV/7CmDWUbQ1dRs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3A/ZOOcoWIHbql5fk1weiOastCsqEr8W9/KzZv1NmW 7NIz/u6jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIyGKGBdc0rhwsum1VtlRv ZgEr31yDffnzAhjm8Lz0qFpaXZRuYvqmh+Pex5UKzVxXAA== 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: unlock inode and extent in caller when io_uring read extent fails btrfs_uring_read_extent() runs only after btrfs_encoded_read() has taken the inode shared lock and the extent lock. On failure it used to unlock in out_fail, and a pages-array allocation failure returned -ENOMEM without unlocking at all. Unlock in the caller instead on all failure returns, matching the copy_to_user() error path. The deferred -EIOCBQUEUED path still unlocks in btrfs_uring_read_finished(). The Linux kernel CVE team has assigned CVE-2026-98961 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 34310c442e175f286b4c06ab5caa4e0b267ea31c and fixed in 6.18.57 with commit 2797eb38773a96914ccedeec71eb2144645400b2 Issue introduced in 6.13 with commit 34310c442e175f286b4c06ab5caa4e0b267ea31c and fixed in 7.2.11 with commit ada1fc725a4db407294ae90a0d40ef1c46f457f2 Issue introduced in 6.13 with commit 34310c442e175f286b4c06ab5caa4e0b267ea31c and fixed in 7.3 with commit b6e8add5d79d1f6f819a054c833bab452bd7365d 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-98961 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/2797eb38773a96914ccedeec71eb2144645400b2 https://git.kernel.org/stable/c/ada1fc725a4db407294ae90a0d40ef1c46f457f2 https://git.kernel.org/stable/c/b6e8add5d79d1f6f819a054c833bab452bd7365d