The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-0678

CVE-2025-0678: GNU GRUB2 RCE Vulnerability

CVE-2025-0678 is a remote code execution flaw in GNU GRUB2 that allows attackers to bypass Secure Boot protections through malicious squash4 filesystems. This post explains its impact, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-0678 Overview

CVE-2025-0678 is an integer overflow vulnerability in GRUB2's squash4 filesystem module that can lead to heap-based out-of-bounds write and arbitrary code execution. When reading data from a squash4 filesystem, GRUB2 uses user-controlled parameters from the filesystem geometry to determine internal buffer sizes. Due to improper integer overflow checks, a maliciously crafted filesystem can cause buffer size calculations to overflow, resulting in a smaller-than-expected memory allocation via grub_malloc(). Subsequently, the direct_read() function performs a heap-based out-of-bounds write during data reading operations. This vulnerability is particularly dangerous as it can be leveraged to corrupt GRUB's internal critical data structures and potentially bypass Secure Boot protections.

Critical Impact

Successful exploitation enables arbitrary code execution at the bootloader level, potentially bypassing Secure Boot protections and establishing persistent, pre-OS control over affected systems.

Affected Products

  • GNU GRUB2 (all versions)
  • Red Hat Enterprise Linux 7.0, 8.0, and 9.0
  • Red Hat OpenShift Container Platform 4.0

Discovery Timeline

  • 2025-03-03 - CVE-2025-0678 published to NVD
  • 2025-03-25 - Last updated in NVD database

Technical Details for CVE-2025-0678

Vulnerability Analysis

This vulnerability resides in GRUB2's squash4 filesystem driver, which handles the reading of SquashFS compressed filesystems during the boot process. The core issue stems from improper validation of integer arithmetic when calculating buffer sizes based on filesystem geometry parameters.

When GRUB2 mounts a squash4 filesystem, it reads metadata including block sizes and other geometry information. These values are directly used in arithmetic operations to determine how much memory should be allocated for internal buffers. The vulnerability manifests because the code fails to properly validate whether these calculations result in integer overflows.

The CWE-190 (Integer Overflow or Wraparound) classification accurately describes this vulnerability. When filesystem geometry parameters are crafted with specific values, the multiplication or addition operations used to calculate buffer sizes can wrap around, producing a small result instead of the expected large value. The subsequent memory allocation is therefore insufficient for the actual data being read.

Root Cause

The root cause is the absence of proper integer overflow checks in the squash4 filesystem module's buffer size calculations. The code trusts user-controlled filesystem geometry values and uses them directly in arithmetic operations without validating that the results stay within expected bounds. This allows an attacker to craft a malicious filesystem where the geometry parameters cause integer wraparound during buffer size computation.

Attack Vector

Exploitation requires local access with the ability to present a maliciously crafted squash4 filesystem image to GRUB2 during the boot process. An attacker would need to:

  1. Create a specially crafted squash4 filesystem with geometry parameters designed to trigger integer overflow
  2. Position this filesystem where GRUB2 will attempt to read it during boot (e.g., on a bootable USB drive, network boot image, or by modifying existing boot media)
  3. When GRUB2 attempts to read from this filesystem, the integer overflow occurs during buffer allocation
  4. The subsequent direct_read() operation writes beyond the allocated heap buffer
  5. The heap corruption can be leveraged to overwrite critical GRUB internal structures, potentially achieving arbitrary code execution

The attack is particularly significant because code execution at the bootloader level occurs before the operating system loads, potentially allowing bypass of Secure Boot and other security mechanisms.

Detection Methods for CVE-2025-0678

Indicators of Compromise

  • Unexpected or modified squash4 filesystem images present on boot media or network boot infrastructure
  • Signs of bootloader tampering or unexpected GRUB2 configuration changes
  • System boot failures or crashes during the early boot phase when reading squash4 filesystems
  • Secure Boot validation failures where previously trusted systems fail attestation

Detection Strategies

  • Implement integrity monitoring for boot media and GRUB2 configurations using cryptographic hashing
  • Enable and monitor Secure Boot status and UEFI event logs for signs of bootloader compromise
  • Use hardware-based attestation mechanisms (TPM) to detect unauthorized bootloader modifications
  • Monitor for unauthorized physical access to systems or boot infrastructure

Monitoring Recommendations

  • Regularly verify GRUB2 binary integrity against known-good hashes from your distribution vendor
  • Implement boot-time logging and alerting for unexpected filesystem mount operations
  • Review network boot infrastructure for unauthorized squash4 filesystem images
  • Deploy endpoint protection with pre-boot integrity verification capabilities

How to Mitigate CVE-2025-0678

Immediate Actions Required

  • Apply vendor-provided GRUB2 security updates as soon as they become available from your distribution
  • Review and restrict physical access to systems, particularly those with Secure Boot requirements
  • Audit boot media and network boot infrastructure for unauthorized or unexpected squash4 filesystems
  • Consider temporarily disabling boot from removable media on high-security systems until patches are applied

Patch Information

Affected organizations should monitor vendor security advisories for patch availability. Red Hat has acknowledged this vulnerability and tracking information is available through their security portal. For the latest patch status and remediation guidance:

  • Red Hat CVE-2025-0678 Advisory
  • Red Hat Bug Report #2346118

Organizations using Red Hat Enterprise Linux 7.0, 8.0, 9.0, or OpenShift Container Platform 4.0 should prioritize tracking these advisories for specific package versions containing the fix.

Workarounds

  • Restrict boot to trusted, signed boot media only by configuring UEFI/BIOS settings appropriately
  • Enable and enforce Secure Boot to help limit the impact of bootloader-level exploits
  • Disable network boot (PXE) on systems where it is not required
  • Implement physical security controls to prevent unauthorized access to boot media and BIOS settings
bash
# Verify GRUB2 package version on Red Hat-based systems
rpm -qa | grep grub2

# Check current Secure Boot status
mokutil --sb-state

# List installed GRUB2 modules to identify squash4 usage
ls -la /boot/grub2/*/squash4.mod 2>/dev/null || echo "squash4 module not found"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGnu Grub2

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-190
  • Technical References
  • Red Hat CVE-2025-0678 Advisory

  • Red Hat Bug Report #2346118
  • Related CVEs
  • CVE-2025-1125: GNU GRUB2 HFS Filesystem RCE Vulnerability

  • CVE-2023-4692: GNU GRUB2 NTFS RCE Vulnerability

  • CVE-2025-0686: GNU GRUB2 RCE Vulnerability

  • CVE-2025-0685: GNU GRUB2 RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English