From mboxrd@z Thu Jan 1 00:00:00 1970 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 2E7A6496D43 for ; Fri, 25 Sep 2026 10:36:09 +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=1790332571; cv=none; b=PKiqUD+gJlTUfFWYaoCGS61RVgUiUr1yUbqyOyro2ndrxq9A+vhaTopyXjPhS8hh0yoZAJm1bIhFhInoivJzBaqFfIgkmJQf6ekpDAMQwFrB4SEZFBH0G/oG7AmLs1s0SSSLxFh1V8k8NaZUYj97snjJcPKRXQhfHddakwjFX98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332571; c=relaxed/simple; bh=pAdTAfqUJ/xYV+5xveY7AHeXuzNyeYf7JuEN4tlYBVY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VuwvFSCeOKooCm1faHCP/Nt7Y+XoCf2H8V3ITIBM3Tfj9+PEXNECPeET/UmEA/Swzi+KutCe9XwV8j3PCg1FEDCfG8dY6Q/bTmJaWRFpBoBlwZbZNBFrKTJds4bSye+z54XW4Xf6mFB2MkkfIN+0IYyOuQEa8nUkF0qUql55uPU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RznTcesy; 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="RznTcesy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 373F51F000FF; Fri, 25 Sep 2026 10:36:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332569; bh=Dr3mur5ytLc+qZXSqZIGNfFrXBdqspuRwSgkO9t8jM0=; h=From:To:Cc:Subject:Date:Reply-To; b=RznTcesywTF8IBoD82LV/xHdsi/u5CLKiQBMDwoz9wrMxN391GGhVALHLpeIg5rtu 7/oZ4u/opm6pJ1cVEIbwlnBRMr64wp2XYA6wh6vB8HiDIohPXdRrNdtWFNs/e8lIbd UiKlQa/Z9EeXUpuJy5gTmg9xQiq0CSIdr8RyaUds= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98081: btrfs: zoned: finish active block group cleanup if call_zone_finish() fails Date: Fri, 25 Sep 2026 12:26:23 +0200 Message-ID: <2026092538-CVE-2026-98081-e79b@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=2796; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ROnuhbH78n7rQQpUHYUfTSWMpeHCe9isg5Ng2yqudYA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvPMOHWpl4twk9IfnwgeuJ1OSXFZ8Pu3zxl/bZUJL9 hLe0FLTjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIZj/DHO6riXWLlLLd+8QD a980LPWQuflck2FBw+FdU1L+zioVvp56pbe6cxbDPKM1AA== 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: zoned: finish active block group cleanup if call_zone_finish() fails do_zone_finish() clears BLOCK_GROUP_FLAG_ZONE_IS_ACTIVE before finishing the zones. If call_zone_finish() then fails it returned early, leaving the now inactive block group on fs_info->zone_active_bgs, leaking its reference, the BTRFS_FS_NEED_ZONE_FINISH waiters are never woken, and as its alloc_offset equals the zone capacity btrfs_zone_finish_one_bg() keeps selecting it, spinning btrfs_zoned_activate_one_bg(). Fall through to the cleanup on failure too and return the error, but keep the block group read-only as its zones are left inconsistent. The Linux kernel CVE team has assigned CVE-2026-98081 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit d70cbdda75da3f258118a558c087157e073229fb and fixed in 6.12.111 with commit 36b9cdab44848f25879ca625275c92b007f84653 Issue introduced in 5.19 with commit d70cbdda75da3f258118a558c087157e073229fb and fixed in 6.18.53 with commit 40370f02a1ca3760f8925ffcbe76eb4d91ea758d Issue introduced in 5.19 with commit d70cbdda75da3f258118a558c087157e073229fb and fixed in 7.2.7 with commit e1b168a53174b385e3548bfbd079513b22ac240c Issue introduced in 5.19 with commit d70cbdda75da3f258118a558c087157e073229fb and fixed in 7.3-rc2 with commit a18a6b93a2843b9d103d3456bbd4b3f90282a379 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-98081 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/zoned.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/36b9cdab44848f25879ca625275c92b007f84653 https://git.kernel.org/stable/c/40370f02a1ca3760f8925ffcbe76eb4d91ea758d https://git.kernel.org/stable/c/e1b168a53174b385e3548bfbd079513b22ac240c https://git.kernel.org/stable/c/a18a6b93a2843b9d103d3456bbd4b3f90282a379