CVE-2022-24052

NameCVE-2022-24052
DescriptionMariaDB 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
mariadb-10.5 (PTS)bullseye1:10.5.23-0+deb11u1fixed
bullseye (security)1:10.5.26-0+deb11u2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
mariadb-10.3sourcebuster1:10.3.34-0+deb10u1
mariadb-10.3source(unstable)(unfixed)
mariadb-10.5sourcebullseye1:10.5.15-0+deb11u1
mariadb-10.5source(unstable)(unfixed)
mariadb-10.6source(unstable)1:10.6.7-1

Notes

Fixed in MariaDB: 10.6.6, 10.5.14, 10.4.23, 10.3.33, 10.2.42
https://www.zerodayinitiative.com/advisories/ZDI-22-366/
MariaDB bug: https://jira.mariadb.org/browse/MDEV-27612
Fixed by: https://github.com/MariaDB/server/commit/2925d0f2ee9847c1dcec9c3650ab2c71697a1f62 (mariadb-10.2.42)
According to upstream same fix than CVE-2022-24051, CVE-2022-24048

Search for package or bug name: Reporting problems