CVE-2022-27445
📋 TL;DR
This vulnerability in MariaDB Server causes a segmentation fault via the sql/sql_window.cc component, which can lead to denial of service (DoS) by crashing the database server. It affects MariaDB Server versions 10.9 and below. Organizations running vulnerable MariaDB instances are at risk of service disruption.
💻 Affected Systems
- MariaDB Server
📦 What is this software?
Mariadb by Mariadb
Mariadb by Mariadb
Mariadb by Mariadb
Mariadb by Mariadb
Mariadb by Mariadb
Mariadb by Mariadb
⚠️ Risk & Real-World Impact
Worst Case
Complete database server crash leading to extended service downtime and data unavailability until restart.
Likely Case
Denial of service through server crash requiring manual restart, causing temporary service disruption.
If Mitigated
Minimal impact with proper monitoring and automated restart mechanisms in place.
🎯 Exploit Status
Exploitation requires database access to execute malicious SQL queries. No public exploit code has been confirmed.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: MariaDB 10.9.1 and later versions
Vendor Advisory: https://jira.mariadb.org/browse/MDEV-28081
Restart Required: Yes
Instructions:
1. Backup your database. 2. Upgrade MariaDB to version 10.9.1 or later. 3. Restart the MariaDB service. 4. Verify the upgrade was successful.
🔧 Temporary Workarounds
Restrict Window Function Usage
allLimit or monitor usage of window functions in SQL queries to reduce attack surface.
-- No direct commands; implement through application controls and database permissions
🧯 If You Can't Patch
- Implement strict database access controls to limit who can execute complex queries.
- Deploy monitoring and alerting for database crashes with automated restart capabilities.
🔍 How to Verify
Check if Vulnerable:
Check MariaDB version: if version is 10.9 or below, the system is vulnerable.
Check Version:
mysql --version | grep -i mariadb
Verify Fix Applied:
After patching, verify the MariaDB version is 10.9.1 or higher and test window function queries.
📡 Detection & Monitoring
Log Indicators:
- Segmentation fault errors in MariaDB logs
- Unexpected database service crashes
- Error messages referencing sql/sql_window.cc
Network Indicators:
- Sudden loss of database connectivity
- Increased failed connection attempts
SIEM Query:
source="mariadb.log" AND ("segmentation fault" OR "sql_window.cc")
🔗 References
- https://jira.mariadb.org/browse/MDEV-28081
- https://lists.debian.org/debian-lts-announce/2022/09/msg00023.html
- https://security.netapp.com/advisory/ntap-20220526-0006/
- https://jira.mariadb.org/browse/MDEV-28081
- https://lists.debian.org/debian-lts-announce/2022/09/msg00023.html
- https://security.netapp.com/advisory/ntap-20220526-0006/