Bug 2481922 (CVE-2026-45984) - CVE-2026-45984 kernel: gfs2: Fix use-after-free in iomap inline data write path
Summary: CVE-2026-45984 kernel: gfs2: Fix use-after-free in iomap inline data write path
Keywords:
Status: NEW
Alias: CVE-2026-45984
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-27 15:02 UTC by OSIDB Bzimport
Modified: 2026-08-17 02:31 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:27789 0 None None None 2026-06-22 08:29:18 UTC
Red Hat Product Errata RHSA-2026:33743 0 None None None 2026-06-30 21:17:04 UTC
Red Hat Product Errata RHSA-2026:35894 0 None None None 2026-07-06 13:42:10 UTC
Red Hat Product Errata RHSA-2026:36049 0 None None None 2026-07-07 01:09:40 UTC
Red Hat Product Errata RHSA-2026:36767 0 None None None 2026-07-08 14:51:32 UTC
Red Hat Product Errata RHSA-2026:38902 0 None None None 2026-07-13 12:50:42 UTC
Red Hat Product Errata RHSA-2026:51603 0 None None None 2026-08-07 17:02:16 UTC
Red Hat Product Errata RHSA-2026:51604 0 None None None 2026-08-07 17:02:10 UTC
Red Hat Product Errata RHSA-2026:55444 0 None None None 2026-08-17 02:31:40 UTC

Description OSIDB Bzimport 2026-05-27 15:02:30 UTC
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().]

Comment 6 errata-xmlrpc 2026-06-22 08:29:17 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:27789 https://access.redhat.com/errata/RHSA-2026:27789

Comment 7 errata-xmlrpc 2026-06-30 21:17:03 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:33743 https://access.redhat.com/errata/RHSA-2026:33743

Comment 8 errata-xmlrpc 2026-07-06 13:42:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On

Via RHSA-2026:35894 https://access.redhat.com/errata/RHSA-2026:35894

Comment 9 errata-xmlrpc 2026-07-07 01:09:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:36049 https://access.redhat.com/errata/RHSA-2026:36049

Comment 10 errata-xmlrpc 2026-07-08 14:51:31 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions

Via RHSA-2026:36767 https://access.redhat.com/errata/RHSA-2026:36767

Comment 11 errata-xmlrpc 2026-07-13 12:50:41 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:38902 https://access.redhat.com/errata/RHSA-2026:38902

Comment 12 errata-xmlrpc 2026-08-07 17:02:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2026:51604 https://access.redhat.com/errata/RHSA-2026:51604

Comment 13 errata-xmlrpc 2026-08-07 17:02:15 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2026:51603 https://access.redhat.com/errata/RHSA-2026:51603

Comment 14 errata-xmlrpc 2026-08-17 02:31:38 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2026:55444 https://access.redhat.com/errata/RHSA-2026:55444


Note You need to log in before you can comment on or make changes to this bug.