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-6297

CVE-2025-6297: Debian Dpkg DOS Vulnerability

CVE-2025-6297 is a denial of service flaw in Debian Dpkg where dpkg-deb fails to sanitize directory permissions, allowing disk exhaustion attacks. This article covers technical details, affected versions, and mitigations.

Updated: January 22, 2026

CVE-2025-6297 Overview

CVE-2025-6297 is a Resource Exhaustion vulnerability in Debian's dpkg-deb utility that fails to properly sanitize directory permissions when extracting a control member into a temporary directory. This operation is documented as being safe even on untrusted data, but the improper permission handling can result in temporary files being left behind during cleanup operations.

When dpkg-deb commands are executed repeatedly on adversarial .deb packages—particularly those containing highly compressible files placed inside directories with permissions that prevent removal by non-root users—the accumulated temporary files can exhaust disk quota or fill the disk entirely, resulting in a Denial of Service condition.

Critical Impact

Automated systems processing untrusted .deb packages are at risk of disk exhaustion DoS attacks through accumulated temporary files that cannot be cleaned up due to restrictive directory permissions.

Affected Products

  • Debian dpkg (all vulnerable versions)
  • Systems using dpkg-deb for automated package processing
  • Build systems and CI/CD pipelines handling untrusted .deb files

Discovery Timeline

  • 2025-07-01 - CVE-2025-6297 published to NVD
  • 2025-08-19 - Last updated in NVD database

Technical Details for CVE-2025-6297

Vulnerability Analysis

This vulnerability (CWE-400: Uncontrolled Resource Consumption) stems from dpkg-deb's failure to properly handle directory permissions during the extraction of control members from .deb packages. The dpkg-deb tool creates temporary directories during package extraction operations, and when processing maliciously crafted packages, these temporary files may persist after the operation completes.

The core issue lies in the assumption that cleanup operations will always succeed. When an adversarial package creates directories with restrictive permissions (preventing deletion by non-root users), the temporary files remain on the filesystem. This is particularly problematic because:

  1. The operation is documented as safe for untrusted data
  2. Automated systems may process many packages without manual intervention
  3. Highly compressible files amplify the disk space consumption

Root Cause

The root cause is improper permission sanitization in the temporary directory handling code within dpkg-deb. When extracting the control member of a .deb package, the utility does not adequately normalize or restrict the permissions of created directories before cleanup attempts. This allows malicious packages to specify directory permissions that prevent the unprivileged user running dpkg-deb from removing the temporary files afterward.

The fix implemented in commit ed6bbd445dd8800308c67236ba35d08004c98e82 addresses this by ensuring proper permission handling during the extraction process.

Attack Vector

The attack vector is network-based, requiring no user interaction or privileges. An attacker can exploit this vulnerability by:

  1. Crafting a malicious .deb package with specially constructed directory permissions in the control member
  2. Including highly compressible content to maximize disk space consumption
  3. Distributing the package to systems that automatically process .deb files
  4. Waiting for repeated processing to accumulate enough temporary files to exhaust disk resources

The attack is particularly effective against automated build systems, package mirrors, and CI/CD pipelines that regularly process untrusted package files.

Detection Methods for CVE-2025-6297

Indicators of Compromise

  • Unusual accumulation of temporary files in /tmp or other temporary directories
  • Gradual disk space exhaustion on systems processing .deb packages
  • Failed cleanup operations in dpkg-deb logs
  • Directories with restrictive permissions (e.g., 0700 or 0000) in temporary extraction paths

Detection Strategies

  • Monitor disk usage trends on systems running automated dpkg-deb operations
  • Implement file system monitoring for orphaned temporary directories created by dpkg-deb
  • Audit incoming .deb packages for unusual directory permission specifications in control archives
  • Set up alerts for disk quota warnings on build and CI/CD systems

Monitoring Recommendations

  • Configure disk quota monitoring with thresholds appropriate for normal package processing workloads
  • Implement periodic cleanup scripts that identify and report orphaned temporary directories
  • Monitor dpkg-deb process execution logs for repeated failures or cleanup errors
  • Use SentinelOne's file integrity monitoring to detect unexpected temporary file accumulation

How to Mitigate CVE-2025-6297

Immediate Actions Required

  • Update dpkg to the latest patched version available from Debian
  • Audit systems that automatically process untrusted .deb packages
  • Implement disk quota limits on systems running dpkg-deb to prevent complete disk exhaustion
  • Review and clean up any accumulated temporary files from previous processing

Patch Information

The vulnerability has been addressed by the Debian dpkg maintainers. The fix is available in commit ed6bbd445dd8800308c67236ba35d08004c98e82 in the dpkg Git repository. System administrators should update to the latest dpkg package version that includes this fix.

To verify your current version and check for updates:

bash
# Check current dpkg version
dpkg --version

# Update dpkg on Debian/Ubuntu systems
sudo apt update && sudo apt upgrade dpkg

Workarounds

  • Run dpkg-deb operations in isolated environments with strict disk quotas
  • Implement pre-processing validation of .deb packages before automated handling
  • Use containerized environments with ephemeral storage for untrusted package processing
  • Configure periodic cleanup jobs to remove stale temporary directories
bash
# Configuration example
# Add to crontab for periodic cleanup of orphaned dpkg-deb temp files
# Run every hour to clean temporary directories older than 24 hours
0 * * * * find /tmp -maxdepth 1 -type d -name 'dpkg-deb.*' -mtime +1 -exec rm -rf {} \; 2>/dev/null

# Set disk quota for build user (adjust values as needed)
setquota -u builduser 5G 6G 0 0 /home

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechDebian

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-400
  • Vendor Resources
  • dpkg Git Commit Analysis
  • Related CVEs
  • CVE-2020-3810: Debian Apt DOS Vulnerability

  • CVE-2022-48174: Debian Linux Buffer Overflow Vulnerability

  • CVE-2025-8454: Debian Devscripts Information Disclosure

  • CVE-2023-26604: systemd Privilege Escalation Vulnerability
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