---
id: CVE-2024-1048
title: 'Grub2: grub2-set-bootflag can be abused by local (pseudo-)users'
summary: >-
  A flaw was found in the grub2-set-bootflag utility of grub2. After the fix of
  CVE-2019-14865, grub2-set-bootflag will create a temporary file with the new
  grubenv content and rename it to the original grubenv file. If the program is
  kill…
severity: low
cvss: 3.3
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L'
cvssSource: cna
cwe:
  - CWE-459
vendor: Red Hat
product: grub2
affected:
  - grub2
  - grub2 (all versions)
  - grub2 (all versions)
  - grub
  - grub2
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-02-26T20:13:20.423927Z'
published: '2024-02-06'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T11:40:00.674Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2024-1048'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2024:2456'
    label: 'RHSA-2024:2456'
  - url: 'https://access.redhat.com/errata/RHSA-2024:3184'
    label: 'RHSA-2024:3184'
  - url: 'https://access.redhat.com/security/cve/CVE-2024-1048'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2256827'
    label: RHBZ#2256827
  - url: 'https://www.openwall.com/lists/oss-security/2024/02/06/3'
tags:
  - cve.org
epss: 0.00269
epssPercentile: 0.19237
ingestedAt: '2026-11-05T21:36:00.821Z'
---

## Overview

A flaw was found in the grub2-set-bootflag utility of grub2. After the fix of CVE-2019-14865, grub2-set-bootflag will create a temporary file with the new grubenv content and rename it to the original grubenv file. If the program is killed before the rename operation, the temporary file will not be removed and may fill the filesystem when invoked multiple times, resulting in a filesystem out of free inodes or blocks.

## Affected

- `grub2`
- `grub2 (all versions)`
- `grub2 (all versions)`
- `grub`
- `grub2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
