PT-2022-4772 · Mariadb+9 · Mariadb+10

Zuming Jiang

·

Published

2021-05-27

·

Updated

2025-06-10

·

CVE-2021-46668

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions MariaDB versions 10.5.9 and earlier
Description The issue is related to an uncontrolled resource consumption in MariaDB. This can be exploited to cause a denial of service. The problem arises from certain long SELECT DISTINCT statements that improperly interact with storage-engine resource limitations for temporary data structures.
Recommendations For MariaDB versions 10.5.9 and earlier, consider upgrading to a version that contains a fix for this issue. As a temporary workaround, consider restricting the use of long SELECT DISTINCT statements to minimize the risk of exploitation. Additionally, review configuration settings related to storage-engine resource limitations to ensure they are properly set to prevent abuse.

Exploit

Fix

Resource Exhaustion

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2022:5826
ALSA-2022:5948
ALSA-2022:6443
ALT-PU-2022-2360
ALT-PU-2022-2446
ALT-PU-2023-1583
ALT-PU-2023-6462
AZL-8412
BDU:2022-05704
BIT-MARIADB-2021-46668
BIT-MARIADB-MIN-2021-46668
BIT-MYSQL-CLIENT-2021-46668
CESA-2022_5826
CESA-2022_6443
CVE-2021-46668
MGASA-2022-0070
OESA-2022-1616
OPENSUSE-SU-2022:0731-1
OPENSUSE-SU-2022_0725-1
OPENSUSE-SU-2022_0726-1
OPENSUSE-SU-2022_0731-1
OPENSUSE-SU-2022_0731-2
OPENSUSE-SU-2022_2561-1
OPENSUSE-SU-2024:11867-1
RHSA-2022:5759
RHSA-2022:5826
RHSA-2022:5948
RHSA-2022:6306
RHSA-2022:6443
RHSA-2022_5826
RHSA-2022_5948
RHSA-2022_6443
RHSA-2023:6821
RLSA-2022:5826
RLSA-2022:5948
RLSA-2022:6443
ROSA-SA-2023-2252
SUSE-RU-2023:3956-1
SUSE-RU-2023:4991-1
SUSE-SU-2022:0725-1
SUSE-SU-2022:0726-1
SUSE-SU-2022:0731-1
SUSE-SU-2022:0731-2
SUSE-SU-2022:0782-1
SUSE-SU-2022:2561-1
USN-5305-1

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Mariadb
Mariadb Server
Red Hat
Rocky Linux
Suse
Ubuntu