cve.bz

CVE-2022-38791 Improper Locking

5.5 mediumEPSS 0.2%

Medium (5.5). EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.2% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 9th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-667 Improper Locking
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-38791 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-38791?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-38791?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-38791 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
mariadb:mariadbfrom 10.3.0 before 10.3.36
mariadb:mariadbfrom 10.4.0 before 10.4.26
mariadb:mariadbfrom 10.5.0 before 10.5.17
mariadb:mariadbfrom 10.6.0 before 10.6.9
mariadb:mariadbfrom 10.7.0 before 10.7.5
mariadb:mariadbfrom 10.8.0 before 10.8.4
mariadb:mariadb10.9.1
fedoraproject:fedora35
fedoraproject:fedora36
fedoraproject:fedora37

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10mariadb-10.31:10.3.36-0+deb10u1DLA-3114-1
Ubuntu16.04:LTSmariadb-10.0no fix listedUBUNTU-CVE-2022-38791
Ubuntu18.04:LTSmariadb-10.1no fix listedUBUNTU-CVE-2022-38791
Ubuntu20.04:LTSmariadb-10.31:10.3.37-0ubuntu0.20.04.1UBUNTU-CVE-2022-38791
Ubuntu22.04:LTSmariadb-10.61:10.6.11-0ubuntu0.22.04.1UBUNTU-CVE-2022-38791
Red Hatenterprise_linux:8::appstreamJudy, Judy-debuginfo, Judy-debugsource0:1.0.5-18.module+el8+2765+cfa4f87bRHSA-2023:5259
Red Hatenterprise_linux:8::appstreamJudy, Judy-debuginfo, Judy-debugsource0:1.0.5-18.module+el8.4.0+9031+9abc7af9RHSA-2023:5683
Red Hatenterprise_linux:8::appstreamgalera, galera-debuginfo, galera-debugsource0:25.3.37-1.module+el8.8.0+19444+aac3c36bRHSA-2023:5259
Red Hatenterprise_linux:8::appstreamgalera, galera-debuginfo, galera-debugsource0:26.4.14-1.module+el8.8.0+20134+a92c7654RHSA-2023:5683
Red Hatenterprise_linux:8::appstreammariadb, mariadb-pam, mariadb-test and 21 more3:10.5.22-1.module+el8.8.0+20134+a92c7654RHSA-2023:5683
Red Hatenterprise_linux:8::appstreammariadb, mariadb-test, mariadb-devel and 19 more3:10.3.39-1.module+el8.8.0+19673+72b0d35fRHSA-2023:5259
Red Hatenterprise_linux:9::appstreamgalera, galera-debuginfo, galera-debugsource0:26.4.14-1.el9_2RHSA-2023:5684
Red Hatenterprise_linux:9::appstreammariadb, mariadb-pam, mariadb-backup and 18 more3:10.5.22-1.el9_2RHSA-2023:5684
Red Hatenterprise_linux:9::crbmariadb-test, mariadb-devel, mariadb-debuginfo and 10 more3:10.5.22-1.el9_2RHSA-2023:5684
Red Hatrhel_aus:8.4::appstream, rhel_e4s:8.4::appstream, rhel_tus:8.4::appstreamJudy, Judy-debuginfo, Judy-debugsource0:1.0.5-18.module+el8.4.0+9031+9abc7af9RHSA-2023:6821
Red Hatrhel_aus:8.4::appstream, rhel_e4s:8.4::appstream, rhel_tus:8.4::appstreamgalera, galera-debuginfo, galera-debugsource0:26.4.14-1.module+el8.4.0+20291+fd32d29cRHSA-2023:6821
Red Hatrhel_aus:8.4::appstream, rhel_e4s:8.4::appstream, rhel_tus:8.4::appstreammariadb, mariadb-pam, mariadb-test and 21 more3:10.5.22-1.module+el8.4.0+20291+fd32d29cRHSA-2023:6821
8 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS and 1 moremariadb10.4.28-150200.3.38.1SUSE-SU-2023:0631-1
SUSELinux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1mariadb10410.4.30-150100.3.5.10SUSE-RU-2023:3956-1
SUSELinux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1python-mysqlclient1.4.6-150100.3.3.7SUSE-RU-2023:3956-1
SUSELinux Enterprise Module for Package Hub 15 SP3, Linux Enterprise Module for Server Applications 15 SP3mariadb10.5.17-150300.3.21.1SUSE-SU-2022:3391-1
SUSELinux Enterprise Module for Server Applications 15 SP4mariadb10.6.10-150400.3.17.1SUSE-RU-2022:3855-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5lz41.8.0-3.5.2SUSE-RU-2023:4991-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5mariadb-connector-c3.1.22-2.35.1SUSE-RU-2023:4991-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5mariadb10410.4.30-8.5.46SUSE-RU-2023:4991-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5python-mysqlclient1.3.14-8.9.2SUSE-RU-2023:4991-1
openSUSELeap 15.3mariadb10.5.17-150300.3.21.1SUSE-SU-2022:3391-1
openSUSELeap 15.4mariadb10.6.10-150400.3.17.1SUSE-RU-2022:3855-1
openSUSETumbleweedmariadb10.9.3-1.1openSUSE-SU-2024:12360-1
AlmaLinux8Judy1.0.5-18.module_el8.6.0+2867+72759d2fALSA-2023:5259
AlmaLinux8Judy1.0.5-18.module_el8.6.0+3072+3c630e87ALSA-2023:5683
AlmaLinux8Judy1.0.5-18.module_el8.6.0+3138+72759d2fALSA-2023:5259
AlmaLinux8Judy1.0.5-18.module_el8.6.0+3139+3c630e87ALSA-2023:5683
AlmaLinux8galera25.3.37-1.module_el8.8.0+3609+204d4ab0ALSA-2023:5259
AlmaLinux8galera26.4.14-1.module_el8.8.0+3620+5d452900ALSA-2023:5683
AlmaLinux8mariadb, mariadb-pam, mariadb-test and 11 more3:10.5.22-1.module_el8.8.0+3620+5d452900ALSA-2023:5683
AlmaLinux8mariadb, mariadb-test, mariadb-devel and 10 more3:10.3.39-1.module_el8.8.0+3609+204d4ab0ALSA-2023:5259
AlmaLinux9galera26.4.14-1.el9_2.alma.1ALSA-2023:5684
AlmaLinux9mariadb, mariadb-pam, mariadb-test and 11 more3:10.5.22-1.el9_2.alma.1ALSA-2023:5684
Rocky Linux8Judy0:1.0.5-18.module+el8.10.0+1674+fa55eae9RLSA-2023:5259
Rocky Linux8Judy0:1.0.5-18.module+el8.10.0+1925+356c22e8RLSA-2023:5259
Rocky Linux8Judy0:1.0.5-18.module+el8.4.0+427+adf35707RLSA-2023:5259 RLSA-2023:5683
Rocky Linux8Judy0:1.0.5-18.module+el8.4.0+431+26aaed18RLSA-2023:5259
Rocky Linux8galera0:25.3.37-1.module+el8.8.0+1452+2a7eab68RLSA-2023:5259
Rocky Linux8galera0:26.4.14-1.module+el8.8.0+1490+31c52b1fRLSA-2023:5683
Rocky Linux8mariadb3:10.3.39-1.module+el8.8.0+1452+2a7eab68RLSA-2023:5259
Rocky Linux8mariadb3:10.5.22-1.module+el8.8.0+1490+31c52b1fRLSA-2023:5683

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8mariadb:10.3-8080020230814130040.63b34585Fixed 2023-09-19RHSA-2023:5259
Red Hat Enterprise Linux 8mariadb:10.5-8080020231003163755.63b34585Fixed 2023-10-12RHSA-2023:5683
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportmariadb:10.5-8040020231006044227.522a0ee4Fixed 2023-11-08RHSA-2023:6821
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicemariadb:10.5-8040020231006044227.522a0ee4Fixed 2023-11-08RHSA-2023:6821
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionsmariadb:10.5-8040020231006044227.522a0ee4Fixed 2023-11-08RHSA-2023:6821
Red Hat Enterprise Linux 8.6 Extended Update Supportmariadb:10.5-8060020231005052631.ad008a3aFixed 2023-11-08RHSA-2023:6822
Red Hat Enterprise Linux 9mariadb-3:10.5.22-1.el9_2Fixed 2023-10-12RHSA-2023:5684
Red Hat Enterprise Linux 9.0 Extended Update Supportgalera-0:26.4.14-1.el9_0Fixed 2023-11-13RHSA-2023:6883
Red Hat Enterprise Linux 9.0 Extended Update Supportmariadb-3:10.5.22-1.el9_0Fixed 2023-11-13RHSA-2023:6883
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-mariadb105-mariadb-3:10.5.22-1.el7Fixed 2023-12-04RHSA-2023:7633
Red Hat Enterprise Linux 7mariadbOut of support scope
Red Hat OpenStack Platform 13 (Queens)mariadbOut of support scope
Red Hat Software Collectionsrh-mariadb103-mariadbWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-38791.

Attack patterns (CAPEC)

  • CAPEC-25 Forced Deadlock Likelihood: Low · Severity: High
  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON