Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2023-31975

CVE-2023-31975: Yasm Memory Leak Vulnerability

CVE-2023-31975 is a memory leak in Yasm v1.3.0 affecting the yasm_intnum_copy function in libyasm/intnum.c. This vulnerability is disputed by third parties. This post covers technical details, impact, and mitigation.

Published: February 4, 2026

CVE-2023-31975 Overview

A memory leak vulnerability was discovered in yasm v1.3.0, specifically in the yasm_intnum_copy function located at /libyasm/intnum.c. This vulnerability allows attackers to cause resource exhaustion through repeated invocations of the affected function, potentially leading to denial of service conditions in systems utilizing the yasm assembler.

Critical Impact

Memory leak in yasm assembler may lead to resource exhaustion and denial of service when processing specially crafted input files. Note that multiple third parties dispute this as a bug rather than a security vulnerability according to the YASM security policy.

Affected Products

  • yasm v1.3.0

Discovery Timeline

  • May 9, 2023 - CVE-2023-31975 published to NVD
  • January 29, 2025 - Last updated in NVD database

Technical Details for CVE-2023-31975

Vulnerability Analysis

The vulnerability exists in the yasm_intnum_copy function within the yasm assembler's internal number handling library (libyasm/intnum.c). When this function is called to copy integer number structures, allocated memory is not properly released under certain conditions, resulting in a memory leak (CWE-401: Missing Release of Memory after Effective Lifetime).

The memory leak occurs during the copy operation of internal numeric representations, where dynamically allocated memory for the copied structure fails to be freed when the copied object is no longer needed. This can be triggered by processing assembly files that cause repeated invocations of the affected function.

It is important to note that this issue has been disputed by multiple third parties who argue it constitutes a bug rather than a security vulnerability, based on YASM's security policy and the practical exploitability of the issue.

Root Cause

The root cause is a classic CWE-401 vulnerability where the yasm_intnum_copy function allocates memory for copying internal numeric structures but does not ensure proper deallocation when the copied objects go out of scope or are no longer needed. This missing cleanup logic causes memory to accumulate over time during assembly operations that heavily utilize numeric copying operations.

Attack Vector

The attack vector requires local access and user interaction. An attacker would need to craft a malicious assembly source file designed to trigger repeated calls to the vulnerable yasm_intnum_copy function. When a user assembles this crafted file using yasm v1.3.0, memory consumption grows progressively without bound, potentially leading to:

  • System slowdown due to excessive memory usage
  • Denial of service through memory exhaustion
  • Process termination when system memory limits are reached

The vulnerability mechanism involves allocating memory during the integer copy operation. The copied structure consumes memory that is never reclaimed, and repeated operations cause progressive memory exhaustion. See the GitHub Issue #210 for technical details.

Detection Methods for CVE-2023-31975

Indicators of Compromise

  • Unusual memory growth in yasm processes during assembly operations
  • System memory exhaustion when processing assembly files
  • Abnormally large memory footprint for yasm compared to baseline operations

Detection Strategies

  • Monitor memory usage of yasm processes using tools like valgrind or AddressSanitizer to detect leak patterns
  • Implement resource monitoring to detect gradual memory consumption increases during build processes
  • Review assembly source files for unusually complex or repetitive numeric operations that could trigger excessive copying

Monitoring Recommendations

  • Set up memory usage alerts for build systems utilizing yasm
  • Use memory profiling tools during development to identify leak patterns
  • Monitor system resource utilization during automated build processes

How to Mitigate CVE-2023-31975

Immediate Actions Required

  • Evaluate whether yasm v1.3.0 is used in your build environment and assess the risk based on your usage patterns
  • Consider using alternative assemblers if memory-sensitive operations are critical to your workflow
  • Implement resource limits on build processes to prevent complete system exhaustion

Patch Information

As of the last NVD update on January 29, 2025, no official vendor patch has been released for this issue. The YASM project has acknowledged the issue in GitHub Issue #210. Users should monitor the YASM project for updates and consider the multiple Openwall OSS-Security discussions that provide context on whether this constitutes a security vulnerability.

Workarounds

  • Implement memory resource limits using ulimit or cgroups to constrain yasm process memory usage
  • Consider using alternative assemblers such as NASM for memory-critical build environments
  • Run yasm processes in isolated containers with defined memory limits to prevent system-wide impact
bash
# Configuration example
# Set memory limits for yasm processes using ulimit
ulimit -v 1048576  # Limit virtual memory to 1GB

# Or use cgroups to limit memory for build processes
# Create a cgroup with memory limit
sudo cgcreate -g memory:/yasm_limit
sudo cgset -r memory.limit_in_bytes=1G yasm_limit

# Run yasm within the limited cgroup
sudo cgexec -g memory:yasm_limit yasm input.asm -o output.o

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechYasm

  • SeverityLOW

  • CVSS Score3.3

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-401
  • Technical References
  • Openwall OSS-Security Update

  • Openwall OSS-Security Notice

  • Openwall OSS-Security Alert

  • Openwall OSS-Security Bulletin

  • Openwall OSS-Security Update

  • Openwall OSS-Security Dispatch

  • Openwall OSS-Security Information

  • Openwall OSS-Security Brief

  • Openwall OSS-Security Bulletin

  • Openwall OSS-Security Statement

  • Openwall OSS-Security News

  • Openwall OSS-Security Update

  • Openwall OSS-Security Announcement

  • Openwall OSS-Security Report

  • Openwall OSS-Security Notice

  • Openwall OSS-Security Bulletin

  • Openwall OSS-Security Update

  • Openwall OSS-Security Announcement
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS 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