A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-0684

CVE-2025-0684: GNU Grub2 RCE Vulnerability

CVE-2025-0684 is a remote code execution flaw in GNU Grub2 affecting reiserfs filesystem handling. Attackers can exploit integer overflows to bypass secure boot. This article covers technical details, impact, and mitigation.

Updated: May 15, 2026

CVE-2025-0684 Overview

CVE-2025-0684 is an integer overflow vulnerability in GNU GRUB2's ReiserFS filesystem module. The flaw resides in grub_reiserfs_read_symlink(), which uses attacker-controlled filesystem geometry parameters to size an internal buffer. Improper overflow checks cause grub_malloc() to allocate a buffer smaller than expected. The subsequent call to grub_reiserfs_read_real() writes attacker data past the allocation boundary, producing a heap-based out-of-bounds write [CWE-787]. An attacker who controls a ReiserFS image can corrupt GRUB's internal data structures, achieve arbitrary code execution in the bootloader, and bypass UEFI Secure Boot.

Critical Impact

Successful exploitation enables pre-boot arbitrary code execution and circumvention of Secure Boot integrity guarantees on affected systems.

Affected Products

  • GNU GRUB2 (all versions prior to the upstream fix)
  • Linux distributions shipping the ReiserFS GRUB2 module, including Red Hat Enterprise Linux
  • Systems with UEFI Secure Boot relying on GRUB2 as the shim-trusted bootloader

Discovery Timeline

  • 2025-03-03 - CVE-2025-0684 published to the National Vulnerability Database
  • 2025-07-28 - Last updated in the NVD database

Technical Details for CVE-2025-0684

Vulnerability Analysis

GRUB2 includes a ReiserFS filesystem driver that parses on-disk structures to resolve files and symbolic links during boot. When GRUB2 follows a symlink on a ReiserFS volume, it computes the buffer size needed to hold the link target. The size calculation combines several user-controlled values drawn from the filesystem geometry, including block size and item length fields stored in the image itself.

The arithmetic that produces the allocation size lacks proper overflow validation. A crafted ReiserFS image can supply values whose product wraps around the integer type, yielding a small allocation size. GRUB then calls grub_malloc() with the truncated value and passes the original, untruncated length to grub_reiserfs_read_real() when reading symlink data. The read routine writes the full expected number of bytes into the undersized heap chunk, corrupting adjacent allocator metadata and heap objects.

Because GRUB2 runs in the pre-boot environment with full platform privileges, heap corruption translates directly into control over the bootloader. An attacker who pivots execution can patch Secure Boot verification logic, load unsigned kernels, and persist below the operating system.

Root Cause

The root cause is a missing integer overflow check on user-influenced size arithmetic in the ReiserFS module. The function trusts on-disk geometry fields when sizing the symlink buffer, violating safe-integer practices for parsers operating on untrusted data.

Attack Vector

Exploitation requires the attacker to present a malicious ReiserFS filesystem to GRUB2 at boot time. Realistic delivery paths include attached USB media, attacker-controlled removable drives, dual-boot configurations, or scenarios where an attacker has temporary local access with high privileges to write a crafted image. The CVSS vector reflects local attack surface, high attack complexity, and high privileges required, but successful exploitation yields full confidentiality, integrity, and availability impact through Secure Boot bypass.

No public proof-of-concept code is available. Technical details are described in the Red Hat CVE-2025-0684 Advisory and Red Hat Bugzilla #2346119.

Detection Methods for CVE-2025-0684

Indicators of Compromise

  • Unexpected ReiserFS filesystem images present on boot media, removable drives, or partitions not associated with legitimate system use.
  • Unsigned or unexpected kernels and initramfs images loaded by GRUB2 after a reboot involving external media.
  • Modifications to /boot, EFI System Partition contents, or GRUB2 configuration files that do not correspond to authorized package updates.
  • Secure Boot measurement anomalies recorded in TPM PCR values compared against known-good baselines.

Detection Strategies

  • Inventory installed GRUB2 packages across the fleet and compare versions against vendor security advisories for CVE-2025-0684.
  • Enable and audit UEFI Secure Boot logs and TPM event logs for unexpected bootloader or kernel measurements.
  • Use file integrity monitoring on /boot and the EFI System Partition to detect unauthorized changes to bootloader components.
  • Detect the presence of the reiserfs.mod GRUB2 module on systems that do not legitimately use ReiserFS.

Monitoring Recommendations

  • Forward boot integrity events, package manager updates, and removable media mount events to a centralized log platform for correlation.
  • Alert on attachment of unknown block devices containing ReiserFS signatures, particularly on servers and workstations handling sensitive data.
  • Track distribution security feeds for GRUB2 and shim updates and verify deployment within defined patch windows.

How to Mitigate CVE-2025-0684

Immediate Actions Required

  • Apply vendor-supplied GRUB2 updates as soon as they are available from your Linux distribution. Refer to the Red Hat CVE-2025-0684 Advisory for Red Hat-specific package versions.
  • Update the Secure Boot DBX revocation list (fwupdmgr update or distribution-equivalent tooling) once revocation entries for vulnerable GRUB2 builds are published.
  • Restrict physical and console access to systems where Secure Boot is part of the threat model.
  • Disable booting from removable media in firmware settings on systems that do not require it.

Patch Information

The vulnerability is addressed in upstream GRUB2 by adding overflow-safe size arithmetic in the ReiserFS symlink read path. Linux distributions are publishing rebuilt GRUB2 and shim packages; track the Red Hat Bugzilla #2346119 entry and equivalent advisories from other distributions for fix availability and shipped versions.

Workarounds

  • Remove or blacklist the GRUB2 ReiserFS module (reiserfs.mod) on systems that do not require ReiserFS support, reducing the parser attack surface.
  • Enforce firmware-level boot order restrictions and disable USB boot to limit exposure to malicious external filesystems.
  • Set a GRUB2 password to prevent unauthorized modification of boot entries and module loading at the boot menu.
  • Where supported, enable measured boot with remote attestation so that compromised bootloaders fail attestation before sensitive workloads start.
bash
# Example: prevent loading of the ReiserFS GRUB2 module
# Remove the module file from the GRUB2 install directory
sudo rm -f /boot/grub2/i386-pc/reiserfs.mod
sudo rm -f /boot/efi/EFI/*/x86_64-efi/reiserfs.mod

# Rebuild the GRUB2 configuration after applying vendor patches
sudo grub2-mkconfig -o /boot/grub2/grub.cfg

# Verify installed GRUB2 package version against the vendor advisory
rpm -q grub2-common grub2-efi-x64 grub2-pc

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

  • SeverityMEDIUM

  • CVSS Score6.4

  • EPSS Probability0.03%

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

  • Red Hat Bugzilla #2346119
  • Related CVEs
  • CVE-2025-1125: GNU GRUB2 HFS Filesystem RCE Vulnerability

  • CVE-2023-4692: GNU GRUB2 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 Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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