Details
Description
I used my fuzzing tool to test Mariadb , and found a bug that can result in an abortion.
Mariadb installation:
1) cd mariadb-10.5.9
2) mkdir build; cd build
3) cmake -DWITH_ASAN=ON -DWITH_ASAN_SCOPE=ON -DWITH_DEBUG=ON ../
4) make -j8 && sudo make install
How to Repeat:
export ASAN_OPTIONS=detect_leaks=0
/usr/local/mysql/bin/mysqld_safe &
/usr/local/mysql/bin/mysql -uroot -p123456(your password)
MariaDB> drop database if exists test_db;
MariaDB> create database test_db;
MariaDB> source fuzz.sql;
I have simplified the content of fuzz.sql, and I hope fuzz.sql can help you reproduce the bug and fix it. In addition, I attach the abortion report (which has its stack trace).
Attachments
Issue Links
- duplicates
-
MDEV-22464 Server crash on UPDATE with nested subquery
-
- Closed
-
- links to
Activity
Field | Original Value | New Value |
---|---|---|
Affects Version/s | 10.3 [ 22126 ] | |
Affects Version/s | 10.4 [ 22408 ] | |
Affects Version/s | 10.5 [ 23123 ] |
Link |
This issue duplicates |
Fix Version/s | N/A [ 14700 ] | |
Resolution | Duplicate [ 3 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Component/s | Query Cache [ 10120 ] |
Epic/Theme | server |
Priority | Critical [ 2 ] | Major [ 3 ] |
Workflow | MariaDB v3 [ 121716 ] | MariaDB v4 [ 159258 ] |
Remote Link | This issue links to "CVE-2021-46662 (Web Link)" [ 33012 ] |
Fix Version/s | 10.4.22 [ 26031 ] | |
Fix Version/s | 10.3.32 [ 26029 ] | |
Fix Version/s | N/A [ 14700 ] |
Fix Version/s | 10.6.5 [ 26034 ] | |
Fix Version/s | 10.5.13 [ 26026 ] |
Assignee | Alice Sherepa [ alice ] |