Heap-based buffer overflow in MariaDB - CVE-2022-24052
Published: February 12, 2022 / Updated: February 16, 2022
Vulnerability details
The vulnerability allows a remote user to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error in the storage engine when processing CONNECT requests. A remote user can send a specially crafted SQL query to the database instance, trigger a heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Gentoo Linux
Amazon Linux AMI
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Enterprise Storage
Anolis OS
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Module for Server Applications
openSUSE Leap
openEuler
Ubuntu
Fedora
Red Hat Software Collections
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
rh-mariadb103-mariadb (Red Hat package)
rh-mariadb103-galera (Red Hat package)
mysql-selinux (Red Hat package)
Judy-devel
Judy
asio-devel
mariadb-debuginfo
mariadb-errormessages
mariadb-tools-debuginfo
libmysqld-devel
libmysqld19
libmysqld19-debuginfo
mariadb
mariadb-client
mariadb-client-debuginfo
mariadb-debugsource
mariadb-tools
mariadb-server (Ubuntu package)
mariadb-server
mariadb-common
mariadb-devel
mariadb-errmessage
mariadb-backup
mariadb-embedded
mariadb-gssapi-server
mariadb-test
mariadb-cracklib
mariadb-server-galera
mariadb-embedded-devel
mariadb-oqgraph-engine
mariadb-errmsg
mariadb-server-utils
libmariadbd19-debuginfo
libmariadbd19
libmariadbd-devel
mariadb-galera
mariadb105
rh-mariadb105-mariadb (Red Hat package)
mariadb (Red Hat package)
mariadb-pam
mariadb-test-debuginfo
mariadb-rpm-macros
mariadb-bench
mariadb-bench-debuginfo
galera
rh-mariadb105-galera (Red Hat package)
galera (Red Hat package)
PowerVC
How to mitigate CVE-2022-24052
rh-mariadb103-mariadb (Red Hat package) - update to 10.3.35-1.el7
rh-mariadb103-galera (Red Hat package) - update to 25.3.35-1.el7
mysql-selinux (Red Hat package) - update to 1.0.5-1.el9_0
Judy-devel - update to 1.0.5-18
Judy - update to 1.0.5-18
asio-devel - update to 1.10.8-7
PowerVC - update to 2.0.2.1
mariadb-debuginfo - addressed in versions 10.2.43-3.51.1, 10.4.24-3.25.1, 10.5.15-150300.3.15.1, 10.6.8-150400.3.7.1
mariadb-errormessages - addressed in versions 10.2.43-3.51.1, 10.4.24-3.25.1, 10.5.15-150300.3.15.1, 10.6.8-150400.3.7.1
mariadb-tools-debuginfo - addressed in versions 10.2.43-3.51.1, 10.4.24-3.25.1, 10.5.15-150300.3.15.1, 10.6.8-150400.3.7.1
libmysqld-devel - update to 10.2.43-3.51.1
libmysqld19 - update to 10.2.43-3.51.1
libmysqld19-debuginfo - update to 10.2.43-3.51.1
mariadb - addressed in versions 10.2.43-3.51.1, 10.4.24-3.25.1, 10.5.15-150300.3.15.1, 10.6.8-150400.3.7.1
mariadb-client - addressed in versions 10.2.43-3.51.1, 10.4.24-3.25.1, 10.5.15-150300.3.15.1, 10.6.8-150400.3.7.1
mariadb-client-debuginfo - addressed in versions 10.2.43-3.51.1, 10.4.24-3.25.1, 10.5.15-150300.3.15.1, 10.6.8-150400.3.7.1
mariadb-debugsource - addressed in versions 10.2.43-3.51.1, 10.4.24-3.25.1, 10.5.15-150300.3.15.1, 10.6.8-150400.3.7.1
mariadb-tools - addressed in versions 10.2.43-3.51.1, 10.4.24-3.25.1, 10.5.15-150300.3.15.1, 10.6.8-150400.3.7.1
mariadb-server (Ubuntu package) - addressed in versions 1:10.3.34-0ubuntu0.20.04.1, 1:10.5.15-0ubuntu0.21.10.1
mariadb-server - update to 10.3.34-1
mariadb-common - update to 10.3.34-1
mariadb - update to 10.3.34-1
mariadb-devel - update to 10.3.34-1
mariadb-errmessage - update to 10.3.34-1
mariadb-backup - update to 10.3.34-1
mariadb-debugsource - update to 10.3.34-1
mariadb-embedded - update to 10.3.34-1
mariadb-gssapi-server - update to 10.3.34-1
mariadb-debuginfo - update to 10.3.34-1
mariadb-test - update to 10.3.34-1
mariadb-cracklib - update to 10.3.34-1
mariadb-server-galera - update to 10.3.34-1
mariadb-embedded-devel - update to 10.3.34-1
mariadb-oqgraph-engine - update to 10.3.34-1
mariadb-test - addressed in versions 10.3.35-1.0.1, 10.5.16-2.0.1
mariadb - addressed in versions 10.3.35-1.0.1, 10.5.16-2.0.1
mariadb-backup - addressed in versions 10.3.35-1.0.1, 10.5.16-2.0.1
mariadb-common - addressed in versions 10.3.35-1.0.1, 10.5.16-2.0.1
mariadb-devel - addressed in versions 10.3.35-1.0.1, 10.5.16-2.0.1
mariadb-embedded - addressed in versions 10.3.35-1.0.1, 10.5.16-2.0.1
mariadb-embedded-devel - addressed in versions 10.3.35-1.0.1, 10.5.16-2.0.1
mariadb-errmsg - addressed in versions 10.3.35-1.0.1, 10.5.16-2.0.1
mariadb-gssapi-server - addressed in versions 10.3.35-1.0.1, 10.5.16-2.0.1
mariadb-oqgraph-engine - addressed in versions 10.3.35-1.0.1, 10.5.16-2.0.1
mariadb-server - addressed in versions 10.3.35-1.0.1, 10.5.16-2.0.1
mariadb-server-galera - addressed in versions 10.3.35-1.0.1, 10.5.16-2.0.1
mariadb-server-utils - addressed in versions 10.3.35-1.0.1, 10.5.16-2.0.1
mariadb - addressed in versions 10.3-3520220716094844.f27b74a8, 10.4-3520220717092835.f27b74a8, 10.5.15-1.fc34, 10.5.15-1.fc35, 10.5.15-1.fc36, 10.5-3420220428160949.058368ca, 10.5-3520220428160949.f27b74a8, 10.5-3620220428160949.5e5ad4a0, 10.6-3420220430165639.058368ca, 10.6-3520220430165639.f27b74a8, 10.6-3620220430165639.5e5ad4a0, 10.7-3420220501001308.058368ca, 10.7-3520220501001308.f27b74a8, 10.7-3620220501001308.5e5ad4a0
libmariadbd19-debuginfo - addressed in versions 10.4.24-3.25.1, 10.5.15-150300.3.15.1, 10.6.8-150400.3.7.1
libmariadbd19 - addressed in versions 10.4.24-3.25.1, 10.5.15-150300.3.15.1, 10.6.8-150400.3.7.1
libmariadbd-devel - addressed in versions 10.4.24-3.25.1, 10.5.15-150300.3.15.1, 10.6.8-150400.3.7.1
mariadb-galera - addressed in versions 10.5.15-150300.3.15.1, 10.6.8-150400.3.7.1
mariadb105 - update to 10.5.16-1
rh-mariadb105-mariadb (Red Hat package) - update to 10.5.16-2.el7
mariadb (Red Hat package) - update to 10.5.16-2.el9_0
mariadb-pam - update to 10.5.16-2.0.1
mariadb-test-debuginfo - update to 10.6.8-150400.3.7.1
mariadb-test - update to 10.6.8-150400.3.7.1
mariadb-rpm-macros - update to 10.6.8-150400.3.7.1
mariadb-bench - update to 10.6.8-150400.3.7.1
mariadb-bench-debuginfo - update to 10.6.8-150400.3.7.1
galera - addressed in versions 25.3.35-1, 26.4.11-1
rh-mariadb105-galera (Red Hat package) - update to 26.4.11-1.el7
galera (Red Hat package) - update to 26.4.11-1.el9_0
galera - addressed in versions 26.4.11-1.fc35, 26.4.11-1.fc36
External References
Related Security Bulletins
- Multiple vulnerabilities in MariaDB
- Ubuntu update for mariadb-10.3
- SUSE update for mariadb
- Red Hat Software Collections update for rh-mariadb105-galera and rh-mariadb105-mariadb
- Red Hat Enterprise Linux 8 update for the mariadb:10.5 module
- Red Hat Enterprise Linux 9 update for galera, mariadb, and mysql-selinux
- Red Hat Software Collections update for rh-mariadb103-galera and rh-mariadb103-mariadb
- Red Hat Enterprise Linux 8 update for the mariadb:10.3 module
- SUSE update for mariadb
- SUSE update for mariadb
- SUSE update for mariadb
- SUSE update for mariadb
- openEuler update for mariadb
- Gentoo update for MariaDB
- Amazon Linux AMI update for mariadb105
- Fedora 34 update for mariadb
- Fedora 36 update for galera, mariadb
- Fedora 35 update for galera, mariadb
- Fedora 36 Modular update for mariadb
- Fedora 34 Modular update for mariadb
- Fedora 35 Modular update for mariadb
- Fedora 36 Modular update for mariadb
- Fedora 35 Modular update for mariadb
- Fedora 34 Modular update for mariadb
- Fedora 36 Modular update for mariadb
- Fedora 35 Modular update for mariadb
- Fedora 34 Modular update for mariadb
- Fedora 35 Modular update for mariadb
- Fedora 35 Modular update for mariadb
- Multiple vulnerabilities in IBM PowerVC
- Anolis OS update for mariadb:10.5 module
- Anolis OS update for mariadb:10.3 module