Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2022-38791

mariadb: compress_write() fails to release mutex on failure

Overview

Published
27 Aug 2022
Modified
17 Jun 2026
Medium CVE
3 Registry packages
61 OS packages
9 Linux distributions
Yes Fix available

Description

In MariaDB before 10.9.2, compress_write in extra/mariabackup/ds_compress.cc does not release data_mutex upon a stream write failure, which allows local users to trigger a deadlock.

Source: OX vulnerability database

Severity

5.5 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Weakness: CWE-667

Affected packages · 3

Packages affected by CVE-2022-38791
EcosystemPackageVulnerableFixed in
Bitnami mariadb >=10.3.0, <10.3.36>=10.4.0, <10.4.26>=10.5.0, <10.5.17>=10.6.0, <10.6.9>=10.7.0, <10.7.5+2 more 10.3.3610.4.2610.5.1710.6.910.7.5
Bitnami mariadb-min >=10.3.0, <10.3.36>=10.4.0, <10.4.26>=10.5.0, <10.5.17>=10.6.0, <10.6.9>=10.7.0, <10.7.5+2 more 10.3.3610.4.2610.5.1710.6.910.7.5
Bitnami mysql-client >=10.3.0, <10.3.36>=10.4.0, <10.4.26>=10.5.0, <10.5.17>=10.6.0, <10.6.9>=10.7.0, <10.7.5+2 more 10.3.3610.4.2610.5.1710.6.910.7.5

Open a package to see all its vulnerabilities.

Operating systems · 55 fixes

Oracle Linux 2 releases · 3 packages

fixed 5
judy galera mariadb
Oracle Linux fixes for CVE-2022-38791
ReleasePackageFixed in
8 judy 1.0.5-18.0.1.module+el8.3.0+9616+7a81225f
8 galera 26.4.14-1.module+el8.8.0+21173+e955d7af
8 mariadb +13 3:10.5.22-1.module+el8.8.0+21173+e955d7af
9 galera 26.4.14-1.0.1.el9_2
9 mariadb +13 3:10.5.22-1.el9_2

Red Hat 4 releases · 5 packages

eol 1 fixed 18
mariadb rh-mariadb105-galera rh-mariadb105-mariadb judy galera
Red Hat fixes for CVE-2022-38791
ReleasePackageFixed inAdvisory
7 mariadb +12 eol —
7 rh-mariadb105-galera 0:26.4.14-1.el7 RHSA-2023:7633
7 rh-mariadb105-mariadb 3:10.5.22-1.el7 RHSA-2023:7633
8 (mariadb:10.3) judy 0:1.0.5-18.module+el8+2765+cfa4f87b RHSA-2023:5259
8 (mariadb:10.3) galera 0:25.3.37-1.module+el8.8.0+19444+aac3c36b RHSA-2023:5259
8 (mariadb:10.3) mariadb +12 3:10.3.39-1.module+el8.8.0+19673+72b0d35f RHSA-2023:5259

13 more rows

alma 3 releases · 3 packages

fixed 8
judy galera mariadb
alma fixes for CVE-2022-38791
ReleasePackageFixed in
8 (mariadb:10.3) judy 1.0.5-18.module_el8.6.0+2867+72759d2f
8 (mariadb:10.3) galera 25.3.37-1.module_el8.8.0+3609+204d4ab0
8 (mariadb:10.3) mariadb +12 3:10.3.39-1.module_el8.8.0+3609+204d4ab0
8 (mariadb:10.5) judy 1.0.5-18.module_el8.6.0+3072+3c630e87
8 (mariadb:10.5) galera 26.4.14-1.module_el8.8.0+3620+5d452900
8 (mariadb:10.5) mariadb +13 3:10.5.22-1.module_el8.8.0+3620+5d452900

2 more rows

amazon linux 1 release · 1 package

fixed 1
mariadb105
amazon linux fixes for CVE-2022-38791
ReleasePackageFixed in
2023 mariadb105 +27 3:10.5.18-1.amzn2023.0.1

debian 2 releases · 2 packages

fixed 2
mariadb-10-3 mariadb-10-5
debian fixes for CVE-2022-38791
ReleasePackageFixed in
10 mariadb-10-3 1:10.3.36-0+deb10u1
11 mariadb-10-5 1:10.5.18-0+deb11u1

openSUSE 1 release · 1 package

fixed 1
libmariadbd-devel
openSUSE fixes for CVE-2022-38791
ReleasePackageFixed inAdvisory
Tumbleweed libmariadbd-devel +9 10.9.3-1.1 openSUSE-SU-2024:12360-1

rocky 2 releases · 3 packages

fixed 15
judy galera mariadb
rocky fixes for CVE-2022-38791
ReleasePackageFixed in
8 (mariadb:10.3) judy 1.0.5-18.module+el8.10.0+1674+fa55eae9
8 (mariadb:10.3) judy 1.0.5-18.module+el8.10.0+1925+356c22e8
8 (mariadb:10.3) judy 1.0.5-18.module+el8.10.0+40062+b4bfe4b1
8 (mariadb:10.3) judy 1.0.5-18.module+el8.4.0+427+adf35707
8 (mariadb:10.3) judy 1.0.5-18.module+el8.4.0+431+26aaed18
8 (mariadb:10.3) galera 25.3.37-1.module+el8.10.0+40062+b4bfe4b1

9 more rows

root.io debian 1 release · 1 package

fixed 1
rootio-mariadb-10-5
root.io debian fixes for CVE-2022-38791
ReleasePackageFixed in
11 rootio-mariadb-10-5 1:10.5.18-0+deb11u1

ubuntu 3 releases · 2 packages

fixed 3
mariadb-10-3 mariadb-10-6
ubuntu fixes for CVE-2022-38791
ReleasePackageFixed in
20.04 mariadb-10-3 1:10.3.37-0ubuntu0.20.04.1
20.04-ESM mariadb-10-3 1:10.3.37-0ubuntu0.20.04.1
22.04 mariadb-10-6 1:10.6.11-0ubuntu0.22.04.1

References

Show all 39 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.