| 제목 | CCExtractor 0.96.5, master commit d7eb132e15f4d1e2c40f4655349596b2b8f708de Out-of-bounds Read |
|---|
| 설명 | A vulnerability was found in CCExtractor 0.96.5, master commit d7eb132e15f4d1e2c40f4655349596b2b8f708de and classified as high 7.1. Affected is the process_avc_sample function in src/lib_ccx/mp4.c:99, reached via process_avc_track (mp4.c:295) and processmp4 (mp4.c:989) while parsing length-prefixed AVC NAL units of an MP4 file. The manipulation of the argument crafted MP4 file leads to an out-of-bounds read on the heap. It is possible to launch the attack remotely. User interaction is required because a crafted media file must be processed by ccextractor.
Technical Details
- Affected file/function: src/lib_ccx/mp4.c:99 / process_avc_sample()
- Vulnerable parameter: 32-bit length field of a length-prefixed AVC NAL unit in the avc1 track of an MP4 sample; the wrap-unsafe bounds check at mp4.c:82 (i + nal_length computed in u32) is defeated by nal_length values near UINT32_MAX, letting the cursor reach s->dataLength
- Attack vector: Network
- Privileges required: None
- Trigger condition: run ccextractor on the crafted MP4; line 99 reads s->data[i] one byte past the end of the 892-byte GPAC sample buffer (AddressSanitizer: READ of size 1, 0 bytes to the right of the region), and the out-of-range cursor/length pair is then passed to do_NAL() at line 100
Impact
- Confidentiality: Low (assumed conservatively; the read byte only increments an internal NAL-type statistic and no direct disclosure channel was identified)
- Integrity: None
- Availability: High (AddressSanitizer build aborts deterministically; uninstrumented builds crash parsing out-of-range memory)
CVSS v3.1
Score: 7.1 (High)
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
Timeline
- Discovered: 2026-11-01
- Vendor notified: [pending]
- Patch released: [pending]
- Public disclosure: [pending]
Countermeasure
Validate the NAL length with wrap-safe 64-bit arithmetic and reject nal_length values exceeding the remaining sample bytes before the read at mp4.c:99 and the do_NAL() call at mp4.c:100; upgrade to the fixed release once published.
|
|---|
| 원천 | ⚠️ https://github.com/CCExtractor/ccextractor/issues/2449 |
|---|
| 사용자 | muteki (UID 102683) |
|---|
| 제출 | 2026. 11. 03. AM 02:15 (25 날 ago) |
|---|
| 모더레이션 | 2026. 11. 28. AM 08:28 (25 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 445080 [CCExtractor 까지 0.96.6 MP4 AVC track parser src/lib_ccx/mp4.c process_avc_sample 정보 공개] |
|---|
| 포인트들 | 20 |
|---|