Fedora Account System
Red Hat Associate
Red Hat Customer
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.