# CVE-2026-98081: btrfs: zoned: finish active block group cleanup if call_zone_finish() fails

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-09-25T10:24:18.091Z
- Modified: 2026-11-17T20:23:34.207Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from d70cbdda75da3f258118a558c087157e073229fb before 433d52b196a689b18dcfadc7cf6c784f0e5cc7c9; from d70cbdda75da3f258118a558c087157e073229fb before 36b9cdab44848f25879ca625275c92b007f84653; from d70cbdda75da3f258118a558c087157e073229fb before 40370f02a1ca3760f8925ffcbe76eb4d91ea758d; from d70cbdda75da3f258118a558c087157e073229fb before e1b168a53174b385e3548bfbd079513b22ac240c; from d70cbdda75da3f258118a558c087157e073229fb before a18a6b93a2843b9d103d3456bbd4b3f90282a379; 5.19 (not affected: before 5.19; from 6.6.160 up to 6.6.*; from 6.12.111 up to 6.12.*; from 6.18.53 up to 6.18.*; from 7.2.7 up to 7.2.*; from 7.3 up to *)
- linux linux_kernel: from 5.19 before 6.6.160; from 6.7 before 6.12.111; from 6.13 before 6.18.53; from 6.19 before 7.2.7; 7.3

## References

- <https://git.kernel.org/stable/c/433d52b196a689b18dcfadc7cf6c784f0e5cc7c9> (patch)
- <https://git.kernel.org/stable/c/36b9cdab44848f25879ca625275c92b007f84653> (patch)
- <https://git.kernel.org/stable/c/40370f02a1ca3760f8925ffcbe76eb4d91ea758d> (patch)
- <https://git.kernel.org/stable/c/e1b168a53174b385e3548bfbd079513b22ac240c> (patch)
- <https://git.kernel.org/stable/c/a18a6b93a2843b9d103d3456bbd4b3f90282a379> (patch)

## Sources

- CVE List: [CVE-2026-98081](https://www.cve.org/CVERecord?id=CVE-2026-98081), CVE Terms of Use, modified 2026-10-21
- NVD: [CVE-2026-98081](https://nvd.nist.gov/vuln/detail/CVE-2026-98081), Public domain, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-98081 · Whole record: https://cve.day/CVE-2026-98081.json · Rebuilt by cve.day 2026-11-25T22:59:41.051Z
