Skip to content
OpenAdvisories
High · 7.0 CVE-2022-24052 EUVD-2022-28967GHSA-pfvf-3927-r9fx

MariaDB CONNECT Storage Engine Heap-based Buffer Overflow Privilege Escalation Vulnerability. This vulnerability allows local attackers to …

Published Feb 18, 2022 · Updated Aug 3, 2024 · Assigned by zdi

Description

MariaDB CONNECT Storage Engine Heap-based Buffer Overflow Privilege Escalation Vulnerability. This vulnerability allows local attackers to escalate privileges on affected installations of MariaDB. Authentication is required to exploit this vulnerability. The specific flaw exists within the processing of SQL queries. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length heap-based buffer. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of the service account. Was ZDI-CAN-16190.

Affected products

VendorProductAffectedFixed
MariaDB MariaDB 10.6.5 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 11 mariadb-10.5 1:10.5.15-0+deb11u1 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS mariadb-10.3 1:10.3.34-0ubuntu0.20.04.1 USN-5305-1
Ubuntu 18.04 LTS mariadb-10.1 No fix yet —
Ubuntu 16.04 LTS mariadb-10.0 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 galera 26.4.11-1.el9_0 RHSA-2022:5948
RHEL 9 mariadb +13 3:10.5.16-2.el9_0 RHSA-2022:5948
RHEL 9 mysql-selinux 1.0.5-1.el9_0 RHSA-2022:5948
RHEL 8 Judy 1.0.5-18.module+el8.4.0+9031+9abc7af9 RHSA-2022:6443, RHSA-2022:5826
RHEL 8 galera 25.3.35-1.module+el8.6.0+15949+4ba4ec26 RHSA-2022:6443, RHSA-2022:5826
RHEL 8 mariadb +12 3:10.3.35-1.module+el8.6.0+15949+4ba4ec26 RHSA-2022:6443, RHSA-2022:5826
RHEL 8 mariadb-pam 3:10.5.16-2.module+el8.6.0+15639+405b7427 RHSA-2022:5826
RHEL 3 rh-mariadb103-mariadb +18 3:10.3.35-1.el7 RHSA-2022:6306
RHEL 3 rh-mariadb105-mariadb +20 3:10.5.16-2.el7 RHSA-2022:5759
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.4 TUS Judy 1.0.5-18.module+el8.4.0+9031+9abc7af9 RHSA-2023:6821
RHEL 8.4 TUS galera 26.4.14-1.module+el8.4.0+20291+fd32d29c RHSA-2023:6821
RHEL 8.4 TUS mariadb +13 3:10.5.22-1.module+el8.4.0+20291+fd32d29c RHSA-2023:6821
RHEL 8.4 E4S Judy 1.0.5-18.module+el8.4.0+9031+9abc7af9 RHSA-2023:6821
RHEL 8.4 E4S galera 26.4.14-1.module+el8.4.0+20291+fd32d29c RHSA-2023:6821
RHEL 8.4 E4S mariadb +13 3:10.5.22-1.module+el8.4.0+20291+fd32d29c RHSA-2023:6821
RHEL 8.4 AUS Judy 1.0.5-18.module+el8.4.0+9031+9abc7af9 RHSA-2023:6821
RHEL 8.4 AUS galera 26.4.14-1.module+el8.4.0+20291+fd32d29c RHSA-2023:6821
RHEL 8.4 AUS mariadb +13 3:10.5.22-1.module+el8.4.0+20291+fd32d29c RHSA-2023:6821

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 mariadb +13 3:10.5.16-2.el9_0 ALSA-2022:5948
AlmaLinux 8 Judy 1.0.5-18.module_el8.6.0+3072+3c630e87 ALSA-2022:6443, ALSA-2022:5826
AlmaLinux 8 galera 25.3.35-1.module_el8.6.0+3265+230ed96b ALSA-2022:6443, ALSA-2022:5826
AlmaLinux 8 mariadb +12 3:10.3.35-1.module_el8.6.0+3265+230ed96b ALSA-2022:6443, ALSA-2022:5826
AlmaLinux 8 mariadb-pam 3:10.5.16-2.module_el8.6.0+3072+3c630e87 ALSA-2022:5826

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 galera 26.4.11-1.el9_0 RLSA-2022:5948
Rocky Linux 9 mariadb 3:10.5.16-2.el9_0 RLSA-2022:5948
Rocky Linux 9 mysql-selinux 1.0.5-1.el9_0 RLSA-2022:5948
Rocky Linux 8 Judy 1.0.5-18.module+el8.4.0+427+adf35707 RLSA-2022:6443, RLSA-2022:5826
Rocky Linux 8 galera 25.3.35-1.module+el8.6.0+1005+cdf19c22 RLSA-2022:6443, RLSA-2022:5826
Rocky Linux 8 mariadb 3:10.3.35-1.module+el8.6.0+1005+cdf19c22 RLSA-2022:6443, RLSA-2022:5826
ReleasePackageFixed inAdvisory
SLES 15 SP4 mariadb 10.6.8-150400.3.7.1 SUSE-SU-2022:2561-1
SLES 15 SP3 mariadb 10.5.15-150300.3.15.1 SUSE-SU-2022:0731-1
SLES 15 SP2 mariadb 10.4.24-3.25.1 SUSE-SU-2022:0726-1
SLES 15 SP1 mariadb 10.2.43-3.51.1 SUSE-SU-2022:0725-1
SLES 15 SP1 mariadb104 10.4.30-150100.3.5.10 SUSE-RU-2023:3956-1
SLES 15 SP1 python-mysqlclient 1.4.6-150100.3.3.7 SUSE-RU-2023:3956-1
SLES 15 mariadb 10.2.43-3.51.1 SUSE-SU-2022:0725-1
Show 18 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 lz4 1.8.0-3.5.2 SUSE-RU-2023:4991-1
SLES 12 SP5 mariadb 10.2.43-3.47.1 SUSE-SU-2022:0782-1
SLES 12 SP5 mariadb-connector-c 3.1.22-2.35.1 SUSE-RU-2023:4991-1
SLES 12 SP5 mariadb104 10.4.30-8.5.46 SUSE-RU-2023:4991-1
SLES 12 SP5 python-mysqlclient 1.3.14-8.9.2 SUSE-RU-2023:4991-1
SLES 12 SP4 mariadb 10.2.43-3.47.1 SUSE-SU-2022:0782-1
SLES for SAP 15 SP2 mariadb 10.4.24-3.25.1 SUSE-SU-2022:0726-1
SLES for SAP 15 SP1 mariadb 10.2.43-3.51.1 SUSE-SU-2022:0725-1
SLES for SAP 15 SP1 mariadb104 10.4.30-150100.3.5.10 SUSE-RU-2023:3956-1
SLES for SAP 15 SP1 python-mysqlclient 1.4.6-150100.3.3.7 SUSE-RU-2023:3956-1
SLES for SAP 15 mariadb 10.2.43-3.51.1 SUSE-SU-2022:0725-1
SLES for SAP 12 SP5 lz4 1.8.0-3.5.2 SUSE-RU-2023:4991-1
SLES for SAP 12 SP5 mariadb 10.2.43-3.47.1 SUSE-SU-2022:0782-1
SLES for SAP 12 SP5 mariadb-connector-c 3.1.22-2.35.1 SUSE-RU-2023:4991-1
SLES for SAP 12 SP5 mariadb104 10.4.30-8.5.46 SUSE-RU-2023:4991-1
SLES for SAP 12 SP5 python-mysqlclient 1.3.14-8.9.2 SUSE-RU-2023:4991-1
SLES for SAP 12 SP4 mariadb 10.2.43-3.47.1 SUSE-SU-2022:0782-1
SLE Real Time 15 SP2 mariadb 10.4.24-3.25.1 SUSE-SU-2022:0726-1
SLE HPC 15 SP2 mariadb 10.4.24-3.25.1 SUSE-SU-2022:0726-1
SLE HPC 15 SP1 mariadb 10.2.43-3.51.1 SUSE-SU-2022:0725-1
SLE HPC 15 SP1 mariadb104 10.4.30-150100.3.5.10 SUSE-RU-2023:3956-1
SLE HPC 15 SP1 python-mysqlclient 1.4.6-150100.3.3.7 SUSE-RU-2023:3956-1
SLE HPC 15 mariadb 10.2.43-3.51.1 SUSE-SU-2022:0725-1
SUSE OpenStack Cloud Crowbar 9 mariadb 10.2.43-3.47.1 SUSE-SU-2022:0782-1
SUSE OpenStack Cloud 9 mariadb 10.2.43-3.47.1 SUSE-SU-2022:0782-1
SUSE Manager Server 4.1 mariadb 10.4.24-3.25.1 SUSE-SU-2022:0726-1
SUSE Manager Retail Branch Server 4.1 mariadb 10.4.24-3.25.1 SUSE-SU-2022:0726-1
SUSE Manager Proxy 4.1 mariadb 10.4.24-3.25.1 SUSE-SU-2022:0726-1
SUSE Enterprise Storage 7 mariadb 10.4.24-3.25.1 SUSE-SU-2022:0726-1
SUSE Enterprise Storage 6 mariadb 10.2.43-3.51.1 SUSE-SU-2022:0725-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed mariadb 10.7.3-1.1 openSUSE-SU-2024:11867-1
openSUSE Leap 15.4 mariadb 10.5.15-150300.3.15.1 SUSE-SU-2022:2561-1, SUSE-SU-2022:0731-2
openSUSE Leap 15.3 mariadb 10.5.15-150300.3.15.1 openSUSE-SU-2022:0731-1
ReleasePackageFixed inAdvisory
Alpine v3.24 mariadb 10.6.7-r0 —
Alpine v3.23 mariadb 10.6.7-r0 —
Alpine v3.22 mariadb 10.6.7-r0 —
Alpine v3.21 mariadb 10.6.7-r0 —
Alpine v3.20 mariadb 10.6.7-r0 —
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 mariadb 10.6.7-r0 —
Alpine v3.18 mariadb 10.6.7-r0 —
Alpine v3.17 mariadb 10.6.7-r0 —
Alpine v3.16 mariadb 10.6.7-r0 —
Alpine v3.15 mariadb 10.6.7-r0 —
Alpine v3.14 mariadb 10.5.15-r0 —
Alpine v3.13 mariadb 10.5.15-r0 —
Alpine v3.12 mariadb 10.4.24-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 mariadb105 +14 3:10.5.16-1.amzn2023.0.7 ALAS2023-2023-037

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) mariadb 10.6.7-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 galera 26.4.11-1.0.1.el9_0 ELSA-2022-5948
Oracle Linux 9 mariadb +13 3:10.5.16-2.el9_0 ELSA-2022-5948
Oracle Linux 9 mysql-selinux 1.0.5-1.el9_0 ELSA-2022-5948
Oracle Linux 8 Judy 1.0.5-18.module+el8.4.0+20040+caf70fad ELSA-2022-6443, ELSA-2022-5826
Oracle Linux 8 galera 25.3.35-1.module+el8.6.0+20730+e6b28fc7 ELSA-2022-6443, ELSA-2022-5826
Oracle Linux 8 mariadb +12 3:10.3.35-1.module+el8.6.0+20730+e6b28fc7 ELSA-2022-6443, ELSA-2022-5826
Oracle Linux 8 mariadb-pam 3:10.5.16-2.module+el8.6.0+20717+9b4a4c6e ELSA-2022-5826

Advisories 28

References