# CVE-2022-31621: mariadb-10.5: MariaDB Server before 10.7 is vulnerable to Denial of Service

CVE-2022-31621 is fixed in 17 products on 1 platform, first by RHSA-2022:1557, released April 26, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-31621
- Priority: High
- CVSS: 7.5 (medium)
- EPSS: 0.0022
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 26, 2022

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | Judy RHEL 8 | 0:1.0.5-18.module+el8.4.0+9031+9abc7af9 | [RHSA-2022:1557](https://patchblox.com/security/data/fix/linux/rhsa-2022-1557.md) | Apr 26, 2022 |
| Linux | Judy almalinux 8 | 1.0.5-18.module_el8.6.0+2867+72759d2f | [ALSA-2022:1557](https://patchblox.com/security/data/fix/linux/alsa-2022-1557.md) | Apr 26, 2022 |
| Linux | Judy rocky 8 | 0:1.0.5-18.module+el8.4.0+427+adf35707 | [RLSA-2022:1557](https://patchblox.com/security/data/fix/linux/rlsa-2022-1557.md) | Apr 26, 2022 |
| Linux | galera RHEL 8 | 0:26.4.9-4.module+el8.5.0+14125+d11efe18 | [RHSA-2022:1557](https://patchblox.com/security/data/fix/linux/rhsa-2022-1557.md) | Apr 26, 2022 |
| Linux | galera almalinux 8 | 26.4.9-4.module_el8.6.0+2761+593e5e59 | [ALSA-2022:1557](https://patchblox.com/security/data/fix/linux/alsa-2022-1557.md) | Apr 26, 2022 |
| Linux | galera rocky 8 | 0:26.4.9-4.module+el8.5.0+773+f75e97f7 | [RLSA-2022:1557](https://patchblox.com/security/data/fix/linux/rlsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb RHEL 8 | 3:10.5.13-1.module+el8.5.0+14125+d11efe18 | [RHSA-2022:1557](https://patchblox.com/security/data/fix/linux/rhsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb almalinux 8 | 3:10.5.13-1.module_el8.5.0+2637+d11efe18 | [ALSA-2022:1557](https://patchblox.com/security/data/fix/linux/alsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb rocky 8 | 3:10.5.13-1.module+el8.5.0+773+f75e97f7 | [RLSA-2022:1557](https://patchblox.com/security/data/fix/linux/rlsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-10.5 Debian 11.6 (bullseye) | 1:10.5.15-0+deb11u1 | [DEBIAN-CVE-2022-31621](https://patchblox.com/security/data/fix/linux/debian-cve-2022-31621.md) | May 25, 2022 |
| Linux | mariadb-backup RHEL 8 | 3:10.5.13-1.module+el8.5.0+14125+d11efe18 | [RHSA-2022:1557](https://patchblox.com/security/data/fix/linux/rhsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-backup almalinux 8 | 3:10.5.13-1.module_el8.6.0+2761+593e5e59 | [ALSA-2022:1557](https://patchblox.com/security/data/fix/linux/alsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-common RHEL 8 | 3:10.5.13-1.module+el8.5.0+14125+d11efe18 | [RHSA-2022:1557](https://patchblox.com/security/data/fix/linux/rhsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-common almalinux 8 | 3:10.5.13-1.module_el8.6.0+2761+593e5e59 | [ALSA-2022:1557](https://patchblox.com/security/data/fix/linux/alsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-devel RHEL 8 | 3:10.5.13-1.module+el8.5.0+14125+d11efe18 | [RHSA-2022:1557](https://patchblox.com/security/data/fix/linux/rhsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-devel almalinux 8 | 3:10.5.13-1.module_el8.5.0+2637+d11efe18 | [ALSA-2022:1557](https://patchblox.com/security/data/fix/linux/alsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-embedded RHEL 8 | 3:10.5.13-1.module+el8.5.0+14125+d11efe18 | [RHSA-2022:1557](https://patchblox.com/security/data/fix/linux/rhsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-embedded almalinux 8 | 3:10.5.13-1.module_el8.6.0+2761+593e5e59 | [ALSA-2022:1557](https://patchblox.com/security/data/fix/linux/alsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-embedded-devel RHEL 8 | 3:10.5.13-1.module+el8.5.0+14125+d11efe18 | [RHSA-2022:1557](https://patchblox.com/security/data/fix/linux/rhsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-embedded-devel almalinux 8 | 3:10.5.13-1.module_el8.6.0+2761+593e5e59 | [ALSA-2022:1557](https://patchblox.com/security/data/fix/linux/alsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-errmsg RHEL 8 | 3:10.5.13-1.module+el8.5.0+14125+d11efe18 | [RHSA-2022:1557](https://patchblox.com/security/data/fix/linux/rhsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-errmsg almalinux 8 | 3:10.5.13-1.module_el8.6.0+2761+593e5e59 | [ALSA-2022:1557](https://patchblox.com/security/data/fix/linux/alsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-gssapi-server RHEL 8 | 3:10.5.13-1.module+el8.5.0+14125+d11efe18 | [RHSA-2022:1557](https://patchblox.com/security/data/fix/linux/rhsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-gssapi-server almalinux 8 | 3:10.5.13-1.module_el8.6.0+2761+593e5e59 | [ALSA-2022:1557](https://patchblox.com/security/data/fix/linux/alsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-oqgraph-engine RHEL 8 | 3:10.5.13-1.module+el8.5.0+14125+d11efe18 | [RHSA-2022:1557](https://patchblox.com/security/data/fix/linux/rhsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-oqgraph-engine almalinux 8 | 3:10.5.13-1.module_el8.6.0+2761+593e5e59 | [ALSA-2022:1557](https://patchblox.com/security/data/fix/linux/alsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-pam RHEL 8 | 3:10.5.13-1.module+el8.5.0+14125+d11efe18 | [RHSA-2022:1557](https://patchblox.com/security/data/fix/linux/rhsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-pam almalinux 8 | 3:10.5.13-1.module_el8.6.0+2761+593e5e59 | [ALSA-2022:1557](https://patchblox.com/security/data/fix/linux/alsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-server RHEL 8 | 3:10.5.13-1.module+el8.5.0+14125+d11efe18 | [RHSA-2022:1557](https://patchblox.com/security/data/fix/linux/rhsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-server almalinux 8 | 3:10.5.13-1.module_el8.5.0+2637+d11efe18 | [ALSA-2022:1557](https://patchblox.com/security/data/fix/linux/alsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-server-galera RHEL 8 | 3:10.5.13-1.module+el8.5.0+14125+d11efe18 | [RHSA-2022:1557](https://patchblox.com/security/data/fix/linux/rhsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-server-galera almalinux 8 | 3:10.5.13-1.module_el8.6.0+2761+593e5e59 | [ALSA-2022:1557](https://patchblox.com/security/data/fix/linux/alsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-server-utils RHEL 8 | 3:10.5.13-1.module+el8.5.0+14125+d11efe18 | [RHSA-2022:1557](https://patchblox.com/security/data/fix/linux/rhsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-server-utils almalinux 8 | 3:10.5.13-1.module_el8.6.0+2761+593e5e59 | [ALSA-2022:1557](https://patchblox.com/security/data/fix/linux/alsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-test RHEL 8 | 3:10.5.13-1.module+el8.5.0+14125+d11efe18 | [RHSA-2022:1557](https://patchblox.com/security/data/fix/linux/rhsa-2022-1557.md) | Apr 26, 2022 |
| Linux | mariadb-test almalinux 8 | 3:10.5.13-1.module_el8.6.0+2761+593e5e59 | [ALSA-2022:1557](https://patchblox.com/security/data/fix/linux/alsa-2022-1557.md) | Apr 26, 2022 |

---

Data as of 2026-11-11T01:43:54Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
