Skip to main content

Linux CVE-2026-45984

| EUVD-2026-32269
2026-05-27 416baaa9-dc9f-4396-8d5f-8c081fb06d67 GHSA-c7gf-37rm-rpg6

Lifecycle Timeline

2
Patch available
May 27, 2026 - 19:46 EUVD
CVE Published
May 27, 2026 - 14:17 nvd
UNKNOWN (no severity yet)

DescriptionNVD

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

  1. Sets iomap->inline_data = dibh->b_data + sizeof(struct gfs2_dinode)
  2. Calls release_metapath() which calls brelse(dibh), dropping refcount

to 0

  1. kswapd reclaims the page (~39ms later in the syzbot report)
  2. iomap_write_end_inline() tries to memcpy() to iomap->inline_data
  3. 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().]

Analysis

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. …

Sign in for full analysis, threat intelligence, and remediation guidance.

Share

CVE-2026-45984 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy