Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

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 compress_write function in extra/mariabackup/ds_compress.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 compress_write function fails to release data_mutex 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).

Exploitability

The vulnerability requires local access to exploit and 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).

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-2026-89161HIGH7.8
  • MariaDB Server logoMariaDB Server
  • bootc
NoYesSep 11, 2026
CVE-2026-89157HIGH7.4
  • MariaDB Server logoMariaDB Server
  • mariadb-client-utils
NoYesSep 11, 2026
CVE-2026-89160MEDIUM6.5
  • MariaDB Server logoMariaDB Server
  • pcre2-syntax
NoYesSep 11, 2026
CVE-2026-89158MEDIUM6.5
  • MariaDB Server logoMariaDB Server
  • pcre2
NoYesSep 11, 2026
CVE-2026-89162LOW3.3
  • MariaDB Server logoMariaDB Server
  • mariadb11.8-embedded-devel
NoYesSep 11, 2026

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