CVE-2024-45782

7.8 HIGH

📋 TL;DR

This vulnerability in the HFS filesystem driver allows attackers to trigger a heap-based buffer overflow by providing a specially crafted volume name. This could lead to arbitrary code execution in GRUB bootloader context, potentially bypassing secure boot protections. Systems using GRUB with HFS filesystem support are affected.

💻 Affected Systems

Products:
  • GRUB2
  • Red Hat Enterprise Linux
  • Fedora
  • CentOS Stream
  • Other Linux distributions using GRUB
Versions: GRUB2 versions prior to fixes in July 2024
Operating Systems: Linux distributions with GRUB bootloader
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects systems with HFS filesystem support in GRUB, typically not enabled by default on most Linux distributions.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete secure boot bypass allowing persistent malware installation, system compromise, and data integrity loss.

🟠

Likely Case

Local privilege escalation or boot process manipulation requiring physical or administrative access to the system.

🟢

If Mitigated

Limited impact if secure boot is properly configured and physical access controls are enforced.

🌐 Internet-Facing: LOW - Requires local access to boot process or administrative privileges.
🏢 Internal Only: MEDIUM - Could be exploited by malicious insiders or through compromised administrative accounts.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Requires ability to mount HFS volumes or modify boot configuration. No public exploits available as of knowledge cutoff.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: GRUB2 updates in July 2024 (specific versions vary by distribution)

Vendor Advisory: https://access.redhat.com/security/cve/CVE-2024-45782

Restart Required: Yes

Instructions:

1. Update GRUB2 package via package manager. 2. Regenerate GRUB configuration. 3. Reboot system to load patched GRUB.

🔧 Temporary Workarounds

Disable HFS support in GRUB

linux

Remove HFS filesystem module from GRUB to prevent exploitation

Edit /etc/default/grub and add GRUB_DISABLE_OS_PROBER=true
Run update-grub or grub2-mkconfig

🧯 If You Can't Patch

  • Restrict physical access to systems and secure boot media
  • Implement strict access controls for boot configuration and GRUB editing

🔍 How to Verify

Check if Vulnerable:

Check GRUB version: grub2-install --version or rpm -q grub2

Check Version:

grub2-install --version || rpm -q grub2 || dpkg -l | grep grub

Verify Fix Applied:

Verify GRUB package version matches patched release from vendor advisory

📡 Detection & Monitoring

Log Indicators:

  • GRUB error messages related to HFS mounting
  • Unexpected GRUB configuration changes

Network Indicators:

  • Not network exploitable - local attack only

SIEM Query:

Search for GRUB configuration file modifications or boot process anomalies

🔗 References

📤 Share & Export