CVE-2026-71219

Gfs2-utils: gfs2-utils: stack overflow via alloca(1<<di_depth) in hash table traversal

Published Sep 3, 2026 CVSS 3.1 · 4.7 Medium EPSS < 1% KEV · Not listed
Description
A stack overflow vulnerability was found in gfs2-utils. The hash table traversal code in metawalk.c uses alloca() with an exponentially-derived size from the untrusted on-disk di_depth field without bounds validation. A crafted GFS2 filesystem image with a large di_depth value causes stack exhaustion and a denial of service when processed by fsck.gfs2, gfs2_edit, or savemeta.

Analysis

AI-generated

Technical impact

The vulnerability is a stack overflow caused by the use of alloca() without bounds validation during hash table traversal in metawalk.c of gfs2-utils. A specially crafted GFS2 filesystem image with an excessively large di_depth field can exhaust the stack when processed by fsck.gfs2, gfs2_edit, or savemeta, leading to a denial of service. This weakness originates from improper input validation (CWE-770) and affects the ability of authenticated users to manipulate filesystem images that are later scanned or modified by system tools.

Affected Systems

The flaw exists in all Red Hat Enterprise Linux releases that ship the gfs2-utils package: RHEL 7, RHEL 8, and RHEL 9. All installed instances of gfs2-utils on these distributions that have not been patched are vulnerable. No specific version numbers are listed, so the entire distribution family is considered affected.

Risk and Exploitability

The CVSS score of 4.7 classifies the issue as moderate severity. No EPSS score is available, so the current likelihood of exploitation is unclear. The vulnerability is not listed in CISA KEV. An attacker can exploit it by creating or presenting a malicious GFS2 image and having it processed by an administrative or automated fsck process; the exploit requires local access to the image or the ability to trigger fsck on the host. Successful exploitation results in a local denial of service that could interrupt system operations, while disruption of critical services could have moderate operational impact.

Remediation

Vendor Workaround

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.


OpenCVE Recommended Actions

  • Disable automatic GFS2 filesystem checks at boot by setting fs_passno to 0 in /etc/fstab.
  • Run the gfs2 utilities (fsck.gfs2, gfs2_edit, savemeta) in a container or virtual machine to isolate the process from the host.
  • Set a lower stack size limit with "ulimit -s" to convert potential stack exhaustion into a controlled crash.

Generated by OpenCVE AI on September 3, 2026 at 13:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
CPEs cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Redhat gfs2-utils
Vendors & Products Redhat gfs2-utils
Type Values Removed Values Added
Description A stack overflow vulnerability was found in gfs2-utils. The hash table traversal code in metawalk.c uses alloca() with an exponentially-derived size from the untrusted on-disk di_depth field without bounds validation. A crafted GFS2 filesystem image with a large di_depth value causes stack exhaustion and a denial of service when processed by fsck.gfs2, gfs2_edit, or savemeta.
Title Gfs2-utils: gfs2-utils: stack overflow via alloca(1<<di_depth) in hash table traversal
First Time appeared Redhat
Redhat enterprise Linux
Weaknesses CWE-770
CPEs cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
References
Metrics cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 24, 2026, 8:31 PM
Reserved
Aug 5, 2026, 8:51 AM
Status
Analyzed
Published
Sep 3, 2026, 1:06 PM
Modified
Nov 24, 2026, 9:18 PM
Severity
Moderate
Public date
Sep 3, 2026, 11:40 AM