CVE-2026-143378: btrfs: zoned: fix double free of bitmaps on clone failure

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

btrfsclonedevzoneinfo() duplicates the original origdev->zoneinfo with kmemdup(), which also copies the seqzones, emptyzones and activezones 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 Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In btrfs_clone_dev_zone_info(), clear the seq_zones, empty_zones, and active_zones pointers immediately after kmemdup() so the error path only frees allocations made by this function.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:22 AM
Data Sourced
via MITRE·09:22 AM
Description

Frequently Asked Questions

1

What conditions are required to trigger the faulty cleanup path?

A Btrfs zoned-device clone operation must begin, and allocation of one of the replacement zone bitmaps must fail after the cloned zone_info structure has copied bitmap pointers from the original device.

2

What data can be incorrectly freed when the failure occurs?

The cleanup path can free seq_zones, empty_zones, or active_zones pointers that have not yet been replaced. Those pointers still refer to bitmaps owned by the original device.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203