CVE-2024-45782 — Grub2: fs/hfs: strcpy() using the volume name (fs/hfs.c:382)

A flaw was found in the HFS filesystem. When reading an HFS volume'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'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.

Published

CVSS 3.1 score 7.8 out of 10.

Reported versions and fixes

  • Source-reported product
  • Source-reported product
  • Source-reported product
  • Source-reported product
  • Source-reported product
  • Source-reported product
  • Source-reported product — Reported version range cpe:2.3:a:gnu:grub2:*:*:*:*:*:*:*:*
  • Source-reported product — Reported version range cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:*
  • Source-reported product — Reported version range cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
  • Source-reported product — Reported version range cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
  • Source-reported product — Reported version range cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*

Source evidence