CVE-2022-38791: 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.
Medium CVSS 5.5
- CVE id
- CVE-2022-38791
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| MariaDB Runtimes and servers |
>= 10.3.0, < 10.3.36 >= 10.4.0, < 10.4.26 >= 10.5.0, < 10.5.17 >= 10.6.0, < 10.6.9 >= 10.7.0, < 10.7.5 >= 10.8.0, < 10.8.4 |
10.3.36, 10.4.26, 10.5.17, 10.6.9, 10.7.5, 10.8.4 |
How to fix it
Upgrade MariaDB to the fixed release of the line you run: 10.3.36, 10.4.26, 10.5.17, 10.6.9, 10.7.5, 10.8.4.
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
In MariaDB before 10.9.2, compresswrite in extra/mariabackup/dscompress.cc does not release data_mutex upon a stream write failure, which allows local users to trigger a deadlock.
References
- CVE-2022-38791 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2022-38791
- Web: https://jira.mariadb.org/browse/MDEV-28719
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WCOEGSVMIEXDZHBOSV6WVF7FAVRBR2JE/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WTVAONAZXJFGHAJ4RP2OF3EAMQCOTDSQ/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZHISY4YVO4S5QJYYIXCIAXBM7INOL4VY/
- Web: https://security.netapp.com/advisory/ntap-20221104-0008/
- Web: https://jira.mariadb.org/browse/MDEV-28719
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WCOEGSVMIEXDZHBOSV6WVF7FAVRBR2JE/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WTVAONAZXJFGHAJ4RP2OF3EAMQCOTDSQ/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZHISY4YVO4S5QJYYIXCIAXBM7INOL4VY/
- Web: https://security.netapp.com/advisory/ntap-20221104-0008/
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.