Related Vulnerabilities: CVE-2022-31621  

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.

Description

The MITRE CVE dictionary describes this issue as:

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.

Additional Information

  • Bugzilla 2092353: CVE-2022-31621 mariadb: improper locking bug due to unreleased lock in the ds_xbstream.cc
  • CWE-667: Improper Locking
  • FAQ: Frequently asked questions about CVE-2022-31621