Linux kernel: btrfs: fix extent map leak in NOCOW direct I/O write
Overview
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix extent map leak in NOCOW direct I/O write btrfs_dio_iomap_begin() calls btrfs_get_extent(), which returns an extent map reference that must be dropped on all exit paths. For direct writes into a NOCOW range, btrfs_get_blocks_direct_write() keeps using that extent map and asks btrfs_create_dio_extent() to allocate the ordered extent. If that fails, for example because btrfs_alloc_ordered_extent() fails, the function returns the error without dropping the input extent map. The PREALLOC path avoided this by dropping the input extent map before replacing it with the newly created one. Check the error from btrfs_create_dio_extent() before replacing the map and drop the input extent map on failure.
- Published
- 9/11/2026
- Last modified
- 10/30/2026
- CVE assigner
- Not available
- NVD analysis
- Not available
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
Linux Linux | ≥ 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, < 8d264d35df981e943171ddc09cd6cc1d38c65e17 | Verify advisory | Source |
Linux Linux | ≥ 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, < cb732d302245b14943a5017015fffa8e6db7a6c0 | Verify advisory | Source |
Linux Linux | ≥ 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, < b7c873765875645b11503f94c9bae2ca80127375 | Verify advisory | Source |
Linux Linux | ≥ 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, < f42efd634c0ae7ba0ce2fc5e30e291b0803b0ae2 | Verify advisory | Source |
Linux Linux | ≥ 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, < 05a1a816eef8b3e4332620a64fc8cf45c4eb5c0d | Verify advisory | Source |
Linux Linux | ≥ 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, < 3f950867c307c5413d628a153ac44915bd117ffd | Verify advisory | Source |
Linux Linux | 4.7 | Verify advisory | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Vendor advisory links
Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
No CVSS score is published for this record yet. Additional score details appear when the source record is next refreshed.
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.