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

CVE-2022-47015: MariaDB Server DoS Vulnerability

CVE-2022-47015 is a denial of service vulnerability in MariaDB Server affecting versions before 10.3.34 through 10.9.3. A null pointer dereference can crash the database. This article covers technical details, impact, and fixes.

Published: February 11, 2026

CVE-2022-47015 Overview

CVE-2022-47015 is a Null Pointer Dereference vulnerability affecting MariaDB Server versions before 10.3.34 through 10.9.3. The vulnerability exists in the spider_db_mbase::print_warnings function within the Spider storage engine, where it is possible to dereference a null pointer, leading to a Denial of Service (DoS) condition. An authenticated attacker with network access can exploit this flaw to crash the database server, disrupting critical database operations and availability.

Critical Impact

Authenticated attackers can crash MariaDB Server instances by triggering a null pointer dereference in the Spider storage engine, causing service disruption for all connected applications and users.

Affected Products

  • MariaDB Server versions 10.3.x before 10.3.34
  • MariaDB Server versions 10.4.x through 10.9.x before 10.9.3
  • MariaDB Server with Spider storage engine enabled

Discovery Timeline

  • 2023-01-20 - CVE-2022-47015 published to NVD
  • 2025-04-03 - Last updated in NVD database

Technical Details for CVE-2022-47015

Vulnerability Analysis

This vulnerability is classified as CWE-476 (NULL Pointer Dereference) and resides within the Spider storage engine component of MariaDB Server. The Spider storage engine enables federated database functionality, allowing MariaDB to distribute tables across multiple servers.

The vulnerable function spider_db_mbase::print_warnings fails to properly validate pointer references before dereferencing them. When specific conditions are met during query execution that triggers warning logging, the function attempts to access memory through an unvalidated pointer. If this pointer is null, the operation causes an immediate crash of the database server process.

The vulnerability is particularly concerning because it can be triggered by an authenticated user with low privileges through normal database operations that generate warnings within the Spider storage engine context.

Root Cause

The root cause lies in insufficient null pointer validation within the spider_db_mbase::print_warnings function located in storage/spider/spd_db_mysql.cc. When the Spider storage engine attempts to log result warnings (controlled by the spider_param_log_result_errors() parameter), the code directly calls print_warnings() without ensuring that all required data structures and pointers have been properly initialized.

The fix, tracked as MDEV-29644, refactors the warning handling logic by replacing the vulnerable print_warnings() function with a safer fetch_and_print_warnings() implementation that includes proper validation.

Attack Vector

The attack vector is network-based and requires authentication with low privileges. An attacker must have valid credentials to connect to the MariaDB server and the ability to execute queries that interact with tables using the Spider storage engine. The attack does not require user interaction and can be reliably reproduced.

To exploit this vulnerability, an attacker would:

  1. Authenticate to the MariaDB server with valid credentials
  2. Execute queries against Spider-managed tables that trigger warning conditions
  3. When the warning logging threshold is met (log_result_errors >= 3), the vulnerable code path is triggered
  4. The null pointer dereference crashes the database server

The following patch demonstrates how MariaDB addressed the vulnerability in storage/spider/spd_db_mysql.cc:

text
         db_conn->affected_rows, db_conn->insert_id,
         db_conn->server_status, db_conn->warning_count);
       if (spider_param_log_result_errors() >= 3)
-        print_warnings(l_time);
+        fetch_and_print_warnings(l_time);
     } else if (log_result_errors >= 4)
     {
       time_t cur_time = (time_t) time((time_t*) 0);

Source: GitHub Commit Details

The corresponding header file change in storage/spider/spd_db_mysql.h:

c
   bool is_xa_nota_error(
     int error_num
   );
-  void print_warnings(
-    struct tm *l_time
-  );
+  void fetch_and_print_warnings(struct tm *l_time);
   spider_db_result *store_result(
     spider_db_result_buffer **spider_res_buf,
     st_spider_db_request_key *request_key,

Source: GitHub Commit Details

Detection Methods for CVE-2022-47015

Indicators of Compromise

  • Unexpected MariaDB server crashes with segmentation fault errors in system logs
  • Core dumps referencing spider_db_mbase::print_warnings or Spider storage engine functions
  • Repeated database service restarts without apparent cause when Spider engine tables are accessed
  • Error logs showing null pointer dereference exceptions in the MariaDB error log

Detection Strategies

  • Monitor system logs for MariaDB process crashes with signals indicating memory access violations (SIGSEGV)
  • Implement database query auditing to identify unusual query patterns against Spider engine tables
  • Deploy application-level monitoring to detect database connection failures and timeouts
  • Review MariaDB error logs for references to Spider storage engine failures

Monitoring Recommendations

  • Configure alerting for MariaDB service availability and unexpected restarts
  • Implement health checks that verify database responsiveness at regular intervals
  • Monitor system resource utilization for signs of DoS attempts
  • Enable detailed Spider storage engine logging during investigation periods

How to Mitigate CVE-2022-47015

Immediate Actions Required

  • Upgrade MariaDB Server to version 10.3.34 or later (for 10.3.x branch) or 10.9.3 or later (for other affected branches)
  • Review and restrict database user privileges, limiting access to Spider storage engine tables
  • Implement network segmentation to limit database access to trusted application servers only
  • Enable enhanced logging to detect potential exploitation attempts

Patch Information

MariaDB has released patched versions that address this vulnerability. The fix is available in MariaDB Server versions 10.3.34 and later across all affected branches. The patch replaces the vulnerable print_warnings() function with a safer fetch_and_print_warnings() implementation that properly handles null pointer scenarios.

The specific commit implementing the fix can be reviewed at the GitHub Commit Details. Additional security advisories have been published by Debian, Fedora, and NetApp.

Workarounds

  • Disable the Spider storage engine if not required by removing or commenting out the plugin configuration
  • Reduce the spider_log_result_errors parameter to below 3 to avoid triggering the vulnerable code path
  • Implement strict access controls to limit which users can execute queries against Spider engine tables
  • Deploy a database proxy or firewall to filter potentially malicious queries
bash
# Configuration example
# Disable Spider storage engine in MariaDB configuration
# Add to /etc/mysql/mariadb.conf.d/50-server.cnf or my.cnf

[mariadbd]
# Disable Spider storage engine plugin
skip-spider

# Alternatively, reduce log verbosity to avoid vulnerable code path
# spider_log_result_errors=2

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechMariadb

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.20%

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

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory
  • Vendor Resources
  • GitHub Commit Details
  • Related CVEs
  • CVE-2022-32085: MariaDB DoS Vulnerability

  • CVE-2022-32083: MariaDB Segmentation Fault Vulnerability

  • CVE-2022-27444: MariaDB Server DoS Vulnerability

  • CVE-2021-46667: MariaDB Integer Overflow DOS 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
  • 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