REDHAT-BUG-2590574: Buffer Overflow
MariaDB Server before 10.6.26, 10.7 through 10.11.x before 10.11.17, 11.0 through 11.4.x before 11.4.11, 11.5 through 11.8.x before 11.8.7, and 12.0 through 12.3.x before 12.3.2 contains a stack-based buffer overflow in OEMDEF::GetXdef() in storage/connect/reldef.cpp. When opening a CONNECT table of type OEM, the function copied the table's SUBTYPE option, upper-cased, into a 40-byte stack buffer after the prefix "Get" without checking its length, unlike the equivalent check in OEMColumns(). Users with the FILE privilege on a server with the CONNECT engine installed can create an OEM table whose MODULE names an existing shared library in the plugin directory and whose SUBTYPE is longer than 36 characters, then access the table to overflow the buffer and crash the server.
Affected Software
Event History
Frequently Asked Questions
Which MariaDB deployments are exposed?
Exposure requires the CONNECT storage engine to be installed and an account with the FILE privilege. The vulnerable path is reached when that account can create and access a CONNECT table of type OEM.
What access does an attacker need?
An attacker needs the FILE privilege on the MariaDB server. They must be able to create an OEM CONNECT table that references an existing shared library in the plugin directory and uses a SUBTYPE longer than 36 characters.
What can be done if an update cannot be applied immediately?
Restrict the FILE privilege to trusted accounts, since it is required for exploitation. Avoid allowing creation and access of OEM CONNECT tables with attacker-controlled SUBTYPE values while the CONNECT engine is installed.