{"id":"CVE-2026-143243","summary":"btrfs: zoned: only change active zone counter on successful (de)activation","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: zoned: only change active zone counter on successful (de)activation\n\nbtrfs_zone_activate() unconditionally decrements the reserved_active_zones\ncounter regardless if btrfs_dev_set_active_zone() fails to set the zone\nactive, i.e. because it raced with another call that already set the bit\nin the bitmask, or not.\n\nThis can lead to a double decrement of the counter in case the bit has\nalready been set.\n\nOnly decrement the counter *iff* btrfs_dev_set_active_zone() successfully\nmarked the zone in the bitmap.\n\nMirror this behaviour when clearing the bit again.","modified":"2026-12-03T11:01:49.769703113Z","published":"2026-12-03T09:20:54.973Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143243.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/46a94be3ce1600b7dca4be4eee32aaa0d8ea17e3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5e79f39fbeea78703ac389c67a810406fa09bc94"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a5639ba463867ad47bfab44e36c74cff0510d024"},{"type":"WEB","url":"https://git.kernel.org/stable/c/aba46638426ee1739e86db61e4cc94559b5fb312"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143243.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143243"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a7e1ac7bdc5af91af2d52e6269fdbd92fe9ee353"},{"fixed":"aba46638426ee1739e86db61e4cc94559b5fb312"},{"fixed":"a5639ba463867ad47bfab44e36c74cff0510d024"},{"fixed":"46a94be3ce1600b7dca4be4eee32aaa0d8ea17e3"},{"fixed":"5e79f39fbeea78703ac389c67a810406fa09bc94"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143243.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.6.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143243.json"}}],"schema_version":"1.9.2"}