Impact
mysql_json plugin, which is used to parse MySQL binary json data format was assuming the table is a valid MySQL table with JSON columns. A specially prepared MySQL table with invalid JSON data could have caused it to perform OOB reads.
Patches
Fixed in 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, 13.0.2.
Workarounds
Do not install mysql_json plugin unless you need to convert MySQL tables with binary JSON columns into MariaDB format. Uninstall the plugin after the migration.
Make sure FILE privilege and secure-file-priv setting are configured correctly to disallow writes into the datadir.
Make sure local filesystem privileges don't allow local users to create files in the datadir.
References
https://jira.mariadb.org/browse/MDEV-40678
Credits
Reported by Yuelin Wang
Impact
mysql_jsonplugin, which is used to parse MySQL binary json data format was assuming the table is a valid MySQL table with JSON columns. A specially prepared MySQL table with invalid JSON data could have caused it to perform OOB reads.Patches
Fixed in 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, 13.0.2.
Workarounds
Do not install
mysql_jsonplugin unless you need to convert MySQL tables with binary JSON columns into MariaDB format. Uninstall the plugin after the migration.Make sure
FILEprivilege andsecure-file-privsetting are configured correctly to disallow writes into the datadir.Make sure local filesystem privileges don't allow local users to create files in the datadir.
References
https://jira.mariadb.org/browse/MDEV-40678
Credits
Reported by Yuelin Wang