CVE-2024-45780: Grub2: fs/tar: integer overflow causes heap oob write

Published Feb 14, 2025
·
Updated

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.

Other sources

Grub2: fs/tar: integer overflow causes heap oob write

Microsoft

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 head Out-of-bounds write, as consequence an attacker may leverage this to eventually circumvent secure boot protections.

Red Hat

Affected Software

6 affected componentsFixes available
GNU GRUB2
GNU GRUB2<=2.12
Microsoft cbl2 grub2 2.06-15<2.06-15
2.06-15
Microsoft azl3 grub2 2.06-25<2.06-25
2.06-25
Microsoft azl3 grub2 2.06-24<2.06-25
2.06-25
Microsoft cbl2 grub2 2.06-14<2.06-15
2.06-15

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.06-15
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.06-25

Event History

Feb 14, 2025
Data Sourced
via Red Hat·09:27 PM
DescriptionSeverityAffected Software
Mar 3, 2025
CVE Published
via MITRE·02:18 PM
Data Sourced
via MITRE·02:18 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeaknessAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·01:35 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·01:35 PM
Affected Software
Updated
via Microsoft·01:35 PM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-45780?

CVE-2024-45780 has been rated as high severity due to the risk of integer overflow leading to potential arbitrary code execution.

2

How do I fix CVE-2024-45780?

To fix CVE-2024-45780, update your GNU GRUB2 to the latest version that resolves this vulnerability.

3

What systems are affected by CVE-2024-45780?

CVE-2024-45780 affects systems running GNU GRUB2, specifically those using the tar file reading functionality.

4

What are the consequences of exploiting CVE-2024-45780?

Exploiting CVE-2024-45780 could lead to arbitrary code execution, potentially compromising the affected system.

5

Is there a workaround for CVE-2024-45780 if an update is not available?

Currently, there are no reliable workarounds for CVE-2024-45780; updating to a patched version is strongly recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203