axiomatic-systems / Bento4

Full-featured MP4 format, MPEG DASH, HLS, CMAF SDK and tools
http://www.bento4.com
2.03k stars 483 forks source link

Multiple heap-use-after-free vulnerabilities discovered in Bento4 #943

Closed 40ngx closed 7 months ago

40ngx commented 7 months ago

Hello, I recently discovered three heap-use-after-free vulnerabilities during fuzz testing of Bento4 using AFL++. They can be triggered by both mp42ts and mp42hls. The environment I use and the crash summary are as follows. Due to the large amount of content, POC and ASAN details will be provided in the link.

Envrionment

Ubuntu 22.04.2 LTS
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
Ubuntu clang version 14.0.0-1ubuntu1.1

Affected Version

(Bento4 Version 1.6.0.0)
MP4 To MPEG2-TS File Converter - Version 1.3
MP4 To HLS File Converter - Version 1.2

crash SUMMARY

details

https://github.com/40ngx/Bento4-crash