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-31621

mariadb: improper locking due to unreleased lock in the ds_xbstream.cc

Overview

Published
25 May 2022
Modified
17 Jun 2026
Medium CVE
3 Registry packages
65 OS packages
6 Linux distributions
Yes Fix available

Description

MariaDB Server before 10.7 is vulnerable to Denial of Service. In extra/mariabackup/ds_xbstream.cc, when an error occurs (stream_ctxt->dest_file == NULL) while executing the method xbstream_open, 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.

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-31621
EcosystemPackageVulnerableFixed in
Bitnami mariadb <10.2.41>=10.3.0, <10.3.32>=10.4.0, <10.4.22>=10.5.0, <10.5.13>=10.6.0, <10.6.5 10.2.4110.3.3210.4.2210.5.1310.6.5
Bitnami mariadb-min <10.2.41>=10.3.0, <10.3.32>=10.4.0, <10.4.22>=10.5.0, <10.5.13>=10.6.0, <10.6.5 10.2.4110.3.3210.4.2210.5.1310.6.5
Bitnami mysql-client <10.2.41>=10.3.0, <10.3.32>=10.4.0, <10.4.22>=10.5.0, <10.5.13>=10.6.0, <10.6.5 10.2.4110.3.3210.4.2210.5.1310.6.5

Open a package to see all its vulnerabilities.

Operating systems · 39 fixes

Red Hat 3 releases · 7 packages

eol 1 fixed 16
mariadb rh-mariadb103-galera rh-mariadb105-galera rh-mariadb103-mariadb rh-mariadb105-mariadb judy +1
Red Hat fixes for CVE-2022-31621
ReleasePackageFixed inAdvisory
7 mariadb +12 eol —
7 rh-mariadb103-galera 0:25.3.34-4.el7 RHSA-2022:1010
7 rh-mariadb105-galera 0:26.4.9-3.el7 RHSA-2022:1007
7 rh-mariadb103-mariadb +18 3:10.3.32-2.el7 RHSA-2022:1010
7 rh-mariadb105-mariadb +20 3:10.5.13-1.el7 RHSA-2022:1007
8 (mariadb:10.3) judy 0:1.0.5-18.module+el8+2765+cfa4f87b RHSA-2022:1556

11 more rows

alma 2 releases · 3 packages

fixed 6
judy galera mariadb
alma fixes for CVE-2022-31621
ReleasePackageFixed in
8 (mariadb:10.3) judy 1.0.5-18.module_el8.5.0+2632+14ced695
8 (mariadb:10.3) galera 25.3.34-4.module_el8.5.0+2632+14ced695
8 (mariadb:10.3) mariadb +12 3:10.3.32-2.module_el8.5.0+2632+14ced695
8 (mariadb:10.5) judy 1.0.5-18.module_el8.5.0+2637+d11efe18
8 (mariadb:10.5) galera 26.4.9-4.module_el8.5.0+2637+d11efe18
8 (mariadb:10.5) mariadb +13 3:10.5.13-1.module_el8.5.0+2637+d11efe18

alpine 4 releases · 1 package

fixed 4
mariadb
alpine fixes for CVE-2022-31621
ReleasePackageFixed in
3.22 mariadb 10.6.7-r0
3.23 mariadb 10.6.7-r0
3.24 mariadb 10.6.7-r0
edge mariadb 10.6.7-r0

debian 2 releases · 2 packages

fixed 2
mariadb-10-3 mariadb-10-5
debian fixes for CVE-2022-31621
ReleasePackageFixed in
10 mariadb-10-3 1:10.3.34-0+deb10u1
11 mariadb-10-5 1:10.5.15-0+deb11u1

rocky 2 releases · 3 packages

fixed 9
galera mariadb judy
rocky fixes for CVE-2022-31621
ReleasePackageFixed in
8 galera 25.3.34-4.module+el8.5.0+777+18007c86
8 galera 26.4.9-4.module+el8.5.0+773+f75e97f7
8 mariadb +12 3:10.3.32-2.module+el8.5.0+777+18007c86
8 mariadb +13 3:10.5.13-1.module+el8.5.0+773+f75e97f7
8 (mariadb:10.3) judy 1.0.5-18.module+el8.4.0+427+adf35707
8 (mariadb:10.3) galera 25.3.34-4.module+el8.5.0+777+18007c86

3 more rows

root.io debian 1 release · 1 package

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

References

Show all 59 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.