VYPR
Unrated severityNVD Advisory· Published Feb 6, 2024· Updated Nov 20, 2025

Grub2: grub2-set-bootflag can be abused by local (pseudo-)users

CVE-2024-1048

Description

A race condition in grub2-set-bootflag allows temporary files to accumulate, potentially filling the filesystem and causing denial of service.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

A race condition in grub2-set-bootflag allows temporary files to accumulate, potentially filling the filesystem and causing denial of service.

Vulnerability

A flaw in the grub2-set-bootflag utility, part of the grub2 package, was introduced when fixing CVE-2019-14865. The program creates a temporary file with new grubenv content and renames it to the original grubenv file. If the process is killed before the rename, the temporary file remains. Affected versions include grub2 on Red Hat Enterprise Linux 9 and Fedora systems. The issue is documented in references [1], [2], [3], and [4].

Exploitation

An attacker with local access can repeatedly invoke the SUID grub2-set-bootflag binary and use signals (e.g., SIGKILL) to kill it during the window between temporary file creation and rename. Each invocation leaves an orphaned temporary file in /boot. Repeated exploitation consumes available inodes and disk blocks, eventually causing file creation to fail for other processes [3][4].

Impact

Successful exploitation results in denial of service due to filesystem exhaustion. The /boot partition becomes full, preventing system updates, kernel installations, or any operation requiring file creation in that partition. No privilege escalation or data confidentiality is compromised [3].

Mitigation

Red Hat has released updated packages to address this issue. Fixed versions are included in RHSA-2024:2456 and RHSA-2024:3184 [1][2]. Users should update grub2 to the latest patched version. For systems that cannot be immediately updated, monitoring /boot free inodes and blocks can alert administrators to potential abuse. No workaround completely prevents the issue [3].

AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

20

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

5

News mentions

0

No linked articles in our index yet.