Skip to content
7.8 High

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().]

Affected products and versions

Product Affected versions Fixed in
Linux 7.0 earliest → < 7.0 7.0
Linux 6.19 earliest → < 6.19.4 6.19.4
Linux 6.18 earliest → < 6.18.14 6.18.14
Linux 6.12 earliest → < 6.12.75 6.12.75
Linux 6.6 earliest → < 6.6.128 6.6.128
Linux 6.1 earliest → < 6.1.165 6.1.165
Linux 5.15 earliest → < 5.15.202 5.15.202
Linux 5.10 earliest → < 5.10.252 5.10.252
Linux 5.2 No fix stated
Show the 35 other branches
Product Affected versions Fixed in
Red Hat Enterprise Linux AppStream (v. 9) Versions not published
Red Hat Enterprise Linux BaseOS (v. 9) Versions not published
Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) Versions not published
Red Hat Enterprise Linux Real Time for NFV (v. 9) Versions not published
Red Hat Enterprise Linux Real Time (v. 9) Versions not published
Red Hat Enterprise Linux 7 Versions not published
Red Hat Enterprise Linux 8 Versions not published
Red Hat Enterprise Linux 9 Versions not published
Red Hat Enterprise Linux 10 Versions not published
Red Hat Enterprise Linux 6 Versions not published
Red Hat Enterprise Linux for NVIDIA 26 Versions not published
Red Hat OpenShift Container Platform 4 Versions not published
Red Hat Enterprise Linux BaseOS (v. 8) Versions not published
Red Hat Enterprise Linux CRB (v. 8) Versions not published
Red Hat Enterprise Linux BaseOS AUS (v.8.6) Versions not published
Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.6) Versions not published
Red Hat Enterprise Linux NFV (v. 8) Versions not published
Red Hat Enterprise Linux RT (v. 8) Versions not published
Red Hat Enterprise Linux AppStream E4S (v.9.4) Versions not published
Red Hat Enterprise Linux BaseOS E4S (v.9.4) Versions not published
Red Hat Enterprise Linux Real Time for NFV E4S (v.9.4) Versions not published
Red Hat Enterprise Linux Real Time E4S (v.9.4) Versions not published
Red Hat Enterprise Linux AppStream EUS (v.9.6) Versions not published
Red Hat Enterprise Linux BaseOS EUS (v.9.6) Versions not published
Red Hat CodeReady Linux Builder EUS (v.9.6) Versions not published
Red Hat Enterprise Linux Real Time for NFV EUS (v.9.6) Versions not published
Red Hat Enterprise Linux Real Time EUS (v.9.6) Versions not published
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support Versions not published
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On Versions not published
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions Versions not published
Red Hat Enterprise Linux 9.6 Extended Update Support Versions not published
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions Versions not published
Red Hat Enterprise Linux 8.8 Telecommunications Update Service Versions not published
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions Versions not published
Red Hat Enterprise Linux 7 Extended Lifecycle Support Versions not published

References

Timeline

  1. Published
  2. Last modified
The 18283 CVEs of Linux →
Track this CVE