Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.5.9, 10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5
-
Ubuntu 18.04
MariaDB 10.5.9
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
- relates to
-
MDEV-14791 Crash with order by expression containing window functions
-
- Closed
-
-
MDEV-28094 Window function in expression in ORDER BY
-
- Closed
-
- links to
Activity
Field | Original Value | New Value |
---|---|---|
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). |
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). |
Affects Version/s | 10.2 [ 14601 ] | |
Affects Version/s | 10.3 [ 22126 ] | |
Affects Version/s | 10.4 [ 22408 ] | |
Affects Version/s | 10.5 [ 23123 ] |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] |
Component/s | Optimizer - Window functions [ 13502 ] |
Link |
This issue relates to |
Assignee | Sergei Petrunia [ psergey ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Epic/Theme | server |
Component/s | Query Cache [ 10120 ] |
Priority | Critical [ 2 ] | Major [ 3 ] |
Status | Confirmed [ 10101 ] | In Progress [ 3 ] |
Summary | Bug report: abortion in sql/sql_yacc.yy:0 | Crash with window function in left expr of IN subquery |
Assignee | Sergei Petrunia [ psergey ] | Oleksandr Byelkin [ sanja ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Assignee | Oleksandr Byelkin [ sanja ] | Sergei Petrunia [ psergey ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Fix Version/s | 10.6.2 [ 25800 ] | |
Fix Version/s | 10.2.39 [ 25731 ] | |
Fix Version/s | 10.3.30 [ 25732 ] | |
Fix Version/s | 10.4.20 [ 25733 ] | |
Fix Version/s | 10.5.11 [ 25734 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Labels | crash | crash fuzzer |
Fix Version/s | 10.2.40 [ 26027 ] | |
Fix Version/s | 10.3.31 [ 26028 ] | |
Fix Version/s | 10.4.21 [ 26030 ] | |
Fix Version/s | 10.5.12 [ 26025 ] | |
Fix Version/s | 10.6.3 [ 25904 ] | |
Fix Version/s | 10.2.39 [ 25731 ] | |
Fix Version/s | 10.3.30 [ 25732 ] | |
Fix Version/s | 10.4.20 [ 25733 ] | |
Fix Version/s | 10.5.11 [ 25734 ] | |
Fix Version/s | 10.6.2 [ 25800 ] |
Workflow | MariaDB v3 [ 121707 ] | MariaDB v4 [ 159254 ] |
Remote Link | This issue links to "CVE-2021-46658 (Web Link)" [ 33013 ] |
Link |
This issue relates to |