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

CVE-2025-6297: Debian Dpkg DOS Vulnerability

CVE-2025-6297 is a denial of service flaw in Debian Dpkg's dpkg-deb that improperly sanitizes directory permissions during extraction, potentially causing disk exhaustion. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: May 15, 2026

CVE-2025-6297 Overview

CVE-2025-6297 affects Debian dpkg, the package management toolchain used across Debian and Debian-derived Linux distributions. The flaw resides in dpkg-deb, which fails to properly sanitize directory permissions when extracting a control member into a temporary directory. Documentation describes this extraction as a safe operation, even on untrusted input. Attackers can craft adversarial .deb packages that leave temporary files behind during cleanup. Repeated automated processing of such packages can exhaust disk quotas or fill the filesystem, producing a denial-of-service condition. The weakness is tracked under CWE-400: Uncontrolled Resource Consumption.

Critical Impact

Automated processing of malicious .deb packages can trigger disk quota exhaustion or disk-full conditions, disrupting package management workflows and dependent services.

Affected Products

  • Debian dpkg (upstream package management toolchain)
  • Debian Linux distributions shipping vulnerable dpkg-deb builds
  • Debian-derived distributions (including Ubuntu and downstream rebuilds) consuming the affected dpkg source

Discovery Timeline

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

Technical Details for CVE-2025-6297

Vulnerability Analysis

The vulnerability stems from improper handling of directory permissions inside dpkg-deb when it extracts a package control member to a temporary directory. The control member contains package metadata such as control, preinst, and postinst scripts. dpkg-deb is documented as safe to run on untrusted .deb files, so callers commonly invoke it during automated scanning, repository ingestion, and continuous integration. When a .deb archive contains directories with permissions that prevent removal by a non-root user, the cleanup routine cannot delete the extracted contents. Residual files accumulate in the temporary location after each invocation. The issue is amplified when the attacker uses highly compressible payloads that expand into large files on disk.

Root Cause

The extractor does not normalize or override permission bits on directories created during control extraction. As a result, attacker-controlled mode values persist on disk and block recursive deletion by the unprivileged user running dpkg-deb. The cleanup code path silently leaves these directories behind rather than forcing writable permissions before removal.

Attack Vector

An attacker delivers a crafted .deb file to any pipeline that invokes dpkg-deb for inspection or extraction. Network delivery is sufficient because the package can be hosted on a mirror, repository, build artifact store, or attachment. No authentication or user interaction is required on the target system that processes the file. Each adversarial package run leaves residue until storage or quota limits are reached. The upstream fix lands in the commit referenced by the dpkg source repository.

No verified public exploit code is available. The vulnerability mechanism is described in prose only; see the upstream commit for the authoritative technical fix.

Detection Methods for CVE-2025-6297

Indicators of Compromise

  • Persistent files or directories under temporary paths used by dpkg-deb (for example /tmp/dpkg-deb.*) that remain after package processing completes.
  • Unexpected directories with restrictive modes (such as 0000 or 0500) owned by build or service accounts.
  • Steady growth of disk usage on systems running automated .deb ingestion pipelines without a corresponding increase in legitimate package volume.

Detection Strategies

  • Audit invocations of dpkg-deb in build farms, mirroring tools, and antivirus or repository scanners, and correlate them with leftover temporary directories.
  • Compare installed dpkg version against the fixed upstream release in your distribution's security tracker.
  • Alert on filesystem fill events and quota exhaustion on hosts that automatically process untrusted .deb files.

Monitoring Recommendations

  • Track inode and disk usage trends on partitions hosting temporary directories used by package tooling.
  • Log exit codes and stderr from dpkg-deb invocations to surface cleanup failures.
  • Monitor process telemetry for repeated dpkg-deb execution from network-facing or user-upload workflows.

How to Mitigate CVE-2025-6297

Immediate Actions Required

  • Upgrade dpkg to the patched version provided by your distribution's security advisory.
  • Identify any pipeline that runs dpkg-deb on untrusted input and confirm it inherits the upgrade.
  • Purge residual temporary directories left by prior invocations before re-enabling automated processing.

Patch Information

The upstream fix is committed to the dpkg repository as commit ed6bbd445dd8800308c67236ba35d08004c98e82. Debian and downstream distributors have released updated dpkg packages incorporating this change. Apply distribution updates through apt or the relevant package manager.

Workarounds

  • Run dpkg-deb against untrusted packages inside ephemeral containers or sandboxes that are destroyed after each invocation.
  • Place the temporary working directory on a dedicated filesystem with strict size limits to bound resource exhaustion.
  • Restrict who can submit .deb packages to automated build and scanning systems until the patch is deployed.
bash
# Example: update dpkg on Debian-based systems
sudo apt update
sudo apt install --only-upgrade dpkg
dpkg --version

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.25%

  • 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 Commit Change
  • 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
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