CVE-2022-24048 Memory corruption in MariaDB

High 7.0 Published Updated

Local attackers with authentication can exploit a stack-based buffer overflow in MariaDB's CONNECT storage engine to execute arbitrary code and escalate privileges.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-24048?

CVE-2022-24048 is a high-severity memory corruption vulnerability in Fedoraproject Fedora, published on 18 Feb 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

MariaDB CONNECT Storage Engine Stack-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 stack-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-16191.

Weakness: CWE-121

Which versions are affected by CVE-2022-24048?

3 open source packages ship an affected version, including mariadb, mariadb-min and mysql-client. It affects 2 products.

PackageAffectedFixed in
mariadb BitnamiFrom 10.2.010.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2, 10.8.1
mariadb-min BitnamiFrom 10.2.0 to 10.8.010.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2
mysql-client BitnamiFrom 10.2.010.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2, 10.8.1

Products include Fedoraproject Fedora, Mariadb Mariadb.

How do I fix CVE-2022-24048?

Upgrade mariadb to a fixed version for your release line: 10.2.42, 10.3.33, 10.4.23 or 10.5.14.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2022-24048 being exploited?

There is no known exploitation of CVE-2022-24048 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALPINE-CVE-2022-24048, AZL-8664, BIT-mariadb-2022-24048, BIT-mariadb-min-2022-24048, BIT-mysql-client-2022-24048, DEBIAN-CVE-2022-24048 and 2 more.

Is CVE-2022-24048 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free