Use-after-free in MariaDB - CVE-2022-24050

 

Use-after-free in MariaDB - CVE-2022-24050

Published: February 12, 2022 / Updated: February 16, 2022


Vulnerability identifier: #VU60554
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2022-24050
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available
Affected software:
MariaDB
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
Ubuntu
openEuler
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
libmysqld19-debuginfo
libmysqld19
libmysqld-devel
mariadb-tools
mariadb
mariadb-tools-debuginfo
mariadb-errormessages
mariadb-client
mariadb-client-debuginfo
mariadb-debuginfo
mariadb-debugsource
mariadb-server (Ubuntu package)
mariadb-backup
mariadb-common
mariadb-devel
mariadb-embedded
mariadb-embedded-devel
mariadb-errmsg
mariadb-gssapi-server
mariadb-oqgraph-engine
mariadb-server
mariadb-server-galera
mariadb-server-utils
mariadb-test
libmariadbd-devel
libmariadbd19
libmariadbd19-debuginfo
mariadb-config
mariadb-pam
mariadb-rocksdb-engine
mariadb-galera
mariadb105
rh-mariadb105-mariadb (Red Hat package)
mariadb (Red Hat package)
mariadb-bench
mariadb-bench-debuginfo
mariadb-rpm-macros
mariadb-test-debuginfo
galera
rh-mariadb105-galera (Red Hat package)
galera (Red Hat package)
PowerVC

Detailed vulnerability description

The vulnerability allows a remote user to compromise vulnerable system.

The vulnerability exists due to a use-after-free error in the storage engine when processing CONNECT queries. A remote user can send a specially crafted SQL query to the database instance, trigger a use-after-free error and execute arbitrary code on the system.

Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.


How to mitigate CVE-2022-24050

Install update from vendor's website.

Sources