New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
heap-buffer-overflow in S_compile_runtime_code (regcomp.c:6569) #15856
Comments
From @dur-randirCreated by @dur-randirWhile fuzzing perl v5.25.9-35-g32207c637b built with afl and run 00000000 42 45 47 49 4e 7b 24 5e 48 3d 30 78 32 30 30 30 |BEGIN{$^H=0x2000| to perform an access outside of an allocated memory slot. ASAN ================================================================= 0x60200000dd9a is located 0 bytes to the right of 10-byte region This is a regression in blead: 77c8f26 is the first bad commit Add /xx regex pattern modifier This was first proposed in the thread starting at GDB info about the program state is: #0 0x00007fab6c58def6 in S_compile_runtime_code (plen=<optimized Perl Info
|
From @dur-randir |
From @tonycozOn Tue, 31 Jan 2017 16:09:07 -0800, randir wrote:
This doesn't need the NUL separators: BEGIN{$^H=0x200000} fails in the same way. The BEGIN block is equivalent to: use re 'eval'; and replacing the BEGIN block fails in the same way. It doesn't fail with perl -e '...'.
Unfortunately this patch adds the extra x to the qr''s generated by S_compile_runtime_code() but didn't allocate the extra byte required. Fixed by dc0dad9. Since this was broken in blead and fixed before a stable release it isn't considered a security issue, so I moved it to the public queue. Tony |
The RT System itself - Status changed from 'new' to 'open' |
@tonycoz - Status changed from 'open' to 'pending release' |
From @khwilliamsonThank you for filing this report. You have helped make Perl better. With the release today of Perl 5.26.0, this and 210 other issues have been Perl 5.26.0 may be downloaded via: If you find that the problem persists, feel free to reopen this ticket. |
@khwilliamson - Status changed from 'pending release' to 'resolved' |
Migrated from rt.perl.org#130684 (status was 'resolved')
Searchable as RT130684$
The text was updated successfully, but these errors were encountered: