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

Summary

CVECVE-2026-143378
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-12-03 10:18:30 UTC
Updated2026-12-03 10:18:30 UTC
DescriptionIn 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.

Risk And Classification

EPSS: 0.003680000 probability, percentile 0.327720000 (date 2026-12-03)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 21e61ec6d0bb786818490e926aa9aeb4de95ad0d d327f5adaf1af9cb399f988570f57e784481863d git Not specified
CNA Linux Linux affected 21e61ec6d0bb786818490e926aa9aeb4de95ad0d 1c1b485bf2a79180e41204ac93b73f4731bb3557 git Not specified
CNA Linux Linux affected 21e61ec6d0bb786818490e926aa9aeb4de95ad0d c8b32df27f50d28e3ef2601e0ef578e47dc72e12 git Not specified
CNA Linux Linux affected 21e61ec6d0bb786818490e926aa9aeb4de95ad0d 8c66a6aa59a5df1d672d72b7cd379d897ff73200 git Not specified
CNA Linux Linux affected ad88cabcec942c033f980cd1e28d56ecdaf5f3b8 git Not specified
CNA Linux Linux affected 6.0.9 6.1 semver Not specified
CNA Linux Linux affected 6.1 Not specified
CNA Linux Linux unaffected 6.1 semver Not specified
CNA Linux Linux unaffected 6.12.120 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.66 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.7 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc2 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/8c66a6aa59a5df1d672d72b7cd379d897ff73200 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/1c1b485bf2a79180e41204ac93b73f4731bb3557 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/c8b32df27f50d28e3ef2601e0ef578e47dc72e12 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d327f5adaf1af9cb399f988570f57e784481863d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report