CVEfocus › CVE database › CVE-2024-1048

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

CVSS 3.3 LowEPSS 0.3% (higher than 19% of CVEs)Published 2024-02-06Updated 2026-11-05Assigner: redhat

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.

CWE-459

What to do

Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

69Fixed
6Fix pending
31Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04grub2Not affected
vulnerable_code_not_present
Ubuntu 24.04grub2-signedNot affected
vulnerable_code_not_present
Ubuntu 24.04grub2-unsignedNot affected
vulnerable_code_not_present
Ubuntu 22.04grub2Not affected
vulnerable_code_not_present
Ubuntu 22.04grub2-signedNot affected
vulnerable_code_not_present
Ubuntu 22.04grub2-unsignedNot affected
vulnerable_code_not_present
Ubuntu 20.04grub2Not affected
vulnerable_code_not_present
Ubuntu 20.04grub2-signedNot affected
vulnerable_code_not_present
Ubuntu 20.04grub2-unsignedNot affected
vulnerable_code_not_present
Ubuntu 18.04grub2Fix pending
Ubuntu 18.04grub2-signedFix pending
Ubuntu 18.04grub2-unsignedFix pending
Ubuntu 16.04grub2Fix pending
Ubuntu 16.04grub2-signedFix pending
Ubuntu 16.04grub2-unsignedFix pending
Red Hat Enterprise Linux 9grub2Fixed1:2.06-77.el9RHSA-2024:2456
Red Hat Enterprise Linux 9grub2-commonFixed1:2.06-77.el9RHSA-2024:2456
Red Hat Enterprise Linux 9grub2-efi-aa64Fixed1:2.06-77.el9RHSA-2024:2456
Red Hat Enterprise Linux 9grub2-efi-aa64-cdbootFixed1:2.06-77.el9RHSA-2024:2456
Red Hat Enterprise Linux 9grub2-efi-aa64-modulesFixed1:2.06-77.el9RHSA-2024:2456
Red Hat Enterprise Linux 9grub2-efi-x64Fixed1:2.06-77.el9RHSA-2024:2456
Red Hat Enterprise Linux 9grub2-efi-x64-cdbootFixed1:2.06-77.el9RHSA-2024:2456
Red Hat Enterprise Linux 9grub2-efi-x64-modulesFixed1:2.06-77.el9RHSA-2024:2456
Red Hat Enterprise Linux 9grub2-pcFixed1:2.06-77.el9RHSA-2024:2456
Red Hat Enterprise Linux 9grub2-pc-modulesFixed1:2.06-77.el9RHSA-2024:2456
Red Hat Enterprise Linux 9grub2-ppc64leFixed1:2.06-77.el9RHSA-2024:2456
Red Hat Enterprise Linux 9grub2-ppc64le-modulesFixed1:2.06-77.el9RHSA-2024:2456
Red Hat Enterprise Linux 9grub2-toolsFixed1:2.06-77.el9RHSA-2024:2456
Red Hat Enterprise Linux 9grub2-tools-efiFixed1:2.06-77.el9RHSA-2024:2456
Red Hat Enterprise Linux 9grub2-tools-extraFixed1:2.06-77.el9RHSA-2024:2456
Red Hat Enterprise Linux 9grub2-tools-minimalFixed1:2.06-77.el9RHSA-2024:2456
Red Hat Enterprise Linux 8grub2Fixed1:2.02-156.el8RHSA-2024:3184
Red Hat Enterprise Linux 8grub2-commonFixed1:2.02-156.el8RHSA-2024:3184
Red Hat Enterprise Linux 8grub2-efi-aa64Fixed1:2.02-156.el8RHSA-2024:3184
Red Hat Enterprise Linux 8grub2-efi-aa64-cdbootFixed1:2.02-156.el8RHSA-2024:3184
Red Hat Enterprise Linux 8grub2-efi-aa64-modulesFixed1:2.02-156.el8RHSA-2024:3184
Red Hat Enterprise Linux 8grub2-efi-ia32Fixed1:2.02-156.el8RHSA-2024:3184
Red Hat Enterprise Linux 8grub2-efi-ia32-cdbootFixed1:2.02-156.el8RHSA-2024:3184
Red Hat Enterprise Linux 8grub2-efi-ia32-modulesFixed1:2.02-156.el8RHSA-2024:3184
Red Hat Enterprise Linux 8grub2-efi-x64Fixed1:2.02-156.el8RHSA-2024:3184
Red Hat Enterprise Linux 8grub2-efi-x64-cdbootFixed1:2.02-156.el8RHSA-2024:3184
Red Hat Enterprise Linux 8grub2-efi-x64-modulesFixed1:2.02-156.el8RHSA-2024:3184
Red Hat Enterprise Linux 8grub2-pcFixed1:2.02-156.el8RHSA-2024:3184
Red Hat Enterprise Linux 8grub2-pc-modulesFixed1:2.02-156.el8RHSA-2024:3184
Red Hat Enterprise Linux 8grub2-ppc64leFixed1:2.02-156.el8RHSA-2024:3184
Red Hat Enterprise Linux 8grub2-ppc64le-modulesFixed1:2.02-156.el8RHSA-2024:3184
Red Hat Enterprise Linux 8grub2-toolsFixed1:2.02-156.el8RHSA-2024:3184
Red Hat Enterprise Linux 8grub2-tools-efiFixed1:2.02-156.el8RHSA-2024:3184
Red Hat Enterprise Linux 8grub2-tools-extraFixed1:2.02-156.el8RHSA-2024:3184
Red Hat Enterprise Linux 8grub2-tools-minimalFixed1:2.02-156.el8RHSA-2024:3184
Red Hat Enterprise Linux 7grub2Not affected
Red Hat Enterprise Linux 7grub2-commonNot affected
Red Hat Enterprise Linux 7grub2-efiNot affected
Red Hat Enterprise Linux 7grub2-efi-aa64-modulesNot affected
Red Hat Enterprise Linux 7grub2-efi-ia32Not affected
Red Hat Enterprise Linux 7grub2-efi-ia32-cdbootNot affected
Red Hat Enterprise Linux 7grub2-efi-ia32-modulesNot affected
Red Hat Enterprise Linux 7grub2-efi-modulesNot affected
Red Hat Enterprise Linux 7grub2-efi-x64Not affected
Red Hat Enterprise Linux 7grub2-efi-x64-cdbootNot affected
Red Hat Enterprise Linux 7grub2-efi-x64-modulesNot affected
Red Hat Enterprise Linux 7grub2-pcNot affected
Red Hat Enterprise Linux 7grub2-pc-modulesNot affected
Red Hat Enterprise Linux 7grub2-ppc-modulesNot affected
Red Hat Enterprise Linux 7grub2-ppc64Not affected
Red Hat Enterprise Linux 7grub2-ppc64-modulesNot affected
Red Hat Enterprise Linux 7grub2-ppc64leNot affected
Red Hat Enterprise Linux 7grub2-ppc64le-modulesNot affected
Red Hat Enterprise Linux 7grub2-toolsNot affected
Red Hat Enterprise Linux 7grub2-tools-extraNot affected
Red Hat Enterprise Linux 7grub2-tools-minimalNot affected
Red Hat Enterprise Linux 6grubNot affected
AlmaLinux 9grub2-commonFixed1:2.06-77.el9.alma.1ALSA-2024:2456
AlmaLinux 9grub2-efi-aa64Fixed1:2.06-77.el9.alma.1ALSA-2024:2456
AlmaLinux 9grub2-efi-aa64-cdbootFixed1:2.06-77.el9.alma.1ALSA-2024:2456
AlmaLinux 9grub2-efi-aa64-modulesFixed1:2.06-77.el9.alma.1ALSA-2024:2456
AlmaLinux 9grub2-efi-x64Fixed1:2.06-77.el9.alma.1ALSA-2024:2456
AlmaLinux 9grub2-efi-x64-cdbootFixed1:2.06-77.el9.alma.1ALSA-2024:2456
AlmaLinux 9grub2-efi-x64-modulesFixed1:2.06-77.el9.alma.1ALSA-2024:2456
AlmaLinux 9grub2-pcFixed1:2.06-77.el9.alma.1ALSA-2024:2456
AlmaLinux 9grub2-pc-modulesFixed1:2.06-77.el9.alma.1ALSA-2024:2456
AlmaLinux 9grub2-ppc64leFixed1:2.06-77.el9.alma.1ALSA-2024:2456
AlmaLinux 9grub2-ppc64le-modulesFixed1:2.06-77.el9.alma.1ALSA-2024:2456
AlmaLinux 9grub2-toolsFixed1:2.06-77.el9.alma.1ALSA-2024:2456
AlmaLinux 9grub2-tools-efiFixed1:2.06-77.el9.alma.1ALSA-2024:2456
AlmaLinux 9grub2-tools-extraFixed1:2.06-77.el9.alma.1ALSA-2024:2456
AlmaLinux 9grub2-tools-minimalFixed1:2.06-77.el9.alma.1ALSA-2024:2456
AlmaLinux 8grub2-commonFixed1:2.02-156.el8.alma.1ALSA-2024:3184
AlmaLinux 8grub2-efi-aa64Fixed1:2.02-156.el8.alma.1ALSA-2024:3184
AlmaLinux 8grub2-efi-aa64-cdbootFixed1:2.02-156.el8.alma.1ALSA-2024:3184
AlmaLinux 8grub2-efi-aa64-modulesFixed1:2.02-156.el8.alma.1ALSA-2024:3184
AlmaLinux 8grub2-efi-ia32Fixed1:2.02-156.el8.alma.1ALSA-2024:3184
AlmaLinux 8grub2-efi-ia32-cdbootFixed1:2.02-156.el8.alma.1ALSA-2024:3184
AlmaLinux 8grub2-efi-ia32-modulesFixed1:2.02-156.el8.alma.1ALSA-2024:3184
AlmaLinux 8grub2-efi-x64Fixed1:2.02-156.el8.alma.1ALSA-2024:3184
AlmaLinux 8grub2-efi-x64-cdbootFixed1:2.02-156.el8.alma.1ALSA-2024:3184
AlmaLinux 8grub2-efi-x64-modulesFixed1:2.02-156.el8.alma.1ALSA-2024:3184
AlmaLinux 8grub2-pcFixed1:2.02-156.el8.alma.1ALSA-2024:3184
AlmaLinux 8grub2-pc-modulesFixed1:2.02-156.el8.alma.1ALSA-2024:3184
AlmaLinux 8grub2-ppc64leFixed1:2.02-156.el8.alma.1ALSA-2024:3184
AlmaLinux 8grub2-ppc64le-modulesFixed1:2.02-156.el8.alma.1ALSA-2024:3184
AlmaLinux 8grub2-toolsFixed1:2.02-156.el8.alma.1ALSA-2024:3184
AlmaLinux 8grub2-tools-efiFixed1:2.02-156.el8.alma.1ALSA-2024:3184
AlmaLinux 8grub2-tools-extraFixed1:2.02-156.el8.alma.1ALSA-2024:3184
AlmaLinux 8grub2-tools-minimalFixed1:2.02-156.el8.alma.1ALSA-2024:3184
Rocky Linux 8grub2Fixed1:2.02-156.el8.rocky.0.1RLSA-2024:3184

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.