CVE-2026-71221: Gfs2-utils: gfs2-utils: stack out-of-bounds write via unchecked height in savemeta

Published Aug 5, 2026
·
Updated

A flaw was found in gfs2-utils. In the savemeta function in savemeta.c, the height value from on-disk inode metadata controls a loop over a fixed-size stack array (10 elements) without bounds validation. An attacker can craft a GFS2 filesystem image with a height value exceeding 10 to write past the end of the array, corrupting adjacent stack memory. This is the same vulnerability class as the diheight OOB write in gfs2edit (extended.c) but in a different code path. The stack buffer overflow may allow arbitrary code execution when savemeta processes the crafted image. The Linux kernel GFS2 driver validates iheight against sdmaxheight in gfs2dinodein(), but the userspace gfs2-utils performs no equivalent validation.

Other sources

A stack out-of-bounds write vulnerability was found in gfs2-utils. In savemeta, the height value from on-disk inode metadata is used as a loop bound without bounds checking, causing a stack buffer overflow that may lead to arbitrary code execution when processing crafted GFS2 filesystem images.

NVD

Gfs2-utils: gfs2-utils: stack out-of-bounds write via unchecked height in savemeta

Microsoft

Affected Software

4 affected components
gfs2-utils
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0

Event History

Aug 5, 2026
Data Sourced
via Red Hat·08:39 AM
DescriptionSeverityAffected Software
Sep 3, 2026
CVE Published
via MITRE·12:23 PM
Data Sourced
via MITRE·12:23 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:06 PM
DescriptionSeverityWeaknessAffected Software
Sep 9, 2026
Data Sourced
via Microsoft·08:01 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the userspace gfs2-utils savemeta functionality to process GFS2 filesystem images are exposed. The Linux kernel GFS2 driver's validation of i_height does not provide equivalent protection for this userspace code path.

2

What must an attacker do to trigger the flaw?

An attacker needs to craft a GFS2 filesystem image containing inode metadata with a height value greater than 10, then have savemeta process that image. The unchecked value causes writes beyond a fixed 10-element stack array.

3

What is the likely impact if exploitation succeeds?

The out-of-bounds stack write can corrupt adjacent stack memory and may allow arbitrary code execution in the context of the process running savemeta.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203