cve.bz

CVE-2022-31622 mariadb mariadb: Improper Locking

5.5 mediumEPSS 0.3%Fix available

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

On this page
MariaDB Server before 10.7 is vulnerable to Denial of Service. In extra/mariabackup/ds_compress.cc, when an error occurs (pthread_create returns a nonzero value) while executing the method create_worker_threads, the held lock is not released correctly, which allows local users to trigger a denial of service due to the deadlock. Note: The vendor argues this is just an improper locking bug and not a vulnerability with adverse effects.

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.3% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 12th 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-31622 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-31622?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-31622?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-31622 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:mariadbbefore 10.2.42
mariadb:mariadbfrom 10.3.0 before 10.3.33
mariadb:mariadbfrom 10.4.0 before 10.4.23
mariadb:mariadbfrom 10.5.0 before 10.5.14
mariadb:mariadbfrom 10.6.0 before 10.6.6
mariadb:mariadbfrom 10.7.0 before 10.7.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatenterprise_linux:8::appstreamJudy, Judy-debuginfo, Judy-debugsource0:1.0.5-18.module+el8+2765+cfa4f87bRHSA-2022:6443
Red Hatenterprise_linux:8::appstreamJudy, Judy-debuginfo, Judy-debugsource0:1.0.5-18.module+el8.4.0+9031+9abc7af9RHSA-2022:5826
Red Hatenterprise_linux:8::appstreamgalera, galera-debuginfo, galera-debugsource0:25.3.35-1.module+el8.6.0+15949+4ba4ec26RHSA-2022:6443
Red Hatenterprise_linux:8::appstreamgalera, galera-debuginfo, galera-debugsource0:26.4.11-1.module+el8.6.0+15639+405b7427RHSA-2022:5826
Red Hatenterprise_linux:8::appstreammariadb, mariadb-pam, mariadb-test and 21 more3:10.5.16-2.module+el8.6.0+15639+405b7427RHSA-2022:5826
Red Hatenterprise_linux:8::appstreammariadb, mariadb-test, mariadb-devel and 19 more3:10.3.35-1.module+el8.6.0+15949+4ba4ec26RHSA-2022:6443
Red Hatenterprise_linux:9::appstreamgalera, galera-debuginfo, galera-debugsource0:26.4.11-1.el9_0RHSA-2022:5948
Red Hatenterprise_linux:9::appstreammariadb, mariadb-pam, mariadb-backup and 18 more3:10.5.16-2.el9_0RHSA-2022:5948
Red Hatenterprise_linux:9::appstreammysql-selinux0:1.0.5-1.el9_0RHSA-2022:5948
Red Hatenterprise_linux:9::crbmariadb-test, mariadb-devel, mariadb-debuginfo and 10 more3:10.5.16-2.el9_0RHSA-2022:5948
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
3 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8Judy1.0.5-18.module_el8.6.0+3072+3c630e87ALSA-2022:5826 ALSA-2022:6443
AlmaLinux8Judy1.0.5-18.module_el8.6.0+3139+3c630e87ALSA-2022:6443
AlmaLinux8galera25.3.35-1.module_el8.6.0+3265+230ed96bALSA-2022:6443
AlmaLinux8galera26.4.11-1.module_el8.6.0+3072+3c630e87ALSA-2022:5826
AlmaLinux8mariadb, mariadb-pam, mariadb-test and 11 more3:10.5.16-2.module_el8.6.0+3072+3c630e87ALSA-2022:5826
AlmaLinux8mariadb, mariadb-test, mariadb-devel and 10 more3:10.3.35-1.module_el8.6.0+3265+230ed96bALSA-2022:6443
AlmaLinux9mariadb, mariadb-pam, mariadb-test and 11 more3:10.5.16-2.el9_0ALSA-2022:5948
Rocky Linux8Judy0:1.0.5-18.module+el8.4.0+427+adf35707RLSA-2022:5826 RLSA-2022:6443
Rocky Linux8galera0:25.3.35-1.module+el8.6.0+1005+cdf19c22RLSA-2022:6443
Rocky Linux8galera0:26.4.11-1.module+el8.6.0+995+5ac2a483RLSA-2022:5826
Rocky Linux8mariadb3:10.3.35-1.module+el8.6.0+1005+cdf19c22RLSA-2022:6443
Rocky Linux8mariadb3:10.5.16-2.module+el8.6.0+995+5ac2a483RLSA-2022:5826
Rocky Linux9galera0:26.4.11-1.el9_0RLSA-2022:5948
Rocky Linux9mariadb3:10.5.16-2.el9_0RLSA-2022:5948
Rocky Linux9mysql-selinux0:1.0.5-1.el9_0RLSA-2022:5948
Alpinev3.16, v3.17, v3.18 and 6 moremariadb10.6.7-r0ALPINE-CVE-2022-31622

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

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8mariadb:10.5-8060020220614163302.ad008a3aFixed 2022-08-02RHSA-2022:5826
Red Hat Enterprise Linux 8mariadb:10.3-8060020220715055054.ad008a3aFixed 2022-09-13RHSA-2022:6443
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 9mariadb-3:10.5.16-2.el9_0Fixed 2022-08-09RHSA-2022:5948
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-mariadb105-mariadb-3:10.5.16-2.el7Fixed 2022-07-28RHSA-2022:5759
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-mariadb103-mariadb-3:10.3.35-1.el7Fixed 2022-09-01RHSA-2022:6306
Red Hat Enterprise Linux 7mariadbOut of support scope
Red Hat OpenStack Platform 13 (Queens)mariadbOut of support scope

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-31622.

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