Skip to content
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

[CVE-2016-10505] Null Pointer Access in function sycc444_to_rgb of color.c #784

Closed
trylab opened this issue May 25, 2016 · 1 comment
Closed

Comments

@trylab
Copy link
Contributor

trylab commented May 25, 2016

Title

Null Pointer Access in function sycc444_to_rgb of color.c

Testing Environment

Ubuntu + OpenJPEG (GitHub master, 2016/05/25)

Exception Information

==19455== ERROR: AddressSanitizer: SEGV on unknown address 0x00000000 
    (pc 0x0806ef10 sp 0xbff51d80 bp 0xbff51e08 T0)
AddressSanitizer can not provide additional info.
    #0 0x806ef0f in sycc444_to_rgb openjpeg/src/bin/common/color.c:115
    #1 0x8071a24 in color_sycc_to_rgb openjpeg/src/bin/common/color.c:346
    #2 0x8051fc3 in main openjpeg/src/bin/jp2/opj_decompress.c:1375
    #3 0xb5e7ea82 (/lib/i386-linux-gnu/libc.so.6+0x19a82)
    #4 0x804a150 in _start (openjpeg/bin/opj_decompress+0x804a150)
SUMMARY: AddressSanitizer: SEGV openjpeg/src/bin/common/color.c:115 sycc444_to_rgb
==19455== ABORTING

PoC

https://raw.githubusercontent.com/trylab/PoCs/master/openjpeg/SIGSEGV_Null-Pointer-Access_sycc444_to_rgb/sycc444_to_rgb.j2k

Credit

Ke Liu of Tencent's Xuanwu LAB

@rouault
Copy link
Collaborator

rouault commented Aug 9, 2017

No longer reproducible with master

$ bin/opj_decompress -i ../sycc444_to_rgb.j2k -o out.j2k.pgx

===========================================
The extension of this file is incorrect.
FOUND .j2k. SHOULD BE .jp2
===========================================

[INFO] Start to read j2k main header (85).
[INFO] Main header has been correctly decoded.
[INFO] No decoded area parameters, set the decoded area to the whole image
[ERROR] Failed to decode tile 1/1
[ERROR] Failed to decode the codestream in the JP2 file
ERROR -> opj_decompress: failed to decode image!

@rouault rouault closed this as completed Aug 9, 2017
@trylab trylab changed the title Null Pointer Access in function sycc444_to_rgb of color.c [CVE-2016-10505] Null Pointer Access in function sycc444_to_rgb of color.c Aug 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants