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

CVE-2025-48174: Aomedia Libavif Buffer Overflow Flaw

CVE-2025-48174 is a buffer overflow vulnerability in Aomedia Libavif caused by an integer overflow in stream.c. This flaw affects versions before 1.3.0. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-48174 Overview

CVE-2025-48174 is an integer overflow vulnerability in the makeRoom function within stream.c of the libavif library. When processing AVIF image files, the stream->offset + size calculation can overflow, leading to a resultant buffer overflow condition. This vulnerability affects libavif versions prior to 1.3.0 and can be exploited remotely via specially crafted AVIF image files.

Critical Impact

Successful exploitation of this integer overflow vulnerability can lead to high-impact integrity and availability compromise, potentially enabling attackers to corrupt memory, crash applications, or achieve further exploitation through heap manipulation.

Affected Products

  • aomedia libavif versions prior to 1.3.0

Discovery Timeline

  • 2025-05-16 - CVE-2025-48174 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2025-48174

Vulnerability Analysis

The vulnerability exists in the makeRoom function within src/stream.c of the libavif library. This function is responsible for ensuring sufficient buffer space is available when writing to a raw stream during AVIF image processing. The core issue stems from an arithmetic operation that calculates the required buffer size by adding stream->offset and size together.

When both values are sufficiently large, their sum can exceed the maximum representable value for the size_t type, causing the result to wrap around to a small value. This integer overflow leads to an undersized buffer allocation, and subsequent write operations overflow the allocated buffer, corrupting adjacent heap memory.

The vulnerability is classified as CWE-190 (Integer Overflow or Wraparound). Attackers can exploit this by crafting malicious AVIF image files with specific metadata or chunk sizes designed to trigger the overflow condition when the image is decoded by an application using the vulnerable libavif library.

Root Cause

The root cause is an insufficient integer overflow check in the makeRoom function. The original code calculated neededSize = stream->offset + size before performing any overflow validation, meaning the overflow had already occurred by the time the check was evaluated. This flawed check compared neededSize < stream->offset after the potentially overflowed calculation, which is an unreliable method for detecting integer overflow.

Attack Vector

The attack vector is network-based, requiring no authentication or user interaction. An attacker can deliver a maliciously crafted AVIF image file through various channels such as:

  • Web browsers rendering AVIF images
  • Image processing applications and libraries
  • Content management systems handling image uploads
  • Email clients with image preview functionality

When the target application parses the malicious AVIF file, the integer overflow triggers in the makeRoom function, leading to heap buffer overflow and potential memory corruption.

c
// Security patch showing the integer overflow fix
// Source: https://github.com/AOMediaCodec/libavif/commit/50a743062938a3828581d725facc9c2b92a1d109

 #define AVIF_STREAM_BUFFER_INCREMENT (1024 * 1024)
 static avifResult makeRoom(avifRWStream * stream, size_t size)
 {
-    size_t neededSize = stream->offset + size;
-    if (neededSize < stream->offset) {
-        return AVIF_RESULT_INVALID_ARGUMENT;
+    if (size > SIZE_MAX - stream->offset) {
+        return AVIF_RESULT_OUT_OF_MEMORY;
     }
+    size_t neededSize = stream->offset + size;
     size_t newSize = stream->raw->size;
     while (newSize < neededSize) {
         newSize += AVIF_STREAM_BUFFER_INCREMENT;

Detection Methods for CVE-2025-48174

Indicators of Compromise

  • Unexpected application crashes or segmentation faults when processing AVIF image files
  • Memory corruption errors or heap corruption warnings from memory sanitizers
  • Abnormal memory allocation patterns in applications using libavif
  • Core dumps indicating heap overflow in stream-related functions

Detection Strategies

  • Deploy memory sanitizers (AddressSanitizer, MemorySanitizer) in development and testing environments to detect heap overflows
  • Monitor application logs for AVIF decoding failures with out-of-memory or invalid argument errors
  • Implement file integrity monitoring for applications that process untrusted AVIF images
  • Use fuzzing tools to test AVIF processing pipelines for memory safety issues

Monitoring Recommendations

  • Enable crash reporting and stack trace collection for applications processing AVIF images
  • Monitor system memory usage patterns for anomalies during image processing workflows
  • Implement network traffic analysis to detect delivery of suspiciously large or malformed AVIF files
  • Configure endpoint detection to alert on heap corruption signatures in processes using libavif

How to Mitigate CVE-2025-48174

Immediate Actions Required

  • Update libavif to version 1.3.0 or later immediately
  • Audit all applications and dependencies that utilize libavif for AVIF image processing
  • Consider temporarily disabling AVIF image support if updates cannot be applied immediately
  • Implement input validation to reject abnormally large AVIF files at ingestion points

Patch Information

The vulnerability has been addressed through multiple commits to the libavif repository. The fix changes the overflow check to validate before the addition operation occurs, using the safe pattern if (size > SIZE_MAX - stream->offset) which prevents the overflow from happening in the first place. Organizations should update to libavif version 1.3.0 or apply the patches from the following resources:

  • GitHub Pull Request #2768
  • GitHub Commit 50a7430
  • GitHub Commit e5fdefe

Debian users should refer to the Debian LTS Security Announcement for distribution-specific updates.

Workarounds

  • Restrict AVIF image processing to trusted sources only until patches can be applied
  • Implement Content Security Policy headers to limit AVIF image loading from untrusted origins
  • Deploy web application firewalls with rules to inspect and filter malformed AVIF content
  • Use containerization or sandboxing for image processing services to limit blast radius
bash
# Example: Check installed libavif version and update on Debian-based systems
dpkg -l | grep libavif
sudo apt update && sudo apt upgrade libavif-dev libavif15
# Verify patched version (1.3.0 or later)
pkg-config --modversion libavif

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLibavif

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-190
  • Technical References
  • Debian LTS Announcement
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Pull Request
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox 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