CVE-2022-31623: MariaDB Server before 10.7 is vulnerable to Denial of Service.
Medium CVSS 5.5
- CVE id
- CVE-2022-31623
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| MariaDB Runtimes and servers |
< 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 >= 10.7.0, < 10.7.2 |
10.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2 |
How to fix it
Upgrade MariaDB to the fixed release of the line you run: 10.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2.
mariadbd --version
- Install the patched MariaDB release of your series (the mariadb image tag or your packages) and restart the server.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
MariaDB Server before 10.7 is vulnerable to Denial of Service. In extra/mariabackup/dscompress.cc, when an error occurs (i.e., going to the err label) while executing the method createworkerthreads, the held lock thd->ctrlmutex 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.
References
- CVE-2022-31623 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2022-31623
- Web: https://github.com/MariaDB/server/commit/7c30bc38a588b22b01f11130cfe99e7f36accf94
- Web: https://github.com/MariaDB/server/pull/1938
- Web: https://jira.mariadb.org/browse/MDEV-26561
- Web: https://jira.mariadb.org/browse/MDEV-26574
- Web: https://security.netapp.com/advisory/ntap-20220707-0006/
- Web: https://github.com/MariaDB/server/commit/7c30bc38a588b22b01f11130cfe99e7f36accf94
- Web: https://github.com/MariaDB/server/pull/1938
- Web: https://jira.mariadb.org/browse/MDEV-26561
- Web: https://jira.mariadb.org/browse/MDEV-26574
- Web: https://security.netapp.com/advisory/ntap-20220707-0006/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.