A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-2953

CVE-2025-2953: PyTorch Denial of Service Vulnerability

CVE-2025-2953 is a denial of service flaw in PyTorch 2.6.0+cu124 affecting the torch.mkldnn_max_pool2d function. This article covers the technical details, affected versions, exploitation risks, and mitigation steps.

Updated: January 22, 2026

CVE-2025-2953 Overview

A denial of service vulnerability has been identified in PyTorch version 2.6.0+cu124 affecting the torch.mkldnn_max_pool2d function. This vulnerability, classified as problematic, can be exploited through local access to cause service disruption. The vulnerability has been publicly disclosed, though its real-world impact is still under debate. Notably, PyTorch's security policy explicitly warns users about the risks of loading unknown or untrusted models that may establish malicious effects.

Critical Impact

Local attackers with access to PyTorch environments can trigger a denial of service condition through manipulation of the torch.mkldnn_max_pool2d function, potentially disrupting machine learning workloads and model inference operations.

Affected Products

  • PyTorch 2.6.0+cu124 (CUDA-enabled version)
  • linuxfoundation pytorch

Discovery Timeline

  • 2025-03-30 - CVE-2025-2953 published to NVD
  • 2025-04-22 - Last updated in NVD database

Technical Details for CVE-2025-2953

Vulnerability Analysis

This vulnerability resides in the torch.mkldnn_max_pool2d function within PyTorch's Intel Math Kernel Library for Deep Neural Networks (MKL-DNN) integration layer. The function is responsible for performing max pooling operations on 2D tensors using optimized Intel MKL-DNN kernels. The vulnerability is classified under CWE-404 (Improper Resource Shutdown or Release), indicating that the function fails to properly manage resources during certain operations, leading to a denial of service condition.

The attack requires local access to the system running PyTorch, meaning an attacker must already have the ability to execute code in the target environment. This could occur in shared computing environments, machine learning platforms with multi-tenant access, or scenarios where untrusted models or code are executed. The exploitation leads to availability impact without compromising confidentiality or integrity of the system.

It's important to note that the PyTorch project's security policy acknowledges that running untrusted models can have unpredictable and potentially harmful effects. The project considers scenarios involving loading arbitrary untrusted models as outside their standard threat model.

Root Cause

The root cause is improper resource shutdown or release (CWE-404) in the torch.mkldnn_max_pool2d function. When specific inputs or conditions are provided to this function, it fails to properly release or manage system resources, leading to resource exhaustion or a denial of service state. This issue is specifically tied to the MKL-DNN optimized pathway for max pooling operations on 2D inputs.

Attack Vector

The attack vector is local, requiring the attacker to have direct access to the system or the ability to execute arbitrary PyTorch code. The vulnerability can be exploited by:

  1. Crafting malicious input parameters to the torch.mkldnn_max_pool2d function
  2. Loading an untrusted model that internally calls this function with triggering inputs
  3. Executing Python code that invokes the vulnerable function with manipulated arguments

The vulnerability affects the availability of the PyTorch process, potentially causing crashes or resource exhaustion that impacts machine learning workloads.

The vulnerability manifests in the torch.mkldnn_max_pool2d function when processing certain inputs. For technical details, refer to the GitHub PyTorch Issue Tracker where the vulnerability was reported.

Detection Methods for CVE-2025-2953

Indicators of Compromise

  • Unexpected crashes or hangs in PyTorch processes, particularly during max pooling operations
  • Resource exhaustion symptoms such as memory spikes or CPU hangs associated with MKL-DNN operations
  • Error logs indicating failures in torch.mkldnn_max_pool2d function calls
  • Abnormal process termination in machine learning inference pipelines

Detection Strategies

  • Monitor PyTorch application logs for errors or exceptions related to mkldnn_max_pool2d operations
  • Implement resource monitoring for Python processes running PyTorch workloads to detect unusual memory or CPU patterns
  • Deploy application-level health checks that verify PyTorch inference services remain responsive
  • Use static analysis tools to identify code paths that invoke torch.mkldnn_max_pool2d with external or untrusted inputs

Monitoring Recommendations

  • Set up alerting for PyTorch process crashes or unexpected restarts in production environments
  • Monitor system resource utilization (CPU, memory) for processes using MKL-DNN operations
  • Implement timeout mechanisms for machine learning inference calls to detect hanging operations
  • Log and audit the sources of models being loaded in shared or multi-tenant ML environments

How to Mitigate CVE-2025-2953

Immediate Actions Required

  • Review and restrict access to PyTorch execution environments, ensuring only trusted users can run arbitrary code
  • Audit machine learning pipelines to identify and remove any untrusted or unverified models
  • Implement input validation and sanitization for any external inputs that may reach PyTorch functions
  • Consider isolating PyTorch workloads in containerized environments to limit blast radius of potential DoS attacks

Patch Information

At the time of this writing, no official patch has been released for this vulnerability. Users should monitor the GitHub PyTorch Issue Tracker for updates on remediation. The PyTorch project's Security Guidelines explicitly warns users about the risks of running untrusted models, which should be considered when assessing this vulnerability's impact on your environment.

Workarounds

  • Avoid loading untrusted or unverified PyTorch models in production environments, as recommended by PyTorch's security policy
  • If possible, use alternative pooling implementations that don't rely on MKL-DNN for critical workloads until a patch is available
  • Implement process isolation and resource limits for PyTorch workloads to contain potential DoS impacts
  • Consider using non-MKL-DNN backends for max pooling operations where performance requirements allow
bash
# Configuration example - Disable MKL-DNN optimizations as a workaround
export MKLDNN_VERBOSE=0
export TORCH_MKLDNN_ENABLED=0

# Alternative: Set within Python before importing torch
# import os
# os.environ['TORCH_MKLDNN_ENABLED'] = '0'

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPytorch

  • SeverityMEDIUM

  • CVSS Score4.8

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-404
  • Technical References
  • GitHub PyTorch Security Guidelines

  • GitHub PyTorch Issue Tracker

  • GitHub PyTorch Issue Detail

  • VulDB #302006 Ctiid

  • VulDB #302006

  • VulDB Submission #521279
  • Related CVEs
  • CVE-2024-31580: PyTorch Heap Buffer Overflow DoS Flaw

  • CVE-2025-3730: PyTorch CTC Loss DOS Vulnerability

  • CVE-2025-4287: PyTorch NCCL DoS Vulnerability

  • CVE-2026-24747: PyTorch weights_only RCE 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
  • English
  • 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