btrfs: zoned: finish active block group cleanup if call_zone_finish() fails
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.111, 6.18.53, 6.6.160, 7.2.7
- CVEs
- CVE-2026-98081
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 01:30 UTC · Revision 1
Source evidence
btrfs: zoned: finish active block group cleanup if call_zone_finish() fails
core-osv · Original sourcePublished 25 Sept 2026, 10:24 UTC
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.
osv:CVE-2026-98081
Kernel
Fixed versions: 6.6.160, 6.12.111, 6.18.53, 7.2.7
Complete source record
{
"id": "be6f9b3c46cd46d2286473bb343ab52879bbaee2729cd96b1826628b48d44495",
"url": "https://osv.dev/vulnerability/CVE-2026-98081",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "btrfs: zoned: finish active block group cleanup if call_zone_finish() fails",
"summary": "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.",
"evidence": "osv:CVE-2026-98081",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.160",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.111",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.53",
"evidence": "/affected/1/ranges"
},
{
"value": "7.2.7",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-98081",
"aliases": [
"CVE-2026-98081"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "d70cbdda75da3f258118a558c087157e073229fb"
},
{
"fixed": "433d52b196a689b18dcfadc7cf6c784f0e5cc7c9"
},
{
"fixed": "36b9cdab44848f25879ca625275c92b007f84653"
},
{
"fixed": "40370f02a1ca3760f8925ffcbe76eb4d91ea758d"
},
{
"fixed": "e1b168a53174b385e3548bfbd079513b22ac240c"
},
{
"fixed": "a18a6b93a2843b9d103d3456bbd4b3f90282a379"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98081.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.19.0"
},
{
"fixed": "6.6.160"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.111"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.53"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "7.2.7"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98081.json"
}
}
],
"modified": "2026-10-28T02:30:41.106105546Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/36b9cdab44848f25879ca625275c92b007f84653",
"https://git.kernel.org/stable/c/40370f02a1ca3760f8925ffcbe76eb4d91ea758d",
"https://git.kernel.org/stable/c/433d52b196a689b18dcfadc7cf6c784f0e5cc7c9",
"https://git.kernel.org/stable/c/a18a6b93a2843b9d103d3456bbd4b3f90282a379",
"https://git.kernel.org/stable/c/e1b168a53174b385e3548bfbd079513b22ac240c",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98081.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-98081",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98081.json"
}
},
"related_cves": [
{
"value": "CVE-2026-98081",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 509075,
"published_at": "2026-09-25T10:24:18.091+00:00"
}