CVE-2022-31622
MariaDB Server vulnerability analysis and mitigation

Overview

CVE-2022-31622 is a security vulnerability in MariaDB that involves improper locking in the ds_compress.cc file. The vulnerability was discovered in MariaDB versions prior to 10.7 and affects the mariabackup component. The issue was identified and fixed in multiple MariaDB versions including 10.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, and 10.7.2 (MariaDB JIRA).

Technical details

The vulnerability occurs in the create_worker_threads method within extra/mariabackup/ds_compress.cc file, where a lock (thd->ctrl_mutex) is not properly released when an error occurs during pthread_create. This improper locking mechanism could lead to a deadlock situation when pthread_create returns a nonzero value (GitHub Commit). The vulnerability has been assigned a CVSS score of 5.5 (MEDIUM) with the vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NetApp Security).

Impact

The successful exploitation of this vulnerability could lead to a Denial of Service (DoS) condition due to the unreleased lock in the system (NetApp Security).

Mitigation and workarounds

The vulnerability has been fixed in MariaDB versions 10.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, and 10.7.2. The fix involves adding a proper mutex unlock call in the error handling path of the create_worker_threads function (Red Hat Advisory).

Additional resources


SourceThis report was generated using AI

Related MariaDB Server vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-13699HIGH7
  • MariaDB ServerMariaDB Server
  • galera
NoYesDec 23, 2025
CVE-2025-30722MEDIUM6.8
  • MySQLMySQL
  • mysql-server-debuginfo
NoYesApr 15, 2025
CVE-2025-30693MEDIUM5.5
  • MySQLMySQL
  • mariadb10.11
NoYesApr 15, 2025
CVE-2023-52971MEDIUM4.9
  • MariaDB ServerMariaDB Server
  • mariadb-embedded-devel
NoYesMar 08, 2025
CVE-2023-52970MEDIUM4.9
  • MariaDB ServerMariaDB Server
  • mariadb-sphinx-engine
NoYesMar 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management