| 제목 | GPAC commit a95e79308 - b40ce70f5 Heap-based Buffer Overflow |
|---|
| 설명 | A heap-based out-of-bounds read vulnerability exists in GPAC MP4Box in the ISOBMFF sample group description cleanup logic. The issue
affects sgpd_del_entry() in src/isomedia/box_code_base.c when MP4Box processes crafted AV1 input through the -cat operation.
AV1 switching frame sample groups use the GF_ISOM_SAMPLE_GROUP_AV1S grouping type. Their entries are created by sg_av1s_create_entry() in
src/isomedia/isom_write.c as GF_AV1SwitchingEntry objects, which only contain a 4-byte dummy field. However, sgpd_del_entry() does not
contain a dedicated case for GF_ISOM_SAMPLE_GROUP_AV1S. As a result, AV1S entries fall through to the default deletion logic and are
incorrectly cast to GF_DefaultSampleGroupDescriptionEntry.
The default entry type contains a data pointer at offset 8. When sgpd_del_entry() checks ptr->data, it reads 8 bytes from outside the 4-
byte GF_AV1SwitchingEntry allocation, causing a heap-buffer-overflow. This occurs during cleanup after an import failure, when
sgpd_box_del() destroys the sample group description box.
The vulnerability can be triggered with a crafted AV1 media file using:
./MP4Box -cat <crafted_file> white.mp4 -out /dev/null
Successful exploitation can cause MP4Box to crash, resulting in denial of service. The root cause is a missing GF_ISOM_SAMPLE_GROUP_AV1S
deletion branch in sgpd_del_entry(), causing a type confusion between AV1S sample group entries and default sample group description
entries. |
|---|
| 원천 | ⚠️ https://github.com/gpac/gpac/issues/3398 |
|---|
| 사용자 | noki (UID 98507) |
|---|
| 제출 | 2026. 06. 03. PM 02:32 (1 월 ago) |
|---|
| 모더레이션 | 2026. 07. 04. AM 07:16 (1 month later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 376293 [GPAC 까지 b40ce70f5 MP4Box box_code_base.c sgpd_del_entry data 메모리 손상] |
|---|
| 포인트들 | 20 |
|---|