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-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 corrupt memory and bypass Secure Boot. This article covers technical details.

Updated: January 22, 2026

CVE-2025-0684 Overview

A heap-based out-of-bounds write vulnerability exists in GNU GRUB2's ReiserFS filesystem module. When performing a symlink lookup from a ReiserFS filesystem, the grub_reiserfs_read_symlink() function uses user-controlled parameters from the filesystem geometry to determine internal buffer sizes. The module improperly checks for integer overflows in these calculations, allowing a maliciously crafted filesystem to cause buffer size calculations to overflow. This results in grub_malloc() allocating a smaller buffer than expected, which is subsequently overwritten when grub_reiserfs_read_real() is called with an overflown length parameter, leading to heap corruption.

Critical Impact

This vulnerability can be leveraged to corrupt GRUB's internal critical data structures, potentially enabling arbitrary code execution and bypassing Secure Boot protections. Systems booting from untrusted or compromised storage media are at risk.

Affected Products

  • GNU GRUB2 (all versions with ReiserFS support)
  • Linux distributions using GRUB2 bootloader with ReiserFS filesystem support
  • Systems configured for Secure Boot with GRUB2

Discovery Timeline

  • 2025-03-03 - CVE-2025-0684 published to NVD
  • 2025-07-28 - Last updated in NVD database

Technical Details for CVE-2025-0684

Vulnerability Analysis

The vulnerability resides in GRUB2's ReiserFS filesystem driver, specifically in the symlink resolution code path. The flaw stems from improper integer overflow validation when calculating buffer sizes based on filesystem geometry parameters. An attacker who can craft a malicious ReiserFS filesystem image can manipulate the geometry values to trigger an integer overflow during the buffer size calculation.

When the overflow occurs, grub_malloc() allocates a buffer significantly smaller than what the subsequent read operation expects. The grub_reiserfs_read_real() function then writes data beyond the allocated buffer boundaries, corrupting adjacent heap memory. This heap-based out-of-bounds write (CWE-787) can be exploited to overwrite critical GRUB internal data structures, potentially allowing arbitrary code execution during the boot process.

The attack requires local access to modify the boot media or compromise an existing ReiserFS partition. Given GRUB2's role as a bootloader operating before the operating system's security mechanisms are loaded, successful exploitation could bypass Secure Boot protections entirely.

Root Cause

The root cause is an integer overflow vulnerability (CWE-787) in the buffer size calculation within the ReiserFS module. The code fails to properly validate that arithmetic operations on user-controlled filesystem geometry values do not wrap around due to integer overflow. When these values are sourced from a maliciously crafted filesystem, the attacker can engineer specific values that cause the multiplication or addition operations to overflow, resulting in a smaller-than-expected buffer allocation.

Attack Vector

Exploitation requires local access to the system with the ability to either:

  1. Modify the boot media (USB drive, hard disk) to contain a malicious ReiserFS filesystem
  2. Mount a crafted ReiserFS image that GRUB2 will attempt to read during boot
  3. Compromise an existing ReiserFS partition with specially crafted filesystem geometry

The attack vector is local, requiring high privileges to modify boot media or filesystem structures. Once a malicious filesystem is in place, the vulnerability is triggered automatically when GRUB2 attempts to resolve symlinks on the crafted ReiserFS filesystem during the boot process. The attacker does not need any user interaction beyond having the system boot from the compromised media.

The vulnerability mechanism can be described as follows: when GRUB2 encounters a symlink on a ReiserFS filesystem, it reads the filesystem's geometry parameters to calculate the required buffer size for the symlink target. A crafted filesystem can specify geometry values that, when multiplied together, cause an integer overflow. This results in a small heap allocation followed by a large write operation, corrupting heap memory and potentially enabling code execution. For detailed technical analysis, see the Red Hat CVE-2025-0684 Advisory.

Detection Methods for CVE-2025-0684

Indicators of Compromise

  • Unexpected boot failures or crashes during GRUB2 initialization
  • Modified or suspicious ReiserFS filesystem images on boot media
  • Unauthorized changes to boot partition contents
  • Secure Boot violations or bypasses being logged by firmware

Detection Strategies

  • Implement filesystem integrity monitoring on boot partitions using cryptographic checksums
  • Monitor for unauthorized modifications to GRUB2 configuration files and modules
  • Enable firmware-level boot logging to detect anomalous bootloader behavior
  • Utilize SentinelOne endpoint protection to detect post-exploitation malicious activity

Monitoring Recommendations

  • Regularly verify GRUB2 binary and module integrity against known-good hashes
  • Monitor system boot logs for ReiserFS-related errors or unusual activity
  • Implement physical security controls for removable boot media
  • Enable UEFI Secure Boot with properly enrolled keys to limit bootloader modifications

How to Mitigate CVE-2025-0684

Immediate Actions Required

  • Apply vendor-provided GRUB2 security patches as soon as they become available
  • Disable ReiserFS support in GRUB2 if not required by removing the reiserfs.mod module
  • Restrict physical access to systems to prevent boot media tampering
  • Verify integrity of existing boot partitions and GRUB2 installations

Patch Information

Consult vendor security advisories for patch availability. Red Hat has acknowledged this vulnerability and is tracking it through Bug Report #2346119. Additional details are available in the Red Hat CVE-2025-0684 Advisory. System administrators should monitor their distribution's security channels for updated GRUB2 packages and follow vendor-specific instructions for regenerating bootloader configurations after patching.

Workarounds

  • Remove reiserfs.mod from the GRUB2 modules directory to disable ReiserFS support entirely
  • Avoid booting from untrusted or unverified storage media
  • Enable UEFI Secure Boot to limit execution of unsigned bootloader code
  • Implement full-disk encryption with TPM-backed key storage to protect boot integrity
bash
# Configuration example - Remove ReiserFS module to mitigate vulnerability
# Locate and remove the reiserfs module (requires root privileges)
sudo rm -f /boot/grub/i386-pc/reiserfs.mod
sudo rm -f /boot/grub/x86_64-efi/reiserfs.mod

# Regenerate GRUB configuration without ReiserFS support
sudo grub-mkconfig -o /boot/grub/grub.cfg

# Verify the module has been removed
ls -la /boot/grub/*/reiserfs.mod 2>/dev/null || echo "ReiserFS module successfully removed"

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 Bug Report #2346119
  • 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