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 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.
Other sources
Grub2: fs/hfs: strcpy() using the volume name (fs/hfs.c:382)
— Microsoft
When reading a HFS volume's name at grubfsmount(), the HFS filesystem driver performs a strcpy() using the user provided volume name as input without proper validating the volume name's length. This may read to a heap based Out-of-bounds write, impacting on grub's sensitive data integrity and eventually leading to secure boot protection bypass.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.06-25 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.06-15
Event History
Frequently Asked Questions
What is the severity of CVE-2024-45782?
CVE-2024-45782 is classified as a high severity vulnerability due to its potential to lead to heap-based memory corruption.
How do I fix CVE-2024-45782?
To fix CVE-2024-45782, update your GNU Grub2 software to the latest version that addresses this vulnerability.
What systems are affected by CVE-2024-45782?
CVE-2024-45782 primarily affects systems running the GNU Grub2 filesystem driver for HFS.
What type of vulnerability is CVE-2024-45782?
CVE-2024-45782 is a heap-based buffer overflow vulnerability resulting from improper validation of user inputs.
Can CVE-2024-45782 be exploited remotely?
Yes, CVE-2024-45782 can potentially be exploited remotely if an attacker can manipulate the volume names passed to the HFS filesystem driver.