[debian-mysql] Bug#706715: Info received (mysql-server: CVE-2013-1861: Denial of service via a crafted geometry feature)

Simon Frankenberger simon at wf-hosting.de
Thu Aug 22 07:07:54 UTC 2013


Hi,

just testet this bug against latest 5.5 from wheezy,
this version is still affected:

------- SNIP -------
Server version: 5.5.31-0+wheezy1-log (Debian)

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights 
reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input 
statement.

mysql>  select astext(0x0100000000030000000100000000000010);
ERROR 2013 (HY000): Lost connection to MySQL server during query
mysql> SELECT 1;
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id:    1
Current database: *** NONE ***

+---+
| 1 |
+---+
| 1 |
+---+
1 row in set (0.00 sec)
------- SNIP -------


Content of /var/log/mysql.err:
------- SNIP -------
07:02:08 UTC - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this 
binary
or one of the libraries it was linked against is corrupt, improperly 
built,
or misconfigured. This error can also be caused by malfunctioning 
hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.

key_buffer_size=2097152
read_buffer_size=131072
max_used_connections=6
max_threads=151
thread_count=4
connection_count=4
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 
332346 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x7f30cc60e430
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7f30b8846e80 thread_stack 0x30000
/usr/sbin/mysqld(my_print_stacktrace+0x29)[0x7f30ca615569]
/usr/sbin/mysqld(handle_fatal_signal+0x3d8)[0x7f30ca4fd748]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xf030)[0x7f30c9caf030]
/usr/sbin/mysqld(_ZNK11Gis_polygon15get_data_as_wktEP6StringPPKc+0x100)[0x7f30ca5cb700]
/usr/sbin/mysqld(_ZN16Item_func_as_wkt13val_str_asciiEP6String+0x151)[0x7f30ca5515b1]
/usr/sbin/mysqld(_ZN13Item_str_func26val_str_from_val_str_asciiEP6StringS1_+0x17)[0x7f30ca55d577]
/usr/sbin/mysqld(_ZN4Item4sendEP8ProtocolP6String+0x3d)[0x7f30ca506f7d]
/usr/sbin/mysqld(_ZN8Protocol19send_result_set_rowEP4ListI4ItemE+0xc7)[0x7f30ca39f037]
/usr/sbin/mysqld(_ZN11select_send9send_dataER4ListI4ItemE+0x71)[0x7f30ca3da9e1]
/usr/sbin/mysqld(_ZN4JOIN4execEv+0x13f0)[0x7f30ca444750]
/usr/sbin/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x11d)[0x7f30ca43f60d]
/usr/sbin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x174)[0x7f30ca4456d4]
/usr/sbin/mysqld(+0x320464)[0x7f30ca3fe464]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x1309)[0x7f30ca405189]
/usr/sbin/mysqld(+0x32a64e)[0x7f30ca40864e]
/usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x193b)[0x7f30ca40a7cb]
/usr/sbin/mysqld(_Z24do_handle_one_connectionP3THD+0x105)[0x7f30ca4a49b5]
/usr/sbin/mysqld(handle_one_connection+0x50)[0x7f30ca4a4ad0]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x6b50)[0x7f30c9ca6b50]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f30c85eaa7d]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7f30cc68faa0): select 
astext(0x0100000000030000000100000000000010)
Connection ID (thread ID): 12
Status: NOT_KILLED
------- SNIP -------

Regards,
Simon



More information about the pkg-mysql-maint mailing list