CVE-2026-89644

Source
https://cve.org/CVERecord?id=CVE-2026-89644
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89644.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-89644
Downstream
Published
2026-09-11T19:45:36Z
Modified
2026-09-13T03:46:39Z
Summary
btrfs: fix extent map leak in NOCOW direct I/O write
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89644.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af
Fixed
f42efd634c0ae7ba0ce2fc5e30e291b0803b0ae2
Fixed
05a1a816eef8b3e4332620a64fc8cf45c4eb5c0d
Fixed
3f950867c307c5413d628a153ac44915bd117ffd

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89644.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.7.0
Fixed
6.18.50
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89644.json"