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

Null pointer dereference in function gf_hinter_finalize isom_hinter.c:1236 #1770

Closed
JsHuang opened this issue Apr 30, 2021 · 1 comment
Closed

Comments

@JsHuang
Copy link

JsHuang commented Apr 30, 2021

A null pointer dereference issue was found in MP4Box, to reproduce, compile gpac as follows:

CC=gcc CXX=g++ CFLAGS="-fsanitize=address" CXXFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address" ./configure --enable-debug

run poc file :

./bin/gcc/MP4Box -hint poc -out /dev/null

Detailed ASAN result is as below:

AddressSanitizer:DEADLYSIGNAL
=================================================================
==1042==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fc3d4e76d0b bp 0x7ffd390b09a0 sp 0x7ffd390ae160 T0)
==1042==The signal is caused by a READ memory access.
==1042==Hint: address points to the zero page.
    #0 0x7fc3d4e76d0a in gf_hinter_finalize media_tools/isom_hinter.c:1236
    #1 0x555a478a9019 in HintFile /home/lab4/src/gpac/applications/mp4box/main.c:3467
    #2 0x555a478b3e70 in mp4boxMain /home/lab4/src/gpac/applications/mp4box/main.c:6209
    #3 0x555a478b4653 in main /home/lab4/src/gpac/applications/mp4box/main.c:6335
    #4 0x7fc3d48bc0b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
    #5 0x555a478a02ad in _start (/home/lab4/src/gpac/bin/gcc/MP4Box+0x182ad)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV media_tools/isom_hinter.c:1236 in gf_hinter_finalize
==1042==ABORTING

Credit : ADLab of Venustech
poc_null.zip

@jeanlf jeanlf closed this as completed in 1653f31 Apr 30, 2021
@JsHuang
Copy link
Author

JsHuang commented Aug 11, 2021

This is CVE-2021-32437

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant