https://bugs.exim.org/show_bug.cgi?id=1977
Bug ID: 1977
Summary: PCRE 10.23-RC1 - Null pointer dereference in
_pcre2_check_escape_8()
Product: PCRE
Version: N/A
Hardware: x86-64
OS: Linux
Status: NEW
Severity: bug
Priority: medium
Component: Code
Assignee: ph10@???
Reporter: fumfi.255@???
CC: pcre-dev@???
Created attachment 941
-->
https://bugs.exim.org/attachment.cgi?id=941&action=edit
POC to trigger null ptr dereference (pcre2test)
Affected:
- PCRE2 version 10.23-RC1 2016-08-01 (SVN revision: 610)
To reproduce the problem (pcre2test):
pcre2test pcre2_null_ptr_deref_check_escape_8 /dev/null
==18582==ERROR: AddressSanitizer: SEGV on unknown address 0x0000000000d2 (pc
0x7f7e16d1120b bp 0x00000000000f sp 0x7ffca93b0b00 T0)
==18582==The signal is caused by a WRITE memory access.
==18582==Hint: address points to the zero page.
#0 0x7f7e16d1120a in _pcre2_check_escape_8 XYZ/src/pcre2_compile.c:1409:26
#1 0x7f7e16de440a in pcre2_substitute_8 XYZ/src/pcre2_substitute.c:734:12
#2 0x4f3b1f in process_data XYZ/src/pcre2test.c:6409:3
#3 0x4f3b1f in main XYZ/src/pcre2test.c:7788
#4 0x7f7e15c0e82f in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#5 0x41aad8 in _start (/usr/local/bin/pcre2test+0x41aad8)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV XYZ/src/pcre2_compile.c:1409:26 in
_pcre2_check_escape_8
==18582==ABORTING
Regards,
Kamil Frankowicz
--
You are receiving this mail because:
You are on the CC list for the bug.