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.
INFO
Published Date :
Dec. 3, 2026, 10:18 a.m.
Last Modified :
Dec. 3, 2026, 10:18 a.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Apply the Linux kernel patch for btrfs zoned.
- Clear zone info pointers after duplication.
- Ensure error paths free only allocated memory.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-143378.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-143378 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-143378
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-143378 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-143378 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Dec. 03, 2026
Action Type Old Value New Value Added 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. Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/143xxx/CVE-2026-143378.json">CVE-2026-143378</a> Added Reference https://git.kernel.org/stable/c/1c1b485bf2a79180e41204ac93b73f4731bb3557 Added Reference https://git.kernel.org/stable/c/8c66a6aa59a5df1d672d72b7cd379d897ff73200 Added Reference https://git.kernel.org/stable/c/c8b32df27f50d28e3ef2601e0ef578e47dc72e12 Added Reference https://git.kernel.org/stable/c/d327f5adaf1af9cb399f988570f57e784481863d