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

Low 3.3 Published Updated

Local attackers can exhaust filesystem inodes or blocks by repeatedly killing the grub2-set-bootflag utility, causing a denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-1048?

CVE-2024-1048 is a low-severity denial of service vulnerability in Fedoraproject Fedora, published on 6 Feb 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-459

Which versions are affected by CVE-2024-1048?

It affects 3 products.

Products include Fedoraproject Fedora, Gnu Grub2, Redhat Enterprise Linux.

How do I fix CVE-2024-1048?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-1048 being exploited?

There is no known exploitation of CVE-2024-1048 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as GHSA-3qrv-r8v8-pmw7, OESA-2024-1253.

Is CVE-2024-1048 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free