Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-143243

btrfs: zoned: only change active zone counter on successful (de)activation

Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: zoned: only change active zone counter on successful (de)activation btrfs_zone_activate() unconditionally decrements the reserved_active_zones counter regardless if btrfs_dev_set_active_zone() fails to set the zone active, i.e. because it raced with another call that already set the bit in the bitmask, or not. This can lead to a double decrement of the counter in case the bit has already been set. Only decrement the counter *iff* btrfs_dev_set_active_zone() successfully marked the zone in the bitmap. Mirror this behaviour when clearing the bit again.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • a7e1ac7bdc5af91af2d52e6269fdbd92fe9ee353 to < aba46638426ee1739e86db61e4cc94559b5fb312affected
  • a7e1ac7bdc5af91af2d52e6269fdbd92fe9ee353 to < a5639ba463867ad47bfab44e36c74cff0510d024affected
  • a7e1ac7bdc5af91af2d52e6269fdbd92fe9ee353 to < 46a94be3ce1600b7dca4be4eee32aaa0d8ea17e3affected
  • a7e1ac7bdc5af91af2d52e6269fdbd92fe9ee353 to < 5e79f39fbeea78703ac389c67a810406fa09bc94affected

Linux Linux

Default version status: affected

  • 6.6affected
  • 0 to < 6.6unaffected
  • 6.12.120 to ≤ 6.12.*unaffected
  • 6.18.66 to ≤ 6.18.*unaffected
  • 7.3.7 to ≤ 7.3.*unaffected
  • 7.4-rc3 to ≤ *unaffected

References