Aller au contenu
7.8 Élevée

CVE-2026-45984 In the Linux kernel, the following vulnerability has been resolved: gfs2: Fix use-after-free in iomap inline data…

Description

In the Linux kernel, the following vulnerability has been resolved: gfs2: Fix use-after-free in iomap inline data write path The inline data buffer head (dibh) is being released prematurely in gfs2_iomap_begin() via release_metapath() while iomap->inline_data still points to dibh->b_data. This causes a use-after-free when iomap_write_end_inline() later attempts to write to the inline data area. The bug sequence: 1. gfs2_iomap_begin() calls gfs2_meta_inode_buffer() to read inode metadata into dibh 2. Sets iomap->inline_data = dibh->b_data + sizeof(struct gfs2_dinode) 3. Calls release_metapath() which calls brelse(dibh), dropping refcount to 0 4. kswapd reclaims the page (~39ms later in the syzbot report) 5. iomap_write_end_inline() tries to memcpy() to iomap->inline_data 6. KASAN detects use-after-free write to freed memory Fix by storing dibh in iomap->private and incrementing its refcount with get_bh() in gfs2_iomap_begin(). The buffer is then properly released in gfs2_iomap_end() after the inline write completes, ensuring the page stays alive for the entire iomap operation. Note: A C reproducer is not available for this issue. The fix is based on analysis of the KASAN report and code review showing the buffer head is freed before use. [agruenba: Take buffer head reference in gfs2_iomap_begin() to avoid leaks in gfs2_iomap_get() and gfs2_iomap_alloc().]

Produits et versions touchés

Produit Versions touchées Corrigé en
Linux 7.0 premières → < 7.0 7.0
Linux 6.19 premières → < 6.19.4 6.19.4
Linux 6.18 premières → < 6.18.14 6.18.14
Linux 6.12 premières → < 6.12.75 6.12.75
Linux 6.6 premières → < 6.6.128 6.6.128
Linux 6.1 premières → < 6.1.165 6.1.165
Linux 5.15 premières → < 5.15.202 5.15.202
Linux 5.10 premières → < 5.10.252 5.10.252
Linux 5.2 Pas de correctif indiqué
Afficher les 35 autres branches
Produit Versions touchées Corrigé en
Red Hat Enterprise Linux AppStream (v. 9) Versions non publiées
Red Hat Enterprise Linux BaseOS (v. 9) Versions non publiées
Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) Versions non publiées
Red Hat Enterprise Linux Real Time for NFV (v. 9) Versions non publiées
Red Hat Enterprise Linux Real Time (v. 9) Versions non publiées
Red Hat Enterprise Linux 7 Versions non publiées
Red Hat Enterprise Linux 8 Versions non publiées
Red Hat Enterprise Linux 9 Versions non publiées
Red Hat Enterprise Linux 10 Versions non publiées
Red Hat Enterprise Linux 6 Versions non publiées
Red Hat Enterprise Linux for NVIDIA 26 Versions non publiées
Red Hat OpenShift Container Platform 4 Versions non publiées
Red Hat Enterprise Linux BaseOS (v. 8) Versions non publiées
Red Hat Enterprise Linux CRB (v. 8) Versions non publiées
Red Hat Enterprise Linux BaseOS AUS (v.8.6) Versions non publiées
Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.6) Versions non publiées
Red Hat Enterprise Linux NFV (v. 8) Versions non publiées
Red Hat Enterprise Linux RT (v. 8) Versions non publiées
Red Hat Enterprise Linux AppStream E4S (v.9.4) Versions non publiées
Red Hat Enterprise Linux BaseOS E4S (v.9.4) Versions non publiées
Red Hat Enterprise Linux Real Time for NFV E4S (v.9.4) Versions non publiées
Red Hat Enterprise Linux Real Time E4S (v.9.4) Versions non publiées
Red Hat Enterprise Linux AppStream EUS (v.9.6) Versions non publiées
Red Hat Enterprise Linux BaseOS EUS (v.9.6) Versions non publiées
Red Hat CodeReady Linux Builder EUS (v.9.6) Versions non publiées
Red Hat Enterprise Linux Real Time for NFV EUS (v.9.6) Versions non publiées
Red Hat Enterprise Linux Real Time EUS (v.9.6) Versions non publiées
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support Versions non publiées
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On Versions non publiées
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions Versions non publiées
Red Hat Enterprise Linux 9.6 Extended Update Support Versions non publiées
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions Versions non publiées
Red Hat Enterprise Linux 8.8 Telecommunications Update Service Versions non publiées
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions Versions non publiées
Red Hat Enterprise Linux 7 Extended Lifecycle Support Versions non publiées

Références

Chronologie

  1. Publiée
  2. Dernière modification
Les 18283 CVE de Linux →
Suivre cette CVE