OESA-2025-1291

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2025-1291
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2025-1291.json
JSON Data
https://api.osv.dev/v1/vulns/OESA-2025-1291
Upstream
Published
2025-03-14T15:47:04Z
Modified
2025-09-03T06:20:30.276064Z
Summary
grub2 security update
Details

GNU GRUB is a Multiboot boot loader. It was derived from GRUB, the GRand Unified Bootloader, which was originally designed and implemented by Erich Stefan Boleyn.

Security Fix(es):

A flaw was found in grub2 where the grubextcmddispatcher() function calls grubarglistalloc() to allocate memory for the grub's argument list. However, it fails to check in case the memory allocation fails. Once the allocation fails, a NULL point will be processed by the parseoption() function, leading grub to crash or, in some rare scenarios, corrupt the IVT data.(CVE-2024-45775)

When reading the language .mo file in grubmofileopen(), grub2 fails to verify an integer overflow when allocating its internal buffer. A crafted .mo file may lead the buffer size calculation to overflow, leading to out-of-bound reads and writes. This flaw allows an attacker to leak sensitive data or overwrite critical data, possibly circumventing secure boot protections.(CVE-2024-45776)

A flaw was found in grub2. The calculation of the translation buffer when reading a language .mo file in grubgettextgetstrfromposition() may overflow, leading to a Out-of-bound write. This issue can be leveraged by an attacker to overwrite grub2's sensitive heap data, eventually leading to the circumvention of secure boot protections.(CVE-2024-45777)

An integer overflow flaw was found in the BFS file system driver in grub2. When reading a file with an indirect extent map, grub2 fails to validate the number of extent entries to be read. A crafted or corrupted BFS filesystem may cause an integer overflow during the file reading, leading to a heap of bounds read. As a consequence, sensitive data may be leaked, or grub2 will crash.(CVE-2024-45779)

A flaw was found in grub2. When reading tar files, grub2 allocates an internal buffer for the file name. However, it fails to properly verify the allocation against possible integer overflows. It's possible to cause the allocation length to overflow with a crafted tar file, leading to a heap out-of-bounds write. This flaw eventually allows an attacker to circumvent secure boot protections.(CVE-2024-45780)

A flaw was found in grub2. When reading a symbolic link's name from a UFS filesystem, grub2 fails to validate the string length taken as an input. The lack of validation may lead to a heap out-of-bounds write, causing data integrity issues and eventually allowing an attacker to circumvent secure boot protections.(CVE-2024-45781)

A flaw was found in the HFS filesystem. When reading an HFS volume's name at grubfsmount(), the HFS filesystem driver performs a strcpy() using the user-provided volume name as input without properly validating the volume name's length. This issue may read to a heap-based out-of-bounds writer, impacting grub's sensitive data integrity and eventually leading to a secure boot protection bypass.(CVE-2024-45782)

A flaw was found in grub2. When failing to mount an HFS+ grub, the hfsplus filesystem driver doesn't properly set an ERRNO value. This issue may lead to a NULL pointer access.(CVE-2024-45783)

A flaw was found in grub2. When reading data from a squash4 filesystem, grub's squash4 fs module uses user-controlled parameters from the filesystem geometry to determine the internal buffer size, however, it improperly checks for integer overflows. A maliciously crafted filesystem may lead some of those buffer size calculations to overflow, causing it to perform a grubmalloc() operation with a smaller size than expected. As a result, the directread() will perform a heap based out-of-bounds write during data reading. This flaw may be leveraged to corrupt grub's internal critical data and may result in arbitrary code execution, by-passing secure boot protections.(CVE-2025-0678)

A flaw was found in grub2. When performing a symlink lookup from a reiserfs filesystem, grub's reiserfs fs module uses user-controlled parameters from the filesystem geometry to determine the internal buffer size, however, it improperly checks for integer overflows. A maliciouly crafted filesystem may lead some of those buffer size calculations to overflow, causing it to perform a grubmalloc() operation with a smaller size than expected. As a result, the grubreiserfsreadsymlink() will call grubreiserfsread_real() with a overflown length parameter, leading to a heap based out-of-bounds write during data reading. This flaw may be leveraged to corrupt grub's internal critical data and can result in arbitrary code execution, by-passing secure boot protections.(CVE-2025-0684)

A flaw was found in grub2. When reading data from a jfs filesystem, grub's jfs filesystem module uses user-controlled parameters from the filesystem geometry to determine the internal buffer size, however, it improperly checks for integer overflows. A maliciouly crafted filesystem may lead some of those buffer size calculations to overflow, causing it to perform a grubmalloc() operation with a smaller size than expected. As a result, the grubjfslookupsymlink() function will write past the internal buffer length during grubjfsread_file(). This issue can be leveraged to corrupt grub's internal critical data and may result in arbitrary code execution, by-passing secure boot protections.(CVE-2025-0685)

A flaw was found in grub2. When performing a symlink lookup from a romfs filesystem, grub's romfs filesystem module uses user-controlled parameters from the filesystem geometry to determine the internal buffer size, however, it improperly checks for integer overflows. A maliciously crafted filesystem may lead some of those buffer size calculations to overflow, causing it to perform a grubmalloc() operation with a smaller size than expected. As a result, the grubromfsreadsymlink() may cause out-of-bounds writes when the calling grubdiskread() function. This issue may be leveraged to corrupt grub's internal critical data and can result in arbitrary code execution by-passing secure boot protections.(CVE-2025-0686)

When reading data from disk, the grub's UDF filesystem module utilizes the user controlled data length metadata to allocate its internal buffers. In certain scenarios, while iterating through disk sectors, it assumes the read size from the disk is always smaller than the allocated buffer size which is not guaranteed. A crafted filesystem image may lead to a heap-based buffer overflow resulting in critical data to be corrupted, resulting in the risk of arbitrary code execution by-passing secure boot protections.(CVE-2025-0689)

The read command is used to read the keyboard input from the user, while reads it keeps the input length in a 32-bit integer value which is further used to reallocate the line buffer to accept the next character. During this process, with a line big enough it's possible to make this variable to overflow leading to a out-of-bounds write in the heap based buffer. This flaw may be leveraged to corrupt grub's internal critical data and secure boot bypass is not discarded as consequence.(CVE-2025-0690)

A flaw was found in grub2. Grub's dump command is not blocked when grub is in lockdown mode, which allows the user to read any memory information, and an attacker may leverage this in order to extract signatures, salts, and other sensitive information from the memory.(CVE-2025-1118)

When reading data from a hfs filesystem, grub's hfs filesystem module uses user-controlled parameters from the filesystem metadata to calculate the internal buffers size, however it misses to properly check for integer overflows. A maliciouly crafted filesystem may lead some of those buffer size calculation to overflow, causing it to perform a grubmalloc() operation with a smaller size than expected. As a result the hfsplusopencompressedreal() function will write past of the internal buffer length. This flaw may be leveraged to corrupt grub's internal critical data and may result in arbitrary code execution by-passing secure boot protections.(CVE-2025-1125)

Database specific
{
    "severity": "Medium"
}
References

Affected packages

openEuler:22.03-LTS-SP3 / grub2

Package

Name
grub2
Purl
pkg:rpm/openEuler/grub2&distro=openEuler-22.03-LTS-SP3

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.06-51.oe2203sp3

Ecosystem specific

{
    "noarch": [
        "grub2-common-2.06-51.oe2203sp3.noarch.rpm",
        "grub2-efi-aa64-modules-2.06-51.oe2203sp3.noarch.rpm",
        "grub2-efi-ia32-modules-2.06-51.oe2203sp3.noarch.rpm",
        "grub2-efi-x64-modules-2.06-51.oe2203sp3.noarch.rpm",
        "grub2-help-2.06-51.oe2203sp3.noarch.rpm",
        "grub2-pc-modules-2.06-51.oe2203sp3.noarch.rpm"
    ],
    "src": [
        "grub2-2.06-51.oe2203sp3.src.rpm"
    ],
    "x86_64": [
        "grub2-debuginfo-2.06-51.oe2203sp3.x86_64.rpm",
        "grub2-debugsource-2.06-51.oe2203sp3.x86_64.rpm",
        "grub2-efi-ia32-2.06-51.oe2203sp3.x86_64.rpm",
        "grub2-efi-ia32-cdboot-2.06-51.oe2203sp3.x86_64.rpm",
        "grub2-efi-x64-2.06-51.oe2203sp3.x86_64.rpm",
        "grub2-efi-x64-cdboot-2.06-51.oe2203sp3.x86_64.rpm",
        "grub2-pc-2.06-51.oe2203sp3.x86_64.rpm",
        "grub2-tools-2.06-51.oe2203sp3.x86_64.rpm",
        "grub2-tools-efi-2.06-51.oe2203sp3.x86_64.rpm",
        "grub2-tools-extra-2.06-51.oe2203sp3.x86_64.rpm",
        "grub2-tools-minimal-2.06-51.oe2203sp3.x86_64.rpm"
    ],
    "aarch64": [
        "grub2-debuginfo-2.06-51.oe2203sp3.aarch64.rpm",
        "grub2-debugsource-2.06-51.oe2203sp3.aarch64.rpm",
        "grub2-efi-aa64-2.06-51.oe2203sp3.aarch64.rpm",
        "grub2-efi-aa64-cdboot-2.06-51.oe2203sp3.aarch64.rpm",
        "grub2-tools-2.06-51.oe2203sp3.aarch64.rpm",
        "grub2-tools-extra-2.06-51.oe2203sp3.aarch64.rpm",
        "grub2-tools-minimal-2.06-51.oe2203sp3.aarch64.rpm"
    ]
}