Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-143378

btrfs: zoned: fix double free of bitmaps on clone failure

Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: zoned: fix double free of bitmaps on clone failure btrfs_clone_dev_zone_info() duplicates the original orig_dev->zone_info with kmemdup(), which also copies the seq_zones, empty_zones and active_zones pointers. The clone then replaces them one by one with fresh bitmaps. If one of the allocations fails, the error path frees all three pointers, including those not yet replaced, which still point to the bitmaps owned by the original device. Clear the three pointers right after kmemdup() so the error path only frees what this function allocated.

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

  • 21e61ec6d0bb786818490e926aa9aeb4de95ad0d to < d327f5adaf1af9cb399f988570f57e784481863daffected
  • 21e61ec6d0bb786818490e926aa9aeb4de95ad0d to < 1c1b485bf2a79180e41204ac93b73f4731bb3557affected
  • 21e61ec6d0bb786818490e926aa9aeb4de95ad0d to < c8b32df27f50d28e3ef2601e0ef578e47dc72e12affected
  • 21e61ec6d0bb786818490e926aa9aeb4de95ad0d to < 8c66a6aa59a5df1d672d72b7cd379d897ff73200affected
  • ad88cabcec942c033f980cd1e28d56ecdaf5f3b8affected
  • 6.0.9 to < 6.1affected

Linux Linux

Default version status: affected

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

References