-

CVE-2026-89644

btrfs: fix extent map leak in NOCOW direct I/O write

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.
Daten sind bereitgestellt durch das CVE Programm von einer CVE Numbering Authority (CNA) (Unstrukturiert).
HerstellerLinux
≫
Produkt Linux
Default Statusunaffected
Version 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af
Version < b7c873765875645b11503f94c9bae2ca80127375
Status affected
Version 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af
Version < f42efd634c0ae7ba0ce2fc5e30e291b0803b0ae2
Status affected
Version 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af
Version < 05a1a816eef8b3e4332620a64fc8cf45c4eb5c0d
Status affected
Version 5f9a8a51d8b95505d8de8b7191ae2ed8c504d4af
Version < 3f950867c307c5413d628a153ac44915bd117ffd
Status affected
HerstellerLinux
≫
Produkt Linux
Default Statusaffected
Version 4.7
Status affected
Version 0
Version < 4.7
Status unaffected
Version <= 6.12.*
Version 6.12.111
Status unaffected
Version <= 6.18.*
Version 6.18.50
Status unaffected
Version <= 7.2.*
Version 7.2.4
Status unaffected
Version <= *
Version 7.3-rc1
Status unaffected
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.17% 0.061
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
Es wurden noch keine Informationen zu CWE veröffentlicht.
https://git.kernel.org/stable/c/f42efd634c0ae7ba0ce2fc5e30e291b0803b0ae2
https://git.kernel.org/stable/c/05a1a816eef8b3e4332620a64fc8cf45c4eb5c0d
https://git.kernel.org/stable/c/3f950867c307c5413d628a153ac44915bd117ffd
https://git.kernel.org/stable/c/b7c873765875645b11503f94c9bae2ca80127375