Medium severity · published May 25, 2022
CVE-2022-31621
MariaDB Server before 10.7 is vulnerable to Denial of Service
5.5
CVSS
0.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 13% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MA
Mariadb · Mariadb
before 10.2.41; 10.3.0 before 10.3.32; 10.4.0 before 10.4.22; 10.5.0 before 10.5.13; 10.6.0 before 10.6.5 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-31621
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-31621
Patch
https://github.com/MariaDB/server/commit/b1351c15946349f9daa7e5297fb2ac6f3139e4a8
jira.mariadb.org
https://jira.mariadb.org/browse/MDEV-26561
jira.mariadb.org
https://jira.mariadb.org/browse/MDEV-26574
Issue Tracking
https://jira.mariadb.org/browse/MDEV-26574?filter=-2
Third Party Advisory
https://security.netapp.com/advisory/ntap-20220707-0006/
More from Mariadb
9.9
CVE-2026-85748
MariaDB: Use-after-free with a large number of SYS_REFCURSOR's
9.9
CVE-2026-85746
MariaDB: Out-of-bound buffer write on in `ST_AsText` of nested GeometryCollections
9.9
CVE-2026-92262
MariaDB: Numerous issues caused by historical #mysql50# tablename encoding bypass.
9.9
CVE-2026-32710
Heap-based Buffer Overflow in MariaDB
9.8
CVE-2026-44170
MariaDB: Argument injection in CONNECT REST Xcurl on Windows via unsanitized URL
