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-2022-32081

CVE-2022-32081: MariaDB Use-After-Free Vulnerability

CVE-2022-32081 is a use-after-free vulnerability in MariaDB versions 10.4 through 10.7 affecting the InnoDB storage engine. This article covers technical details, affected versions, security impact, and mitigation.

Published: February 11, 2026

CVE-2022-32081 Overview

CVE-2022-32081 is a use-after-poison vulnerability discovered in MariaDB versions 10.4 through 10.7. The flaw exists in the prepare_inplace_add_virtual function located in /storage/innobase/handler/handler0alter.cc. This memory corruption vulnerability can be exploited remotely without authentication to cause a denial of service condition, potentially crashing the database server and disrupting critical business operations.

Critical Impact

Remote attackers can exploit this vulnerability over the network without authentication to crash MariaDB database servers, causing service disruption and potential data availability issues for dependent applications.

Affected Products

  • MariaDB versions 10.4.x through 10.7.x
  • Fedora 35
  • Fedora 36
  • Fedora 37

Discovery Timeline

  • 2022-07-01 - CVE-2022-32081 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-32081

Vulnerability Analysis

This vulnerability is classified as CWE-416 (Use After Free), though it specifically manifests as a use-after-poison condition. Use-after-poison is a variant of memory corruption where memory that has been marked as poisoned (typically by memory sanitizers like AddressSanitizer) is subsequently accessed. In the context of MariaDB, this occurs within the InnoDB storage engine's ALTER TABLE handling code.

The vulnerability resides in the prepare_inplace_add_virtual function, which is responsible for preparing virtual column additions during in-place ALTER TABLE operations. When this function is invoked under certain conditions, the code may access memory regions that have been previously freed or marked as invalid, leading to undefined behavior that typically results in a server crash.

The vulnerability can be triggered over the network, requires no authentication, and has no complexity barriers to exploitation. This makes it particularly concerning for internet-facing database deployments.

Root Cause

The root cause lies in improper memory lifecycle management within the InnoDB handler's ALTER TABLE implementation. Specifically, the prepare_inplace_add_virtual function in handler0alter.cc fails to properly validate memory state before accessing data structures related to virtual column handling. This results in accessing memory that has been deallocated or poisoned, triggering a crash when running with memory debugging tools or potentially causing undefined behavior in production environments.

Attack Vector

The attack vector for CVE-2022-32081 is network-based. An attacker can exploit this vulnerability by:

  1. Connecting to a vulnerable MariaDB server (authentication may not be required for the trigger)
  2. Executing specific SQL statements that invoke the ALTER TABLE functionality with virtual column additions
  3. Triggering the code path in prepare_inplace_add_virtual that accesses poisoned memory
  4. Causing the database server to crash, resulting in denial of service

The vulnerability mechanism involves memory corruption in the InnoDB storage engine's DDL handling. When processing ALTER TABLE operations that add virtual columns in-place, the handler code may reference memory structures that are no longer valid. For detailed technical analysis, refer to the MariaDB Issue MDEV-26420.

Detection Methods for CVE-2022-32081

Indicators of Compromise

  • Unexpected MariaDB server crashes with core dumps referencing handler0alter.cc or prepare_inplace_add_virtual
  • Repeated database service restarts without clear operational cause
  • AddressSanitizer reports indicating use-after-poison errors in InnoDB handler code
  • Error logs containing memory corruption signatures related to ALTER TABLE operations

Detection Strategies

  • Monitor MariaDB error logs for crash signatures mentioning prepare_inplace_add_virtual or handler0alter.cc
  • Deploy runtime application self-protection (RASP) solutions that can detect memory corruption attempts
  • Implement database activity monitoring to track unusual ALTER TABLE patterns
  • Use SentinelOne Singularity XDR to monitor for process crashes and abnormal database behavior patterns

Monitoring Recommendations

  • Configure alerting for MariaDB service restarts and unexpected terminations
  • Monitor system logs for segmentation faults or memory-related errors from the mysqld process
  • Track connection patterns for suspicious ALTER TABLE statement sequences
  • Enable MariaDB's general query log temporarily during investigation to identify potential attack patterns

How to Mitigate CVE-2022-32081

Immediate Actions Required

  • Upgrade MariaDB to the latest patched version that addresses this vulnerability
  • Review network access controls and restrict database access to trusted hosts only
  • Implement database firewall rules to filter potentially malicious DDL statements
  • Consider temporary removal of ALTER TABLE privileges from non-essential users until patching is complete

Patch Information

MariaDB has addressed this vulnerability in subsequent releases. Administrators should consult the MariaDB Issue MDEV-26420 for specific version information and upgrade paths. For Fedora users, updated packages are available through the standard package management system as announced in the Fedora Package Announcements. Additional advisory information is available from the NetApp Security Advisory NTAP-20220818-0005.

Workarounds

  • Restrict network access to MariaDB servers using firewall rules to limit exposure
  • Revoke ALTER privileges from untrusted database users until the patch can be applied
  • Implement connection rate limiting to reduce the impact of potential denial of service attempts
  • Consider placing vulnerable database servers behind a database activity monitoring solution that can block suspicious DDL operations
bash
# Restrict ALTER TABLE privileges for non-admin users as a temporary mitigation
mysql -u root -p -e "REVOKE ALTER ON *.* FROM 'webapp_user'@'%';"

# Verify current MariaDB version to assess vulnerability status
mysql -u root -p -e "SELECT VERSION();"

# Apply firewall rule to restrict database access (example for iptables)
iptables -A INPUT -p tcp --dport 3306 -s trusted_network/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 3306 -j DROP

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechMariadb

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.12%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • MariaDB Issue MDEV-26420

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory NTAP-20220818-0005
  • Related CVEs
  • CVE-2022-32091: MariaDB Use-After-Free Vulnerability

  • CVE-2022-27457: MariaDB Use-After-Free Vulnerability

  • CVE-2026-35549: MariaDB Server DoS Vulnerability

  • CVE-2026-32710: MariaDB Server 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