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

Summary

CVECVE-2024-1048
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2024-02-06 18:15:59 UTC
Updated2026-11-05 12:17:46 UTC
DescriptionA 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.

Risk And Classification

Primary CVSS: v3.1 3.3 LOW from [email protected]

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

Problem Types: CWE-459 | CWE-459 Incomplete Cleanup


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary3.3LOWCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
3.1[email protected]Secondary3.3LOWCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
3.1CNACVSS3.3LOWCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Fedoraproject Fedora 40 All All All
Application Gnu Grub2 - All All All
Operating System Redhat Enterprise Linux 8.0 All All All
Operating System Redhat Enterprise Linux 9.0 All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 1:2.02-156.el8 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 1:2.06-77.el9 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 6 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 7 Not specified Not specified

References

ReferenceSourceLinkTags
access.redhat.com/errata/RHSA-2024:3184 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
www.openwall.com/lists/oss-security/2024/02/06/3 af854a3a-2127-422b-91ae-364da2661108 www.openwall.com Mailing List, Third Party Advisory
lists.fedoraproject.org/archives/list/[email protected]/messag... af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
security.netapp.com/advisory/ntap-20240223-0007 af854a3a-2127-422b-91ae-364da2661108 security.netapp.com
lists.fedoraproject.org/archives/list/[email protected]/messag... af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
access.redhat.com/errata/RHSA-2024:2456 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
access.redhat.com/security/cve/CVE-2024-1048 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
bugzilla.redhat.com/show_bug.cgi af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com Issue Tracking, Vendor Advisory
www.openwall.com/lists/oss-security/2024/02/06/3 af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Red Hat would like to thank Solar Designer (CIQ/Rocky Linux) for reporting this issue. (en)

Additional Advisory Data

SourceTimeEvent
CNA2024-01-03T00:00:00.000ZReported to Red Hat.
CNA2024-02-06T00:00:00.000ZMade public.

Legacy QID Mappings

  • 285339 Fedora Security Update for grub2 (FEDORA-2024-097eb22907)
  • 285378 Fedora Security Update for grub2 (FEDORA-2024-c1fabee30e)
  • 357289 Amazon Linux Security Advisory for grub2 : ALAS2023-2024-546
  • 357329 Amazon Linux Security Advisory for grub2 : ALAS2-2024-2499

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report