<?xml version="1.0" encoding="utf-8"?>
  <?xml-stylesheet type="text/xsl" href="sa-render.xsl"?>
  <update from="huaweicloud.com" type="security" status="stable" version="1">
    <id>HCE3-SA-2025-0048</id>
    <title>An update for grub2 is now available for HCE 3.0</title>
    <severity>Important</severity>
    <release>HCE 3.0</release>
    <issued date="2025-10-09 06:38:14"/>
    <updated date="2025-10-09 06:38:14"/>
    <references>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2025-0689" id="CVE-2025-0689" title="CVE-2025-0689 Base Score: 6.4 Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2024-56737" id="CVE-2024-56737" title="CVE-2024-56737 Base Score: 8.8 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2025-1125" id="CVE-2025-1125" title="CVE-2025-1125 Base Score: 6.4 Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2025-0624" id="CVE-2025-0624" title="CVE-2025-0624 Base Score: 7.6 Vector: CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2024-45778" id="CVE-2024-45778" title="CVE-2024-45778 Base Score: 5.5 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2025-0677" id="CVE-2025-0677" title="CVE-2025-0677 Base Score: 6.4 Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2025-0684" id="CVE-2025-0684" title="CVE-2025-0684 Base Score: 6.4 Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2024-45780" id="CVE-2024-45780" title="CVE-2024-45780 Base Score: 6.7 Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2024-45783" id="CVE-2024-45783" title="CVE-2024-45783 Base Score: 4.4 Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2025-0690" id="CVE-2025-0690" title="CVE-2025-0690 Base Score: 6.1 Vector: CVSS:3.1/AV:P/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2024-45776" id="CVE-2024-45776" title="CVE-2024-45776 Base Score: 6.7 Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2024-45779" id="CVE-2024-45779" title="CVE-2024-45779 Base Score: 6.0 Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2025-0622" id="CVE-2025-0622" title="CVE-2025-0622 Base Score: 6.4 Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2024-49504" id="CVE-2024-49504" title="CVE-2024-49504 Base Score: 6.2 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2024-45782" id="CVE-2024-45782" title="CVE-2024-45782 Base Score: 7.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2025-0685" id="CVE-2025-0685" title="CVE-2025-0685 Base Score: 6.4 Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2025-0686" id="CVE-2025-0686" title="CVE-2025-0686 Base Score: 6.4 Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2024-45775" id="CVE-2024-45775" title="CVE-2024-45775 Base Score: 5.2 Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2024-45781" id="CVE-2024-45781" title="CVE-2024-45781 Base Score: 6.7 Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2024-56738" id="CVE-2024-56738" title="CVE-2024-56738 Base Score: 5.3 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2024-45777" id="CVE-2024-45777" title="CVE-2024-45777 Base Score: 6.7 Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H" type="cve"/>
    </references>
    <description>Security Fix(es):

When reading data from disk, the grub_x27;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)

GNU GRUB (aka GRUB2) through 2.12 has a heap-based buffer overflow in fs/hfs.c via crafted sblock data in an HFS filesystem. (CVE-2024-56737)

When reading data from a hfs filesystem, grub_x27;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 grub_malloc() operation with a smaller size than expected. As a result the hfsplus_open_compressed_real() function will write past of the internal buffer length. This flaw may be leveraged to corrupt grub_x27;s internal critical data and may result in arbitrary code execution by-passing secure boot protections. (CVE-2025-1125)

A flaw was found in grub2. During the network boot process, when trying to search for the configuration file, grub copies data from a user controlled environment variable into an internal buffer using the grub_strcpy() function. During this step, it fails to consider the environment variable length when allocating the internal buffer, resulting in an out-of-bounds write. If correctly exploited, this issue may result in remote code execution through the same network segment grub is searching for the boot information, which can be used to by-pass secure boot protections. (CVE-2025-0624)

A stack overflow flaw was found when reading a BFS file system. A crafted BFS filesystem may lead to an uncontrolled loop, causing grub2 to crash. (CVE-2024-45778)

A flaw was found in grub2. When performing a symlink lookup, the grub_x27;s UFS module checks the inode_x27;s data size to allocate the internal buffer to read the file content, however, it fails to check if the symlink data size has overflown. When this occurs, grub_malloc() may be called with a smaller value than needed. When further reading the data from the disk into the buffer, the grub_ufs_lookup_symlink() function will write past the end of the allocated size. An attack can leverage this by crafting a malicious filesystem, and as a result, it will corrupt data stored in the heap, allowing for arbitrary code execution used to by-pass secure boot mechanisms. (CVE-2025-0677)

A flaw was found in grub2. When performing a symlink lookup from a reiserfs filesystem, grub_x27;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 grub_malloc() operation with a smaller size than expected. As a result, the grub_reiserfs_read_symlink() will call grub_reiserfs_read_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_x27;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 tar files, grub2 allocates an internal buffer for the file name. However, it fails to properly verify the allocation against possible integer overflows. It_x27;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 failing to mount an HFS+ grub, the hfsplus filesystem driver doesn_x27;t properly set an ERRNO value. This issue may lead to a NULL pointer access. (CVE-2024-45783)

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_x27;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_x27;s internal critical data and secure boot bypass is not discarded as consequence. (CVE-2025-0690)

When reading the language .mo file in grub_mofile_open(), 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)

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 command/gpg. In some scenarios, hooks created by loaded modules are not removed when the related module is unloaded. This flaw allows an attacker to force grub2 to call the hooks once the module that registered it was unloaded, leading to a use-after-free vulnerability. If correctly exploited, this vulnerability may result in arbitrary code execution, eventually allowing the attacker to bypass secure boot protections. (CVE-2025-0622)

grub2 allowed attackers with access to the grub shell to access files on the encrypted disks. (CVE-2024-49504)

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

A flaw was found in grub2. When reading data from a jfs filesystem, grub_x27;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 grub_malloc() operation with a smaller size than expected. As a result, the grub_jfs_lookup_symlink() function will write past the internal buffer length during grub_jfs_read_file(). This issue can be leveraged to corrupt grub_x27;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_x27;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 grub_malloc() operation with a smaller size than expected. As a result, the grub_romfs_read_symlink() may cause out-of-bounds writes when the calling grub_disk_read() function. This issue may be leveraged to corrupt grub_x27;s internal critical data and can result in arbitrary code execution by-passing secure boot protections. (CVE-2025-0686)

A flaw was found in grub2 where the grub_extcmd_dispatcher() function calls grub_arg_list_alloc() to allocate memory for the grub_x27;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 parse_option() function, leading grub to crash or, in some rare scenarios, corrupt the IVT data. (CVE-2024-45775)

A flaw was found in grub2. When reading a symbolic link_x27;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)

GNU GRUB (aka GRUB2) through 2.12 does not use a constant-time algorithm for grub_crypto_memcmp and thus allows side-channel attacks. (CVE-2024-56738)

A flaw was found in grub2. The calculation of the translation buffer when reading a language .mo file in grub_gettext_getstr_from_position() may overflow, leading to a Out-of-bound write. This issue can be leveraged by an attacker to overwrite grub2_x27;s sensitive heap data, eventually leading to the circumvention of secure boot protections. (CVE-2024-45777)
</description>
    <pkglist>
      <collection short="HCE 3.0" package="grub2">
        <name>HCE 3.0</name>
        <package arch="noarch" name="grub2-common" version="2.12" release="33.r6.hce3">
          <filename>grub2-common-2.12-33.r6.hce3.noarch.rpm</filename>
        </package>
        <package arch="noarch" name="grub2-efi-ia32-modules" version="2.12" release="33.r6.hce3">
          <filename>grub2-efi-ia32-modules-2.12-33.r6.hce3.noarch.rpm</filename>
        </package>
        <package arch="x86_64" name="grub2-efi-x64" version="2.12" release="33.r6.hce3">
          <filename>grub2-efi-x64-2.12-33.r6.hce3.x86_64.rpm</filename>
        </package>
        <package arch="noarch" name="grub2-efi-x64-modules" version="2.12" release="33.r6.hce3">
          <filename>grub2-efi-x64-modules-2.12-33.r6.hce3.noarch.rpm</filename>
        </package>
        <package arch="noarch" name="grub2-help" version="2.12" release="33.r6.hce3">
          <filename>grub2-help-2.12-33.r6.hce3.noarch.rpm</filename>
        </package>
        <package arch="x86_64" name="grub2-pc" version="2.12" release="33.r6.hce3">
          <filename>grub2-pc-2.12-33.r6.hce3.x86_64.rpm</filename>
        </package>
        <package arch="noarch" name="grub2-pc-modules" version="2.12" release="33.r6.hce3">
          <filename>grub2-pc-modules-2.12-33.r6.hce3.noarch.rpm</filename>
        </package>
        <package arch="x86_64" name="grub2-tools" version="2.12" release="33.r6.hce3">
          <filename>grub2-tools-2.12-33.r6.hce3.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="grub2-tools-efi" version="2.12" release="33.r6.hce3">
          <filename>grub2-tools-efi-2.12-33.r6.hce3.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="grub2-tools-extra" version="2.12" release="33.r6.hce3">
          <filename>grub2-tools-extra-2.12-33.r6.hce3.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="grub2-tools-minimal" version="2.12" release="33.r6.hce3">
          <filename>grub2-tools-minimal-2.12-33.r6.hce3.x86_64.rpm</filename>
        </package>
        <package arch="aarch64" name="grub2-efi-aa64" version="2.12" release="33.r6.hce3">
          <filename>grub2-efi-aa64-2.12-33.r6.hce3.aarch64.rpm</filename>
        </package>
        <package arch="noarch" name="grub2-efi-aa64-modules" version="2.12" release="33.r6.hce3">
          <filename>grub2-efi-aa64-modules-2.12-33.r6.hce3.noarch.rpm</filename>
        </package>
        <package arch="aarch64" name="grub2-tools" version="2.12" release="33.r6.hce3">
          <filename>grub2-tools-2.12-33.r6.hce3.aarch64.rpm</filename>
        </package>
        <package arch="aarch64" name="grub2-tools-extra" version="2.12" release="33.r6.hce3">
          <filename>grub2-tools-extra-2.12-33.r6.hce3.aarch64.rpm</filename>
        </package>
        <package arch="aarch64" name="grub2-tools-minimal" version="2.12" release="33.r6.hce3">
          <filename>grub2-tools-minimal-2.12-33.r6.hce3.aarch64.rpm</filename>
        </package>
      </collection>
    </pkglist>
  </update>
