CVE Database›Document archive›CVE-2026-71224

CVE-2026-71224

gfs2-utils: gfs2-utils: stack overflow via alloca(i_height) in metadata walk

Loading…

Severity

Moderate

Red Hat Product Security

4.7

CVSS 3.1

Review impact separately from score.

Published · September 3, 2026

Updated · September 3, 2026

Description

A stack overflow vulnerability was found in gfs2-utils. The metadata walk code in metawalk.c uses alloca() with an untrusted inode height value from on-disk metadata without bounds validation, causing stack exhaustion and a denial of service when processing crafted GFS2 filesystem images.

Statement

This vulnerability is assessed as Moderate impact because the alloca-based stack exhaustion results in a process crash (SIGSEGV) rather than controlled memory corruption. RHEL stack guard pages prevent the overflow from reaching other memory regions, confining the impact to denial of service. Exploitation requires local access and user interaction (an administrator must run fsck.gfs2 or other gfs2-utils tools on a crafted GFS2 filesystem image). The vulnerability does not affect the kernel GFS2 driver, which validates i_height against sd_max_height.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Run gfs2-utils tools in a containerized or VM-isolated environment when processing potentially compromised or untrusted GFS2 filesystem images. Disable automatic fsck at boot for GFS2 filesystems until patches are applied by setting fs_passno to 0 in /etc/fstab. Use ulimit -s to reduce the stack size limit, converting potential exploitation into a controlled crash.

CVSS / CWE

CVSS 3.1 · 4.7
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H

CWE-770 · Allocation of Resources Without Limits or Throttling