CVE-2022-31623
mariadb: improper locking due to the unreleased lock in extra/mariabackup/ds_compress.cc
Overview
Description
MariaDB Server before 10.7 is vulnerable to Denial of Service. In extra/mariabackup/ds_compress.cc, when an error occurs (i.e., going to the err label) while executing the method create_worker_threads, the held lock thd->ctrl_mutex 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
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | mariadb | <10.2.42>=10.3.0, <10.3.33>=10.4.0, <10.4.23>=10.5.0, <10.5.14>=10.6.0, <10.6.6+1 more | 10.2.4210.3.3310.4.2310.5.1410.6.6 |
| Bitnami | mariadb-min | <10.2.42>=10.3.0, <10.3.33>=10.4.0, <10.4.23>=10.5.0, <10.5.14>=10.6.0, <10.6.6+1 more | 10.2.4210.3.3310.4.2310.5.1410.6.6 |
| Bitnami | mysql-client | <10.2.42>=10.3.0, <10.3.33>=10.4.0, <10.4.23>=10.5.0, <10.5.14>=10.6.0, <10.6.6+1 more | 10.2.4210.3.3310.4.2310.5.1410.6.6 |
Open a package to see all its vulnerabilities.
Operating systems · 45 fixes
Oracle Linux 2 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | judy | 1.0.5-18.0.1.module+el8.3.0+9616+7a81225f |
| 8 | galera | 26.4.11-1.module+el8.6.0+20717+9b4a4c6e |
| 8 | mariadb +13 | 3:10.5.16-2.module+el8.6.0+20717+9b4a4c6e |
| 9 | mysql-selinux | 1.0.5-1.el9_0 |
| 9 | galera | 26.4.11-1.0.1.el9_0 |
| 9 | mariadb +13 | 3:10.5.16-2.el9_0 |
Red Hat 4 releases · 6 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | mariadb +12 | eol | — |
| 7 | rh-mariadb103-mariadb +18 | 3:10.3.35-1.el7 | RHSA-2022:6306 |
| 7 | rh-mariadb105-mariadb +20 | 3:10.5.16-2.el7 | RHSA-2022:5759 |
| 8 (mariadb:10.3) | judy | 0:1.0.5-18.module+el8+2765+cfa4f87b | RHSA-2022:6443 |
| 8 (mariadb:10.3) | galera | 0:25.3.35-1.module+el8.6.0+15949+4ba4ec26 | RHSA-2022:6443 |
| 8 (mariadb:10.3) | mariadb +12 | 3:10.3.35-1.module+el8.6.0+15949+4ba4ec26 | RHSA-2022:6443 |
9 more rows
alma 2 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (mariadb:10.5) | judy | 1.0.5-18.module_el8.6.0+3072+3c630e87 |
| 8 (mariadb:10.5) | galera | 25.3.35-1.module_el8.6.0+3265+230ed96b |
| 8 (mariadb:10.5) | mariadb +12 | 3:10.3.35-1.module_el8.6.0+3265+230ed96b |
| 8 (mariadb:10.5) | mariadb-pam | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 |
| 9 | mariadb +13 | 3:10.5.16-2.el9_0 |
alpine 4 releases · 1 package
| Release | Package | Fixed 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 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | mariadb105 +27 | 3:10.5.18-1.amzn2023.0.1 |
debian 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | mariadb-10-3 | 1:10.3.34-0+deb10u1 |
| 11 | mariadb-10-5 | 1:10.5.15-0+deb11u1 |
rocky 4 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | galera | 26.4.11-1.module+el8.6.0+995+5ac2a483 |
| 8 | mariadb +13 | 3:10.5.16-2.module+el8.6.0+995+5ac2a483 |
| 8 (mariadb:10.3) | judy | 1.0.5-18.module+el8.4.0+427+adf35707 |
| 8 (mariadb:10.3) | galera | 25.3.35-1.module+el8.6.0+1005+cdf19c22 |
| 8 (mariadb:10.3) | mariadb +12 | 3:10.3.35-1.module+el8.6.0+1005+cdf19c22 |
| 8 (mariadb:10.5) | judy | 1.0.5-18.module+el8.4.0+427+adf35707 |
5 more rows
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-mariadb-10-5 | 1:10.5.15-0+deb11u1 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2022:5948
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-31623
- bugzilla.redhat.com https://bugzilla.redhat.com/2049302
- bugzilla.redhat.com https://bugzilla.redhat.com/2050017
- bugzilla.redhat.com https://bugzilla.redhat.com/2050022
- bugzilla.redhat.com https://bugzilla.redhat.com/2050024
- bugzilla.redhat.com https://bugzilla.redhat.com/2050026
- bugzilla.redhat.com https://bugzilla.redhat.com/2050032
- bugzilla.redhat.com https://bugzilla.redhat.com/2050034
- bugzilla.redhat.com https://bugzilla.redhat.com/2068211
Show all 120 references
- bugzilla.redhat.com https://bugzilla.redhat.com/2068233
- bugzilla.redhat.com https://bugzilla.redhat.com/2068234
- bugzilla.redhat.com https://bugzilla.redhat.com/2069833
- bugzilla.redhat.com https://bugzilla.redhat.com/2074817
- bugzilla.redhat.com https://bugzilla.redhat.com/2074947
- bugzilla.redhat.com https://bugzilla.redhat.com/2074949
- bugzilla.redhat.com https://bugzilla.redhat.com/2074951
- bugzilla.redhat.com https://bugzilla.redhat.com/2074966
- bugzilla.redhat.com https://bugzilla.redhat.com/2074981
- bugzilla.redhat.com https://bugzilla.redhat.com/2074987
- bugzilla.redhat.com https://bugzilla.redhat.com/2074996
- bugzilla.redhat.com https://bugzilla.redhat.com/2074999
- bugzilla.redhat.com https://bugzilla.redhat.com/2075005
- bugzilla.redhat.com https://bugzilla.redhat.com/2075006
- bugzilla.redhat.com https://bugzilla.redhat.com/2075691
- bugzilla.redhat.com https://bugzilla.redhat.com/2075692
- bugzilla.redhat.com https://bugzilla.redhat.com/2075693
- bugzilla.redhat.com https://bugzilla.redhat.com/2075694
- bugzilla.redhat.com https://bugzilla.redhat.com/2075695
- bugzilla.redhat.com https://bugzilla.redhat.com/2075696
- bugzilla.redhat.com https://bugzilla.redhat.com/2075697
- bugzilla.redhat.com https://bugzilla.redhat.com/2075699
- bugzilla.redhat.com https://bugzilla.redhat.com/2075700
- bugzilla.redhat.com https://bugzilla.redhat.com/2075701
- bugzilla.redhat.com https://bugzilla.redhat.com/2076144
- bugzilla.redhat.com https://bugzilla.redhat.com/2076145
- bugzilla.redhat.com https://bugzilla.redhat.com/2092354
- bugzilla.redhat.com https://bugzilla.redhat.com/2092360
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2049302
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2050017
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2050022
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2050024
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2050026
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2050032
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2050034
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2068211
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2068233
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2068234
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2069833
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2074817
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2074947
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2074949
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2074951
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2074966
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2074981
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2074996
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2074999
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075005
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075006
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075691
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075693
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075694
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075695
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075697
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075700
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2076145
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2082644
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2092354
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2092360
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2104425
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2104431
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2104434
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2106008
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46659
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46661
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46663
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46664
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46665
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46668
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46669
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21427
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21595
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24048
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24050
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24051
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24052
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27376
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27377
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27378
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27379
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27380
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27381
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27383
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27384
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27386
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27387
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27445
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27447
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27448
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27449
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27452
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27456
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27458
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31622
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31623
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-32083
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-32085
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-32087
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-32088
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2022-5948.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2022:6443
- github.com https://github.com/MariaDB/server/commit/7c30bc38a588b22b01f11130cfe99e7f36accf94
- github.com https://github.com/MariaDB/server/pull/1938
- jira.mariadb.org https://jira.mariadb.org/browse/MDEV-26561
- jira.mariadb.org https://jira.mariadb.org/browse/MDEV-26574
- linux.oracle.com https://linux.oracle.com/cve/CVE-2022-31623.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2022-6443.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-31623
- security.netapp.com https://security.netapp.com/advisory/ntap-20220707-0006/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2022-31623
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.