CVE-2022-38791
MariaDB Server vulnerability analysis and mitigation

Overview

CVE-2022-38791 is a vulnerability discovered in MariaDB versions before 10.9.2, specifically affecting the compresswrite function in extra/mariabackup/dscompress.cc. The vulnerability was identified on August 27, 2022, and affects multiple versions of MariaDB including 10.3, 10.4, 10.5, 10.6, 10.7, and 10.8 (MITRE CVE, MariaDB JIRA).

Technical details

The vulnerability occurs when the compresswrite function fails to release datamutex upon a stream write failure. This issue was identified as a bug in the fix for a previous vulnerability (MDEV-28689). The technical implementation shows that the lock thd->data_mutex is not properly released during erroneous writing to the destination stream (MariaDB JIRA).

Impact

When successfully exploited, this vulnerability can allow local users to trigger a deadlock in the system, potentially leading to a Denial of Service (DoS) condition (NetApp Security).

Mitigation and workarounds

The vulnerability has been fixed in MariaDB versions 10.3.36, 10.4.26, 10.5.17, 10.6.9, 10.7.5, 10.8.4, and 10.9.2. Users are advised to upgrade to these or later versions to mitigate the vulnerability (Debian Security).

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-30722MEDIUM6.8
  • MySQLMySQL
  • mariadb-devel
NoYesApr 15, 2025
CVE-2025-30693MEDIUM5.5
  • MySQLMySQL
  • mysql-debuginfo
NoYesApr 15, 2025
CVE-2023-52971MEDIUM4.9
  • MariaDB ServerMariaDB Server
  • mariadb-server-galera
NoYesMar 08, 2025
CVE-2023-52970MEDIUM4.9
  • MariaDB ServerMariaDB Server
  • mariadb10.11-debugsource
NoYesMar 08, 2025
CVE-2025-13699N/AN/A
  • MariaDB ServerMariaDB Server
  • galera
NoYesNov 27, 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