# CVE-2026-89644: btrfs: fix extent map leak in NOCOW direct I/O write

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 7, 2026-11-26)
- **Published:** 2026-09-11T19:45:36.268Z
- **Modified:** 2026-10-30T13:20:23.873Z

## Who should check

- Anyone running Linux \>= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, \< 8d264d35df981e943171ddc09cd6cc1d38c65e17; \>= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, \< cb732d302245b14943a5017015fffa8e6db7a6c0; \>= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, \< b7c873765875645b11503f94c9bae2ca80127375; \>= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, \< f42efd634c0ae7ba0ce2fc5e30e291b0803b0ae2; \>= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, \< 05a1a816eef8b3e4332620a64fc8cf45c4eb5c0d; \>= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, \< 3f950867c307c5413d628a153ac44915bd117ffd
- Anyone running Linux 4.7

## Description

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.

## Affected and fixed versions

- Linux: \>= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, \< 8d264d35df981e943171ddc09cd6cc1d38c65e17; \>= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, \< cb732d302245b14943a5017015fffa8e6db7a6c0; \>= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, \< b7c873765875645b11503f94c9bae2ca80127375; \>= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, \< f42efd634c0ae7ba0ce2fc5e30e291b0803b0ae2; \>= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, \< 05a1a816eef8b3e4332620a64fc8cf45c4eb5c0d; \>= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, \< 3f950867c307c5413d628a153ac44915bd117ffd (cvelist)
- Linux: 4.7 (cvelist)

## Mitigation

- Upgrade Linux to 3f950867c307c5413d628a153ac44915bd117ffd or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-89644. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89644.md
Affected: Linux >= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, < 8d264d35df981e943171ddc09cd6cc1d38c65e17; >= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, < cb732d302245b14943a5017015fffa8e6db7a6c0; >= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, < b7c873765875645b11503f94c9bae2ca80127375; >= 5f9a8a51d8b95505d8de8b7…
Fixed in: Linux 8d264d35df981e943171ddc09cd6cc1d38c65e17, Linux 05a1a816eef8b3e4332620a64fc8cf45c4eb5c0d, Linux 3f950867c307c5413d628a153ac44915bd117ffd

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-89644 being exploited?

There is no confirmed exploitation: CVE-2026-89644 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-89644?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-89644?

Linux \>= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, \< 8d264d35df981e943171ddc09cd6cc1d38c65e17; \>= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, \< cb732d302245b14943a5017015fffa8e6db7a6c0; \>= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, \< b7c873765875645b11503f94c9bae2ca80127375; \>= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, \< f42efd634c0ae7ba0ce2fc5e30e291b0803b0ae2; \>= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, \< 05a1a816eef8b3e4332620a64fc8cf45c4eb5c0d; \>= 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af, \< 3f950867c307c5413d628a153ac44915bd117ffd; Linux 4.7.

### Is there a fix for CVE-2026-89644?

Yes. Fixed in Linux 8d264d35df981e943171ddc09cd6cc1d38c65e17, Linux 05a1a816eef8b3e4332620a64fc8cf45c4eb5c0d, Linux 3f950867c307c5413d628a153ac44915bd117ffd. Upgrade Linux to 3f950867c307c5413d628a153ac44915bd117ffd or later.

### How do I check if I'm affected by CVE-2026-89644?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/8d264d35df981e943171ddc09cd6cc1d38c65e17>
- other: <https://git.kernel.org/stable/c/cb732d302245b14943a5017015fffa8e6db7a6c0>
- other: <https://git.kernel.org/stable/c/b7c873765875645b11503f94c9bae2ca80127375>
- other: <https://git.kernel.org/stable/c/f42efd634c0ae7ba0ce2fc5e30e291b0803b0ae2>
- other: <https://git.kernel.org/stable/c/05a1a816eef8b3e4332620a64fc8cf45c4eb5c0d>
- other: <https://git.kernel.org/stable/c/3f950867c307c5413d628a153ac44915bd117ffd>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-89644>

HTML: <https://flawdb.com/CVE-2026-89644> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-89644>
