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

CVE-2025-49112: Valkey Integer Underflow Vulnerability

CVE-2025-49112 is an integer underflow flaw in Valkey through version 8.1.1 affecting the setDeferredReply function in networking.c. This post covers the technical details, affected versions, security impact, and mitigation.

Updated: January 22, 2026

CVE-2025-49112 Overview

An integer underflow vulnerability exists in the setDeferredReply function within networking.c in Valkey through version 8.1.1. The vulnerability occurs in the calculation prev->size - prev->used, which can result in an integer underflow condition when the prev->used value exceeds prev->size. This type of arithmetic error can lead to unexpected behavior in memory operations and potentially cause denial of service conditions.

Critical Impact

This integer underflow vulnerability in Valkey's networking component could potentially cause memory corruption or service disruption in adjacent network scenarios, affecting the availability of key-value store operations.

Affected Products

  • Valkey through version 8.1.1
  • Redis (related codebase - see GitHub Redis Source Code)

Discovery Timeline

  • 2025-06-02 - CVE-2025-49112 published to NVD
  • 2025-06-02 - Last updated in NVD database

Technical Details for CVE-2025-49112

Vulnerability Analysis

This vulnerability is classified as CWE-191 (Integer Underflow). The flaw resides in the setDeferredReply function located in networking.c. When processing deferred replies in the networking layer, the code performs an arithmetic subtraction operation between prev->size and prev->used. If prev->used is greater than prev->size due to improper bounds checking or state corruption, the subtraction results in an integer underflow.

Integer underflow vulnerabilities occur when an arithmetic operation attempts to create a numeric value that is below the minimum representable value for the data type. In this case, the underflow could cause the resulting value to wrap around to a very large positive number, potentially leading to incorrect memory allocations, buffer overruns, or other memory safety issues.

The attack requires adjacent network access, meaning an attacker would need to be on the same local network segment as the vulnerable Valkey instance. While the complexity to exploit this vulnerability is high, it does not require any privileges or user interaction.

Root Cause

The root cause of this vulnerability is insufficient validation of the relationship between prev->size and prev->used before performing the subtraction operation. The code assumes that prev->size will always be greater than or equal to prev->used, but this invariant is not properly enforced. When this assumption is violated, the arithmetic operation produces an underflowed value that can propagate through subsequent memory operations.

The vulnerable code path can be examined in the Valkey source code at networking.c line 886.

Attack Vector

The vulnerability requires adjacent network access to exploit. An attacker positioned on the same network segment as the vulnerable Valkey server could potentially craft specific network requests designed to trigger the condition where prev->used exceeds prev->size. The attack complexity is high due to the specific conditions required to trigger the underflow, and successful exploitation would primarily impact availability through potential service crashes or resource exhaustion.

The vulnerability mechanism involves the deferred reply handling in Valkey's networking stack. When processing client connections and responses, the setDeferredReply function manages buffer state tracking. The integer underflow can occur when buffer state becomes inconsistent, potentially through malformed requests or race conditions in connection handling.

Detection Methods for CVE-2025-49112

Indicators of Compromise

  • Unexpected crashes or restarts of Valkey server processes
  • Memory allocation errors or segmentation faults in Valkey logs
  • Anomalous network traffic patterns targeting Valkey ports from adjacent network hosts
  • Unusually large memory allocations reported in server statistics

Detection Strategies

  • Monitor Valkey server logs for crash dumps or error messages related to networking.c or memory operations
  • Implement network monitoring to detect unusual connection patterns or malformed requests to Valkey instances
  • Use memory profiling tools to detect abnormal allocation patterns that may indicate exploitation attempts
  • Deploy runtime application self-protection (RASP) solutions to detect integer underflow conditions

Monitoring Recommendations

  • Enable detailed logging for Valkey server operations and review for anomalies
  • Monitor system metrics including memory usage, process crashes, and restart frequency
  • Implement network segmentation monitoring to track adjacent network access patterns
  • Use SentinelOne's real-time monitoring capabilities to detect process anomalies and potential exploitation attempts

How to Mitigate CVE-2025-49112

Immediate Actions Required

  • Update Valkey to a patched version when available (versions after 8.1.1)
  • Review and apply the fix from Valkey Pull Request #2101
  • Implement network segmentation to limit adjacent network access to Valkey instances
  • Monitor Valkey deployments for signs of exploitation or instability

Patch Information

A fix has been submitted via GitHub Valkey Pull Request #2101. Organizations running Valkey through version 8.1.1 should monitor for official releases incorporating this fix and plan for immediate deployment once available. The patch addresses the integer underflow by adding proper bounds validation before performing the arithmetic operation.

Workarounds

  • Restrict network access to Valkey instances to trusted hosts only using firewall rules
  • Implement network segmentation to prevent adjacent network attackers from reaching Valkey services
  • Deploy Valkey behind a reverse proxy or API gateway that can filter malicious requests
  • Consider running Valkey in isolated network environments with strict access controls
bash
# Configuration example - Restrict Valkey network access
# Add firewall rules to limit adjacent network access
iptables -A INPUT -p tcp --dport 6379 -s 10.0.0.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 6379 -j DROP

# Configure Valkey bind address to limit network exposure
# In valkey.conf:
# bind 127.0.0.1 10.0.0.1
# protected-mode yes

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechN/A

  • SeverityLOW

  • CVSS Score3.1

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-191
  • Technical References
  • GitHub Redis Source Code

  • GitHub Valkey Source Code

  • GitHub Valkey Pull Request
  • Latest CVEs
  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal Vulnerability

  • CVE-2026-40259: SiYuan Auth Bypass Vulnerability

  • CVE-2026-40255: AdonisJS HTTP Server CSRF 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